This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Segfaulting hello world
- To: java-discuss at sourceware dot cygnus dot com
- Subject: Segfaulting hello world
- From: Martin Kahlert <martin dot kahlert at infineon dot com>
- Date: Tue, 16 Jan 2001 12:38:22 +0100
- Reply-To: martin dot kahlert at infineon dot com
Hi,
i tried gcc-20010115 today and configured by
../configure --enable-languages=c++,f77,java --enable-threads=posix --enable-libstdcxx-v3
(no --disable-new-gxx-abi flag!)
I removed the
noconfigdirs="${libgcj}"
line from the top level configure.in
and got a working gcj.
Then i tried this source:
public class hello
{
public static void main(String[] args)
{
System.out.println("Hello World");
}
}
and compiled by 'gcj -o main --main=hello hello.java'
(which worked with previous snapshots) and got an immediate segfault at
runtime. I assume it has to do with the new-gxx-abi patching.
This is on i686-linux.
gdb ./main
run
where
tells me:
#0 0x0 in ?? ()
#1 0x804a96e in __register_frame_info (begin=0x4054039c, ob=0x405411e0)
at ../../gcc/frame-dwarf2.c:563
#2 0x4047b7f2 in __libc_global_ctors () at soinit.c:53
#3 0x4047b882 in init (argc=1, argv=0xbffff324, envp=0xbffff32c)
at ../sysdeps/unix/sysv/linux/init-first.c:81
#4 0x4047b8f7 in _init (arg=0x1) at ../sysdeps/unix/sysv/linux/init-first.c:87
(gdb)
Is this a known problem?
Thanks,
Martin.
--
The early bird gets the worm. If you want something else for
breakfast, get up later.