STINNER Victor added the comment: "Well, there are some higly non-portable ways to try to escape this (see http://stackoverflow.com/questions/2663456/write-a-signal-handler-to-catch-sigsegv), but it won't fly in our case."
There is also the libsigsegv library, but it's hard and unsafe to handle such low level signals in Python. http://www.gnu.org/software/libsigsegv/ "It has a race condition as another process could truncate the file between the fstat() check and the code lines that access the mmapped file." You can use file locks to be protected against such race condition. See for example: http://pypi.python.org/pypi/lockfile ---------- nosy: +haypo _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16212> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com