This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: Seg fault
- To: mark at tapinternet dot com
- Subject: Re: Seg fault
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 12 Sep 2000 14:00:39 -0600
- Cc: java-discuss at sourceware dot cygnus dot com
- References: <39BE859F.14A5C9B0@yahoo.com>
- Reply-To: tromey at cygnus dot com
>>>>> "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