From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4295 invoked by alias); 31 Aug 2005 20:18:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 4125 invoked by uid 48); 31 Aug 2005 20:18:30 -0000 Date: Wed, 31 Aug 2005 20:34:00 -0000 Message-ID: <20050831201830.4123.qmail@sourceware.org> From: "ngmlinux at gmail dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20020125014600.5487.jsantala@tml.hut.fi> References: <20020125014600.5487.jsantala@tml.hut.fi> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug java/5487] arm-linux-gcj cross-compiler generates bad assembler-code X-Bugzilla-Reason: CC X-SW-Source: 2005-08/txt/msg03655.txt.bz2 List-Id: ------- Additional Comments From ngmlinux at gmail dot com 2005-08-31 20:18 ------- I now have a stacktrace from someone on this issue from gdb: They used the following configuration parameters to build arm-linux-gcc cross compilers: The following was tested with gcc-3.4.3 and gcc-4.0.1 sources with the same issue. ===code================================================================== $ arm-linux-gcj -v Configured with: ../gcc-3.4.3/configure --target=arm-linux --prefix=/group/teaching/iar/armcore-gx/toolchain --enable-languages=c,c++,objc,java --disable-nls --nfp --with-cpu=xscale --with-softfloat-support=internal Thread model: posix gcc version 3.4.3 ========================================================================= Here is the stacktrace: ===code================================================================== $ arm-linux-gcj -ggdb --main=HelloWorld -o hello HelloWorld.java running ./hello causes segfault $ gdb hello Program received signal SIGSEGV, Segmentation fault. GC_push_all_eager (bottom=0x0, top=0x390a8 "") at ../../../gcc-3.4.3/boehm-gc/mark.c:1468 1468 ../../../gcc-3.4.3/boehm-gc/mark.c: No such file or directory. in ../../../gcc-3.4.3/boehm-gc/mark.c (gdb) bt #0 GC_push_all_eager (bottom=0x0, top=0x390a8 "") at ../../../gcc-3.4.3/boehm-gc/mark.c:1468 #1 0x40637660 in GC_push_all_stacks () at ../../../gcc-3.4.3/boehm-gc/pthread_stop_world.c:232 #2 0x40632194 in GC_push_roots (all=1, cold_gc_frame=0xbefffaf4 "") at ../../../gcc-3.4.3/boehm-gc/mark_rts.c:643 #3 0x406316a4 in GC_mark_some (cold_gc_frame=0xbefffaf4 "") at ../../../gcc-3.4.3/boehm-gc/mark.c:326 #4 0x406289e8 in GC_stopped_mark (stop_func=0x40628640 ) at ../../../gcc-3.4.3/boehm-gc/alloc.c:517 #5 0x40629488 in GC_try_to_collect_inner (stop_func=0x40628640 ) at ../../../gcc-3.4.3/boehm-gc/alloc.c:364 #6 0x40632c38 in GC_init_inner () at ../../../gcc-3.4.3/boehm-gc/misc.c:758 #7 0x40632f00 in GC_init () at ../../../gcc-3.4.3/boehm-gc/misc.c:477 #8 0x4062d04c in GC_init_gcj_malloc (mp_index=0, mp=0x404337b8) at ../../../gcc-3.4.3/boehm-gc/gcj_mlc.c:60 #9 0x4043449c in _Jv_InitGC () at ../../../gcc-3.4.3/libjava/boehm.cc:526 #10 0x404367c4 in _Jv_CreateJavaVM () at ../../../gcc-3.4.3/libjava/prims.cc:907 #11 0x40436ca4 in _Jv_RunMain (klass=0x1107c, name=0x0, argc=1, argv=0xbefffdb4, is_jar=false) at ../../../gcc-3.4.3/libjava/prims.cc:992 #12 0x40436ec4 in JvRunMain (klass=0x0, argc=-1090519712, argv=0x0) at ../../../gcc-3.4.3/libjava/prims.cc:1030 #13 0x00008b04 in main (argc=1, argv=0xbefffdb4) at /tmp/cccmH5zI.i:11 ========================================================================= -- What |Removed |Added ---------------------------------------------------------------------------- CC| |ngmlinux at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5487