Page 1 of 1

OSX 10.7.5 Segment Fault 11

Posted: Tue Nov 03, 2015 7:46 pm
by coder14
My program links a static library and works on OSX 10.9 but it crashes on OSX 10.7.5 with this error:

Code: Select all

segmentation fault: 11
It is a command line application. Anyone know what this error means?

Re: OSX 10.7.5 Segment Fault 11

Posted: Tue Nov 03, 2015 8:19 pm
by wilbert
When I searched using Google, I came across this remark
"segmentation fault", means that the program accessed a memory location that was not assigned
Does that help ?

Re: OSX 10.7.5 Segment Fault 11

Posted: Wed Nov 04, 2015 3:47 am
by coder14
wilbert wrote:When I searched using Google, I came across this remark
"segmentation fault", means that the program accessed a memory location that was not assigned
Does that help ?
Sorry but I don't know. How come it works on 10.9 and not 10.7.5? I downloaded CodeBlocks onto the 10.7.5 machine and compiled the static library again but still the same error.

Re: OSX 10.7.5 Segment Fault 11

Posted: Wed Nov 04, 2015 6:53 am
by wilbert
coder14 wrote:How come it works on 10.9 and not 10.7.5? I downloaded CodeBlocks onto the 10.7.5 machine and compiled the static library again but still the same error.
I don't know. Hard to tell with this little information.
Maybe you can use some debug tool to find out what is causing it.

Re: OSX 10.7.5 Segment Fault 11

Posted: Wed Nov 04, 2015 7:41 am
by coder14
wilbert wrote:
coder14 wrote:How come it works on 10.9 and not 10.7.5? I downloaded CodeBlocks onto the 10.7.5 machine and compiled the static library again but still the same error.
I don't know. Hard to tell with this little information.
Maybe you can use some debug tool to find out what is causing it.
I will try. Thanks for your help.

Do you know if there is any problem with PureBasic's Linux downloads? I can't extract the 32bit 5.40 - getting unexpected EOF error. When I install the 32bit 5.31 it does not launch. :?

I am using Ubuntu Mate 15.10.

Re: OSX 10.7.5 Segment Fault 11

Posted: Wed Nov 04, 2015 7:55 am
by wilbert
coder14 wrote:Do you know if there is any problem with PureBasic's Linux downloads?
Sorry, can't help you there.
I'm only using the OSX and Windows versions of PureBasic.

As for the OSX debugging, you might consider looking at Instruments that comes with XCode.