Hi guys,
could anyone tell me what segmentation fault means?
Thx

Re: segmentation fault 80 80

Should be a thing of the past. In earlier years of computing, when 16bit operating systems were king, memory used to be addressed in segments/chunks of 64k (2**16). If you crossed one of those segments, you got a fault message. Python's memory manager shouldn't give you any problems like that! You might ask our friends in the C forum.

Re: segmentation fault 80 80

It's the error that gets thrown in C (and other languages with direct memory access) when you try to write to or read from a piece of memory you don't own.

As vega said, you should never see this error in Python, since Python doesn't allow you direct access to memory.

Out of curiousity, why do you ask?

Jeff

Re: segmentation fault 80 80

thx for the replies. Hmm i'm using a function from the scipy lib called interpolate.(interp2d) It basically takes in 3 arrays and is supposed to perform interpolation. Whenever i use that function, python prints out the segmentation fault msg n then crashes :(

Re: segmentation fault 80 80

Scipy is written in C, must be that memory management is out of reach for Python to increase speed of certain functions within scipy.

Re: segmentation fault 80 80

Yeah, the seg fault is definitely not your fault. I recommend trying to find a work-around.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.