[forwarded from http://bugs.debian.org/387875 ] [forwarded from http://bugs.debian.org/388505 ]
gcj-dbtool segfaults on hppa-linux-gnu and arm-linux-gnu; arm doesn't have libjava support yet; the patches available from http://gcc.gnu.org/ml/java/2006-08/msg00123.html were used. rechecked both with a new 4.2 as a debian package and a vanilla upstream build. the installed gcj-dbtool crashes. I don't see the segfault, when gcj-dbtool is called during the build. GNU gdb 6.4.90-debian Copyright (C) 2006 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 "hppa-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so\ .1". (gdb) set args -n (gdb) run Starting program: /scratch/packages/gcc/4.2/tstinstall/bin/gcj-dbtool -n [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 17786)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 17786)] GC_push_all_eager (bottom=<value optimized out>, top=0xc0345d48 "�4]HB�[EMAIL PROTECTED]���O��") at ../../../gcc-20060910/boehm-gc/mark.c:1468 1468 q = *p; (gdb) p p $1 = (word *) 0xbfb45000 (gdb) p *p Cannot access memory at address 0xbfb45000 (gdb) bt #0 GC_push_all_eager (bottom=<value optimized out>, top=0xc0345d48 "�4]HB�[EMAIL PROTECTED]���O��") at ../../../gcc-20060910/boehm-gc/mark.c:1468 #1 0x4214f74c in GC_push_all_stacks () at ../../../gcc-20060910/boehm-gc/pthread_stop_world.c:307 #2 0x42147d58 in GC_push_roots (all=16384, cold_gc_frame=0xc0345b48 "B��@") at ../../../gcc-20060910/boehm-gc/mark_rts.c:646 #3 0x42147438 in GC_mark_some (cold_gc_frame=0xc0345d48 "�4]HB�[EMAIL PROTECTED]���O��") at ../../../gcc-20060910/boehm-gc/mark.c:326 #4 0x4213d5cc in GC_stopped_mark (stop_func=0x4000) at ../../../gcc-20060910/boehm-gc/alloc.c:531 #5 0x4213d9c4 in GC_try_to_collect_inner (stop_func=0x4000) at ../../../gcc-20060910/boehm-gc/alloc.c:378 #6 0x42149718 in GC_init_inner () at ../../../gcc-20060910/boehm-gc/misc.c:789 #7 0x421499e4 in GC_init () at ../../../gcc-20060910/boehm-gc/misc.c:493 #8 0x42142f94 in GC_init_gcj_malloc (mp_index=-1078702080, mp=0xc0345d48) at ../../../gcc-20060910/boehm-gc/gcj_mlc.c:60 #9 0x4146df2c in _Jv_InitGC () at ../../../gcc-20060910/libjava/boehm.cc:503 #10 0x41414664 in _Jv_CreateJavaVM (vm_args=0x0) at ../../../gcc-20060910/libjava/prims.cc:1434 #11 0x41414e48 in _Jv_RunMain (vm_args=0x4000, klass=0x26770, name=0xc0345b48 "B��@", argc=2, argv=0xc034540c, is_jar=false) at ../../../gcc-20060910/libjava/prims.cc:1520 #12 0x414151c8 in _Jv_RunMain (klass=0xc0345d48, name=0xb <Address 0xb out of bounds>, argc=1119747456, argv=<value optimized out>, is_jar=false) at ../../../gcc-20060910/libjava/prims.cc:1593 #13 0x414151f4 in JvRunMain (klass=0xbfb45000, argc=1, argv=0x42bdfd80) at ../../../gcc-20060910/libjava/prims.cc:1599 #14 0x42f14338 in __libc_start_main () from /lib/libc.so.6 #15 0x00012610 in _start () at ../sysdeps/hppa/elf/start.S:84 -- Summary: [4.2 regression] gcj-dbtool segfaults Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: debian-gcc at lists dot debian dot org GCC target triplet: hppa-linux-gnu arm-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29206