Previous Thread  Next Thread

chat icon Compiled on Slack 8 but segfaults on start up

mpeters

Posted: Sun Oct 27, 2002 4:23 pm
Joined: 27 Oct 2002
Posts: 3
I just downloaded the source and got it built on Slackware (with a little gentle coaxing) but I get a segfault on start up. gdb shows

Program received signal SIGSEGV, Segmentation fault.
0x814bf4f in draw_object ()

to be the culprit.

I'm using gcc-2.95.3, kernel 2.4.19, libc-2.2.5

Any pointers would be appreciated. (Is this the right forum for this type of query? Sorry if it isn't)

Mike
Reply with quote


mpeters

Posted: Mon Oct 28, 2002 9:42 pm
Joined: 27 Oct 2002
Posts: 3
hmmm...!
just done a make debug with no further modifications and the debug version seems to be working fine.

Mike
Reply with quote


nlin

Posted: Tue Oct 29, 2002 12:03 am
Joined: 16 Oct 2002
Posts: 6
Compile drawobject.c with optimization level -O2 instead of -O3 and it will work.
Reply with quote


mpeters

Posted: Tue Oct 29, 2002 12:36 am
Joined: 27 Oct 2002
Posts: 3
Yup, that's cracked it. Thanks.

Mike
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group