bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gold linker issues with PostGIS cunit tests


From: Sandro Santilli
Subject: gold linker issues with PostGIS cunit tests
Date: Thu, 14 Apr 2011 19:35:38 +0200

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]