From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12061 invoked by alias); 22 Oct 2003 16:29:03 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 12002 invoked from network); 22 Oct 2003 16:29:01 -0000 Received: from unknown (HELO vsmtp1.tin.it) (212.216.176.221) by sources.redhat.com with SMTP; 22 Oct 2003 16:29:01 -0000 Received: from ims1d.cp.tin.it (212.216.176.58) by vsmtp1.tin.it (7.0.019) id 3F8C81C600478A7B; Wed, 22 Oct 2003 18:28:52 +0200 Received: from [192.168.70.227] by ims1d.cp.tin.it with HTTP; Wed, 22 Oct 2003 18:28:51 +0200 Date: Wed, 22 Oct 2003 17:21:00 -0000 Message-ID: <3F8C9C450000FF06@ims1d.cp.tin.it> In-Reply-To: From: "Giovanni Visciano" Subject: Re: gcj segmentation fault To: "Jeff Sturm" Cc: gcc@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-SW-Source: 2003-10/txt/msg01069.txt.bz2 >On Tue, 21 Oct 2003, Giovanni Visciano wrote: >> ./configure --prefix=3D/home/gio/Gcc3.3.2 --program-suffix=3D-3.3.2 >> make >> make install >> >> added to my PATH /home/gio/Gcc3.3.2/bin, >> and to LD_LIBRARY_PATH /home/gio/Gcc-3.3.2/lib >> >> gcc-3.3.2 woks without problems. >> gcj-3.3.2 compiles my java programs but when I run them: >> >> ex. >> gcj-3.3.2 --main=3DHelloWorld HelloWorld.java >> (a.out created) >> ./a.out >> (segmentation fault) > >There aren't enough clues in your message to guess what may have gone >wrong. > >Try running "ldd a.out" to verify it is linking to the libgcj.so in >$prefix/lib. Try running under gdb to get a stack trace. Thanks for your reply Jeff; this is the output: gio@debian:~$ ldd a.out libgcc_s.so.1 =3D> /home/gio/Gcc-3.3.2/lib/libgcc_s.so.1 (0x40014000) libgcj.so.4 =3D> /home/gio/Gcc-3.3.2/lib/libgcj.so.4 (0x4001c000) libm.so.6 =3D> /lib/libm.so.6 (0x40805000) libpthread.so.0 =3D> /lib/libpthread.so.0 (0x40826000) libdl.so.2 =3D> /lib/libdl.so.2 (0x4083a000) libc.so.6 =3D> /lib/libc.so.6 (0x4083d000) /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x40000000) runnig a.out with gdb: (gdb) run Starting program: /home/gio/Desktop/a.out [New Thread 1024 (LWP 488)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 488)] 0x79730065 in ?? () Giovanni.