Seg fault

Tom Tromey
Tue Sep 12 12:53:00 GMT 2000

>>>>> "mark" == mark kimsal <> writes:

mark> Is there anyway to get more information about the seg fault?

Yes, use the debugger.

    gdb <your-app>
    ... seg fault

This will give you a stack trace.  That might help.  You can also poke
around and find out why the crash occurred by printing local
variables, looking at the source, etc.

mark> Are there any clairvoiant people who can diagnose my problem
mark> based only on the error "Segmentation fault"?

It seems very unlikely.

mark>     compiled the java
mark>     compiled the .class output
mark>     made a .h of the java

You should probably compile from .java directly to .o (as well as to
.class since you need the .class file to make the .h file).  The
compiler can do a bit better when compiling from .java as compared to
compiling from .class.


More information about the Java mailing list