This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gcj & boehm-gc core
- To: <gcc at gcc dot gnu dot org>
- Subject: gcj & boehm-gc core
- From: The Morsbergers <morsberger at usa dot net>
- Date: Fri, 03 Aug 2001 20:49:41 -0400
I am dumping core when I try to use gcj on True64. It appears to happen
whenever garbage collection occurs.
Any idea why this is happening?
The details are given below:
uname -a
OSF1 es40-unix V4.0 1530 alpha
es40-unix(tst)~ gcj -v
Reading specs from /opt/gcc30/lib/gcc-lib/alphaev6-dec-osf4.0g/3.0/specs
Reading specs from
/opt/gcc30/lib/gcc-lib/alphaev6-dec-osf4.0g/3.0/../../../libgcj.spec
rename spec lib to liborig
rename spec startfile to startfileorig
Configured with: ../configure --prefix=/opt/gcc30 --enable-libgcj
--enable-fast-character --enable-threads=posix
--enable-languages=c,c++,f77,java
Thread model: posix
gcc version 3.0
Test.java
class Test
{
public static void main (String[] args)
{
for( int i=0; i < 1000; i++ )
System.out.println("Hello World, " + i);
}
}
es40-unix(tst)~ javac Test.java
es40-unix(tst)~ gcj -ljava -liconv --main=Test Test.class -o Test -- (Why do
I have to explicitly add -ljava and -liconv?)
es40-unix(tst)~ Test
Hello World, 0
Hello World, 1
Hello World, 2
Hello World, 3
Hello World, 4
Hello World, 5
Hello World, 6
Hello World, 7
Hello World, 8
Hello World, 9
Hello World, 10
Hello World, 11
Hello World, 12
Hello World, 13
Stack overflow: pid 10888, proc Test, addr 0x140159b88, pc 0x30001015508
Memory fault(coredump)
es40-unix(tst)~ gdb Test core
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "alphaev6-dec-osf4.0g"...
Core was generated by `Test'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/shlib/libjava.so...done.
Reading symbols from /usr/shlib/libiconv.so...done.
Reading symbols from /opt/gcc30/lib/libgcc_s.so.1...done.
Reading symbols from /opt/gcc30/lib/libgcj.so...done.
Reading symbols from /usr/shlib/libm.so...done.
Reading symbols from /opt/gcc30/lib/libgcjgc.so...done.
Reading symbols from /usr/shlib/libpthread.so...done.
Reading symbols from /opt/gcc30/lib/libzgcj.so...done.
Reading symbols from /usr/shlib/libmach.so...done.
Reading symbols from /usr/shlib/libexc.so...done.
Reading symbols from /usr/shlib/libc.so...done.
Reading symbols from /usr/shlib/libjvm.so...done.
Reading symbols from /usr/shlib/libverify.so...done.
#0 0x30001015508 in GC_clear_stack_inner (arg=0x14014b4f0 "H? @",
limit=5370066168) at ../../../boehm-gc/misc.c:247
247 ../../../boehm-gc/misc.c: No such file or directory.
(gdb) where
#0 0x30001015508 in GC_clear_stack_inner (arg=0x14014b4f0 "H? @",
limit=5370066168) at ../../../boehm-gc/misc.c:247
#1 0x30001015554 in GC_clear_stack_inner (arg=0x140139fb8 "",
limit=4831836608) at ../../../boehm-gc/misc.c:252
#2 0x30001015554 in GC_clear_stack_inner (arg=0x140139fb8 "",
limit=4831836608) at ../../../boehm-gc/misc.c:252
#3 0x30001015554 in GC_clear_stack_inner (arg=0x140139fb8 "",
limit=4831836608) at ../../../boehm-gc/misc.c:252
#4 0x30001015554 in GC_clear_stack_inner (arg=0x140139fb8 "",
limit=4831836608) at ../../../boehm-gc/misc.c:252
#5 0x30001015554 in GC_clear_stack_inner (arg=0x140139fb8 "",
limit=4831836608) at ../../../boehm-gc/misc.c:252
#6 0x30001015554 in GC_clear_stack_inner (arg=0x140139fb8 "",
limit=4831836608) at ../../../boehm-gc/misc.c:252
#7 0x30001015554 in GC_clear_stack_inner (arg=0x140139fb8 "",
limit=4831836608) at ../../../boehm-gc/misc.c:252
#8 0x30001015554 in GC_clear_stack_inner (arg=0x140139fb8 "",
limit=4831836608) at ../../../boehm-gc/misc.c:252
#9 0x30001015554 in GC_clear_stack_inner (arg=0x140139fb8 "",
limit=4831836608) at ../../../boehm-gc/misc.c:252
#10 0x30001015554 in GC_clear_stack_inner (arg=0x140139fb8 "",
limit=4831836608) at ../../../boehm-gc/misc.c:252
#11 0x30001015554 in GC_clear_stack_inner (arg=0x140139fb8 "",
limit=4831836608) at ../../../boehm-gc/misc.c:252
#12 0x30001015554 in GC_clear_stack_inner (arg=0x140139fb8 "",
limit=4831836608) at ../../../boehm-gc/misc.c:252
#13 0x30001015554 in GC_clear_stack_inner (arg=0x140139fb8 "",
limit=4831836608) at ../../../boehm-gc/misc.c:252
#14 0x30001015554 in GC_clear_stack_inner (arg=0x140139fb8 "",
limit=4831836608) at ../../../boehm-gc/misc.c:252
#15 0x30001015554 in GC_clear_stack_inner (arg=0x140139fb8 "",
limit=4831836608) at ../../../boehm-gc/misc.c:252
#16 0x30001015554 in GC_clear_stack_inner (arg=0x140139fb8 "",
limit=4831836608) at ../../../boehm-gc/misc.c:252
#17 0x30001015554 in GC_clear_stack_inner (arg=0x140139fb8 "",
limit=4831836608) at ../../../boehm-gc/misc.c:252
#18 0x30001015554 in GC_clear_stack_inner (arg=0x140139fb8 "",
limit=4831836608) at ../../../boehm-gc/misc.c:252
#19 0x30001015554 in GC_clear_stack_inner (arg=0x140139fb8 "",
limit=4831836608) at ../../../boehm-gc/misc.c:252
#20 0x30001015554 in GC_clear_stack_inner (arg=0x140139fb8 "",
limit=4831836608) at ../../../boehm-gc/misc.c:252
#21 0x30001015554 in GC_clear_stack_inner (arg=0x140139fb8 "",
limit=4831836608) at ../../../boehm-gc/misc.c:252
#22 0x30001015554 in GC_clear_stack_inner (arg=0x140139fb8 "",
limit=4831836608) at ../../../boehm-gc/misc.c:252
#23 0x300010156d4 in GC_clear_stack (arg=0x140139fb8 "") at
../../../boehm-gc/misc.c:311
#24 0x3000100ee9c in GC_gcj_malloc (lb=52,
ptr_to_struct_containing_descr=0x300409d2248) at
../../../boehm-gc/gcj_mlc.c:131
#25 0x300009ff2ac in _Z12_Jv_AllocObjiPN4java4lang5ClassE (size=1075027896,
klass=0x11ffff9c0) at ../../../libjava/boehm.cc:340
#26 0x30000a06c34 in _Jv_NewPrimArray (eltype=0x300409d1e30, count=16) at
../../../libjava/prims.cc:442
#27 0x30000a4cc54 in _ZN4java4lang12StringBufferC1Ei (this=0x14012f518,
capacity=16)
at ../../../libjava/java/lang/StringBuffer.java:599
#28 0x30000a4cbfc in _ZN4java4lang12StringBufferC1Ev (this=0x140139fb8) at
../../../libjava/java/lang/StringBuffer.java:589
#29 0x120002e78 in _ZN4Test4mainEP6JArrayIPN4java4lang6StringEE ()
#30 0x30000a25188 in _ZN3gnu3gcj7runtime11FirstThread3runEv
(this=0x1400c9ec0)
at ../../../libjava/gnu/gcj/runtime/natFirstThread.cc:146
#31 0x30000a35380 in _ZN4java4lang6Thread4run_EPNS0_6ObjectE
(obj=0x140139fb8) at ../../../libjava/java/lang/natThread.cc:276
#32 0x30000a00138 in _Z12really_startPv (x=0x1400b3e50) at
../../../libjava/posix-threads.cc:349
#33 0x3ff805a58b0 in __thdBase () from /usr/shlib/libpthread.so
--
David Morsberger