public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/35552]  New: GCJ ARM compiled programs give segmentation fault
@ 2008-03-12 13:25 zkhan at d2tech dot com
  2008-03-12 16:31 ` [Bug libgcj/35552] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: zkhan at d2tech dot com @ 2008-03-12 13:25 UTC (permalink / raw)
  To: java-prs

I am trying to run GCJ on ARM9 platform from Texas Instruments / Monta Vista
(MVLCEE3.3.1 OMAP730).

Problem: GCJ builds fine, but when I run programs compiled by it, it gives me
segmentation fault.

This is my target system:
ARM9TDMI
MV Linux 2.4.20
Glibc 2.3.2
Binutils 2.14
GCC 3.3.1


So I cross compiled for this system using crosstool with following parameters:
ARM9TDMI
Linux Headers 2.4.20
Glibc 2.3.2
Binutils 2.14
GCC core 3.4.0
GCC (langs=c,c++,java) 4.2.3

1. arm-9tdmi-linux-gnu-gcc HelloWorld.c -o Hello-c -> Works fine on target
system
2. arm-9tdmi-linux-gnu-c++ HelloWorld.cpp -o Hello-cpp -> Works fine on target
system
3. arm-9tdmi-linux-gnu-gcj HelloWorld.java --main=HelloWorld -o Hello-java ->
Segmentation fault on target (same with -static)


Then I tried another combination of tools to try on QEMU ARM emulator which is
running
ARM9TDMI
Linux 2.6.18
Glibc 2.3.6
Binutils unknown
GCC 4.1.1

Using crosstools made a second set of toolchain
ARM9TDMI
Linux headers 2.6.18
Glibc 2.3.2 (2.3.6 does not build with this combination)
GCC core 3.4.0
Binutils 2.16.1
GCC (langs=c,c++,java) 4.2.3

I have same segmentation fault issue on emulator. I have tried with TLS or
without TLS support, same problem.

Does GCJ work in release 4.2.3?


Some config info from crosstool:
GCC:
/home/zkhan/Desktop/crosstool-0.43/build/arm-9tdmi-linux-gnu/gcc-4.2.3-glibc-2.3.2/gcc-4.2.3/configure
  --target=arm-9tdmi-linux-gnu --host=i686-host_pc-linux-gnu
--prefix=/opt/crosstool/gcc-4.2.3-glibc-2.3.2/arm-9tdmi-linux-gnu
--with-cpu=arm9tdmi --enable-cxx-flags=-mcpu=arm9tdmi
--with-headers=/opt/crosstool/gcc-4.2.3-glibc-2.3.2/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu/include
--with-local-prefix=/opt/crosstool/gcc-4.2.3-glibc-2.3.2/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu
--disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit
--enable-shared --enable-c99 --enable-long-long --enable-languages=c,c++,java
--no-create --no-recursion"


-- 
           Summary: GCJ ARM compiled programs give segmentation fault
           Product: gcc
           Version: 4.2.3
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zkhan at d2tech dot com
 GCC build triplet: -
  GCC host triplet: i686-host_pc-linux
GCC target triplet: arm-9tdmi-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35552


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libgcj/35552] GCJ ARM compiled programs give segmentation fault
  2008-03-12 13:25 [Bug libgcj/35552] New: GCJ ARM compiled programs give segmentation fault zkhan at d2tech dot com
@ 2008-03-12 16:31 ` pinskia at gcc dot gnu dot org
  2009-06-22 23:25 ` ramana at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-03-12 16:31 UTC (permalink / raw)
  To: java-prs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Severity|major                       |normal


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35552


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libgcj/35552] GCJ ARM compiled programs give segmentation fault
  2008-03-12 13:25 [Bug libgcj/35552] New: GCJ ARM compiled programs give segmentation fault zkhan at d2tech dot com
  2008-03-12 16:31 ` [Bug libgcj/35552] " pinskia at gcc dot gnu dot org
@ 2009-06-22 23:25 ` ramana at gcc dot gnu dot org
  2009-10-26 20:32 ` dl9pf at gmx dot de
  2010-03-20 19:02 ` ramana at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: ramana at gcc dot gnu dot org @ 2009-06-22 23:25 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from ramana at gcc dot gnu dot org  2009-06-22 23:25 -------
What happens with a more recent version of the toolchain  ? 4.2.x is now
obsolete.


-- 

ramana at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35552


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libgcj/35552] GCJ ARM compiled programs give segmentation fault
  2008-03-12 13:25 [Bug libgcj/35552] New: GCJ ARM compiled programs give segmentation fault zkhan at d2tech dot com
  2008-03-12 16:31 ` [Bug libgcj/35552] " pinskia at gcc dot gnu dot org
  2009-06-22 23:25 ` ramana at gcc dot gnu dot org
@ 2009-10-26 20:32 ` dl9pf at gmx dot de
  2010-03-20 19:02 ` ramana at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: dl9pf at gmx dot de @ 2009-10-26 20:32 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from dl9pf at gmx dot de  2009-10-26 20:32 -------
Could this be a problem with boehm-gc ?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35552


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libgcj/35552] GCJ ARM compiled programs give segmentation fault
  2008-03-12 13:25 [Bug libgcj/35552] New: GCJ ARM compiled programs give segmentation fault zkhan at d2tech dot com
                   ` (2 preceding siblings ...)
  2009-10-26 20:32 ` dl9pf at gmx dot de
@ 2010-03-20 19:02 ` ramana at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: ramana at gcc dot gnu dot org @ 2010-03-20 19:02 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from ramana at gcc dot gnu dot org  2010-03-20 19:02 -------
(In reply to comment #2)
> Could this be a problem with boehm-gc ?
> 

It's hard to say if this is a problem with Boehm GC or not . The OP hasn't
given any more information and nor has he given a testcase to look at .

No feedback in over 6 months . Hence WONTFIX.


-- 

ramana at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |WONTFIX


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35552


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-03-20 19:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-12 13:25 [Bug libgcj/35552] New: GCJ ARM compiled programs give segmentation fault zkhan at d2tech dot com
2008-03-12 16:31 ` [Bug libgcj/35552] " pinskia at gcc dot gnu dot org
2009-06-22 23:25 ` ramana at gcc dot gnu dot org
2009-10-26 20:32 ` dl9pf at gmx dot de
2010-03-20 19:02 ` ramana at gcc dot gnu dot org

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).