This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libgcj/14225] when using gcj cni calls within a pthread i get a segfault


------- Additional Comments From sturmf at in dot tum dot de  2004-02-20 12:08 -------
Damn i forgot to add the gdb output, sorry.

Here it is

(gdb) run
Starting program: /home/sturm/crashme/crashme
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 6884)]
[New Thread 32769 (LWP 6886)]
[New Thread 16386 (LWP 6887)]
[New Thread 32771 (LWP 6888)]
 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 32771 (LWP 6888)]
0x405b34c3 in GC_local_malloc_atomic () from
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcj.so.4
(gdb) bt
#0  0x405b34c3 in GC_local_malloc_atomic () from
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcj.so.4
#1  0x403e4dbe in _Jv_AllocPtrFreeObject () from
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcj.so.4
#2  0x4040c310 in _Jv_AllocString () from
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcj.so.4
#3  0x4040c3a2 in _Jv_NewStringLatin1 () from
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcj.so.4
#4  0x08048de0 in JvNewStringLatin1 (bytes=0x8048f40 "Hello from C++") at cni.h:65
#5  0x08048c36 in testThread(void*) (threadid=0x0) at crashme.cpp:19
#6  0x40033f60 in pthread_start_thread () from /lib/libpthread.so.0
#7  0x40034062 in pthread_start_thread_event () from /lib/libpthread.so.0
#8  0x40a0747a in clone () from /lib/libc.so.6
(gdb) info threads
* 4 Thread 32771 (LWP 6888)  0x405b34c3 in GC_local_malloc_atomic ()
   from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcj.so.4
  3 Thread 16386 (LWP 6887)  0x40036704 in __pthread_sigsuspend () from
/lib/libpthread.so.0
  2 Thread 32769 (LWP 6886)  0x40959731 in kill () from /lib/libc.so.6
  1 Thread 16384 (LWP 6884)  0x40036704 in __pthread_sigsuspend () from
/lib/libpthread.so.0
(gdb)


-- 


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


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