This is the mail archive of the java-discuss@sources.redhat.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: Seg fault


>>>>> "mark" == mark kimsal <chugadie.geo@yahoo.com> writes:

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

Yes, use the debugger.

    gdb <your-app>
    run
    ... seg fault
    bt

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.

Tom

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