Skip to content
Prev 3201 / 63424 Next

Segmentation fault, devPS.c, 0.99.0 (PR#413)

Roger.Bivand@nhh.no writes:
...
...
Hmm. This looks a bit nasty. You're hitting a segmentation fault
inside of an fprintf call, which likely means either that you're badly
out of memory (not really likely) or that the FILE structure "stream"
(alias "s" alis "fp" at 0x726b2e78) has gotten corrupted.

If you run the same example under the debugger, you might go in and
see what got corrupted (run till crash then "up", "up", "p *fp" to get
started) and see at what point in the execution it happened (this is
what gdb's hardware watchpoints are for...).