This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCJ 4.1.1 and static linking - SEGV -- SUMMARY


On Wed, 2006-08-16 at 17:17 +0200, Thomas Aeby wrote:
>   gcj -g -static --main=test -Wl,--whole-archive -lnss_files_p -lnss_dns_p -lresolv -lpthread -ldl -Wl,--no-whole-archive test.java
>   # ./a.out
>   Segmentation fault

I have tracked this down to the Boehm-GC trying to find the 
pthread_create() function via dlvsym() which of course does not return
a pointer to pthread_create() if libpthread is linked statically - and
makes Boehm-GC crash.

A more detailed description with a workaround has been filed as a bug
report:

  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28760

Best regards and many thanks for your help,
Tom
-- 
----------------------------------------------------------------------------
Thomas Aeby, Kirchweg 52, 1735 Giffers, Switzerland, Tel: (+41)264180040
Internet: aeby@graeff.com                       PGP public key available
----------------------------------------------------------------------------



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]