Does gcj pass -dy and -dn to linker?

Bill Bland wjb@netpd.com
Tue Oct 30 02:39:00 GMT 2001


On 2001年10月30日, Bryce McKinlay wrote:
> Strange - that sounds like some sort of race condition. What version of 
> glibc do you have?

glibc-2.1.3 (from the rpm distributed with Mandrake 7.2). Are there known
problems with this? Am I mad to attempt use this version with gcc 3.0.2?
> I understand. Can you run your program in GDB and send a backtrace?

Let me know if I did this wrong (first time using gdb!)
The program actually aborts *every* time I run it in gdb for some reason.
I ran gdb and said:
 (gdb) file myprog
 (gdb) set args -i foo.raw --find
 (gdb) run
to which gdb replied:
 Starting program: /home/wjb/myprog -i foo.raw --find
 warning: Unable to find dynamic linker breakpoint function.
 GDB will be unable to debug shared library initializers
 and track explicitly loaded dynamic code.
 Program received signal SIG32, Real-time event 32.
 0x4053617e in sigsuspend () from /lib/libc.so.6
I (assuming gdm had stopped at some kind of implicit breakpoint) said:
 (gdb) continue
and gdb said:
 Continuing.
 Program received signal SIGABRT, Aborted.
 0x404fa2b4 in pthread_setconcurrency () from /lib/libpthread.so.0
finally I said:
 (gdb) backtrace
and got the reply:
 #0 0x404fa2b4 in pthread_setconcurrency () from /lib/libpthread.so.0
 #1 0x404fa1a0 in pthread_setconcurrency () from /lib/libpthread.so.0
 #2 0x404fa449 in pthread_create () from /lib/libpthread.so.0
 #3 0x404df6f4 in GC_pthread_create (new_thread=0x81a3264,
 attr=0xbffff6e0, start_routine=0x402ae280 <_Z12really_startPv>, 
 arg=0x818bff8) at ../../../gcc-3.0.2/boehm-gc/linux_threads.c:683
 #4 0x402ae3e7 in 
 _Z15_Jv_ThreadStartPN4java4lang6ThreadEP12_Jv_Thread_tPFvS2_E
 (thread=0x8131f00, data=0x81a3260, 
 meth=0x401c10b0 <_ZN4java4lang6Thread4run_EPNS0_6ObjectE>) at
 ../../../gcc-3.0.2/libjava/posix-threads.cc:394
 #5 0x401c1318 in _ZN4java4lang6Thread5startEv (this=0x8131f00) at
 ../../../gcc-3.0.2/libjava/java/lang/natThread.cc:307
 #6 0x401a0de3 in JvRunMain (klass=0x8101620, argc=5,
 argv=0xbffff834) at ../../../gcc-3.0.2/libjava/prims.cc:852
 #7 0x804bb15 in main ()
 #8 0x4052fcbe in __libc_start_main () from /lib/libc.so.6
Perhaps it's a threads problem? (naive guess based on the
appearance of the word "thread" lots of times in the backtrace ;-) If it
helps at all, I compiled gcc 3.0.2 with the options:
 --enable-shared --enable-threads=posix
Please do let me know if I did any of this wrong. As I said, it's my
first time using gdb. Thanks again for your help.
Best wishes,
	Bill.


More information about the Java mailing list

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