From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9966 invoked by alias); 12 Mar 2008 13:25:58 -0000 Received: (qmail 9947 invoked by uid 48); 12 Mar 2008 13:25:58 -0000 Date: Wed, 12 Mar 2008 13:25:00 -0000 Subject: [Bug libgcj/35552] New: GCJ ARM compiled programs give segmentation fault X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: java-prs@gcc.gnu.org From: "zkhan at d2tech dot com" Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2008-q1/txt/msg00147.txt.bz2 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