This is the mail archive of the mailing list for the Java project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Segfaulting hello world

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
line from the top level
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'
(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
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

Is this a known problem?

The early bird gets the worm. If you want something else for       
breakfast, get up later.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]