GCJ 4.1.1 and static linking - SEGV -- SUMMARY

Thomas Aeby aeby@graeff.com
Thu Aug 17 11:56:00 GMT 2006


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
----------------------------------------------------------------------------


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /