Segmentation fault in _Jv_equalUtf8Consts
Volodymyr Buell
vbuell@gmail.com
Tue Jun 10 14:40:00 GMT 2008
Hi
I'm trying to compile java using CNI with C++ code. It compiles but
produces <Segmentation fault (core dumped)> while executing.
-- -- gdb backtrace -- --
(gdb) bt
#0 0xb644aa41 in _Jv_equalUtf8Consts () from /usr/lib/libgcj.so.81
#1 0xb64951c7 in _Jv_GetMethodLocal () from /usr/lib/libgcj.so.81
#2 0xb6497553 in java::lang::Class::initializeClass () from
/usr/lib/libgcj.so.81
#3 0xb6497533 in java::lang::Class::initializeClass () from
/usr/lib/libgcj.so.81
#4 0xb644cc67 in _Jv_AllocObjectNoFinalizer () from /usr/lib/libgcj.so.81
#5 0xb644cc96 in _Jv_AllocObject () from /usr/lib/libgcj.so.81
#6 0x0812c923 in main (argc=1, argv=0xbff54cc4) at
/home/vbuell/NetBeansProjects/Opine/invadptr.cpp:7308
-- -- end of gdb backtrace -- --
Line 7308 of invadptr.cpp:
-- -- invadptr.cpp -- --
ObjectJ* obj = new ObjectJ();
-- -- end of invadptr.cpp -- --
ObjectJ is the simple POJO that doesn't do anything.
uname -a
Linux vbuell-linux 2.6.24-17-rt #1 SMP PREEMPT RT Thu May 1 16:23:33
UTC 2008 i686 GNU/Linux
gcj --version
gcj (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu6)
--
Thanks,
Volodymyr
More information about the Java
mailing list