This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: Seg fault
mark kimsal wrote:
> Tom Tromey wrote:
>
> > >>>>> "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
>
> hmm... gdb eh? I'll try it
>
> > 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.
>
GDB didn't help very much, so i started cutting out code until it worked. I
found that it wasn't any amount of SDL or C coding that provided the seg
fault, it was a parameter sent to the linker. The -lpthreads sent to the
linker caused a seg fault. Now I would like to know what this flag does, and
if removing it will introduce any roadblocks for normal development? The
lpthreads flag was a standard flag for gcc from the SDL library.