public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "ngmlinux at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: java-prs@gcc.gnu.org
Subject: [Bug java/5487] arm-linux-gcj cross-compiler generates bad assembler-code
Date: Wed, 31 Aug 2005 20:18:00 -0000	[thread overview]
Message-ID: <20050831201830.4126.qmail@sourceware.org> (raw)
In-Reply-To: <20020125014600.5487.jsantala@tml.hut.fi>


------- 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
<GC_never_stop_func>) at ../../../gcc-3.4.3/boehm-gc/alloc.c:517
#5  0x40629488 in GC_try_to_collect_inner (stop_func=0x40628640
<GC_never_stop_func>) 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


  parent reply	other threads:[~2005-08-31 20:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20020125014600.5487.jsantala@tml.hut.fi>
2005-08-26 18:01 ` ngmlinux at gmail dot com
2005-08-31 20:18 ` ngmlinux at gmail dot com [this message]
2005-09-01 10:19 ` rearnsha at gcc dot gnu dot org
2005-09-01 19:52 ` ngmlinux at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050831201830.4126.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=java-prs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).