I've had a few hours of frustration trying to debug
a segfault triggered by PostGIS cunit tests to find
it was gold's fault instead.

This is :
 binutils-gold  2.20.1-3ubuntu5

To reproduce:
 git clone git://github.com/strk/postgis.git
 cd postgis && git checkout 728e94ab0325a89fa3ac4548d8617d144a0ab717
 ./autogen.sh && ./configure && make all 
 cd liblwgeom/cunit && make check

Expected result:
 no segfault

Obtained result:
 segfault

I've spent hours moving code around in cu_tester.c or some tests
and could handle to avoid the segfault, but it made no sense.
Valgrind reported somethign like:

 ==31508==  Bad permissions for mapped region at address 0x4885E0

And gdb found it comin from strcmp or strlen...

Linking cu_tester with "the other" linker works fine.

--strk; 

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to