This is the mail archive of the java-discuss@sourceware.cygnus.com 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]

Re: Problem with gcj


Brian Blount writes:
>    capefear(53)% gcj --main=Example -o Example Example.java
>    capefear(54)% ./Example
>    Segmentation fault (core dumped)

First, you want to consider reading this FAQ answer, from
http://sourceware.cygnus.com/java/FAQ.html:

 My program is dumping core! What's going on? 

 It could be any number of things. One common mistake is having
 your CLASSPATH environment variable pointing at a third party's
 java.lang and friends. Either unset CLASSPATH, or make sure it does
 not refer to core libraries other than those found in libgcj.zip.

If this applies to you, please unset the CLASSPATH environment
variable, recompile and re-run.

If it doesn't help, please tell us on which platform it fails (the
string returned by `uname -a' would be great.)

Can you also try to use gdb on ./Example. When it crashes, please send
us the result of the command `bt'.

In case you're not familiar with running gdb, here's how:

$ gdb Example
GNU gdb 4.xyz.....
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU Gener....
...
This GDB was configured as "...."
(gdb) run
(gdb should report the SegFault here, then issue the bt:)
(gdb) bt

Thanks,

./A

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