A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-October/082833.html below:

[Python-Dev] Real segmentation fault handler

[Python-Dev] Real segmentation fault handler [Python-Dev] Real segmentation fault handlerGregory P. Smith greg at krypto.org
Sat Oct 4 08:19:06 CEST 2008
On Thu, Oct 2, 2008 at 10:54 AM, Thomas Heller <theller at ctypes.org> wrote:
> Victor Stinner schrieb:
>> Hi,
>>
>> I would like to be able to catch SIGSEGV in my Python code! So I started to
>> hack Python trunk to support this feature. The idea is to use a signal
>> handler which call longjmp(), and add setjmp() at Py_EvalFrameEx() enter.
>
> On windows, ctypes catches fatal errors (exception violations) in
> foreign function calls, thanks to windows structured exception handling.
>
> On other platforms, there is the WAD module by David Beazley which
> may do something similar:
>
> http://www.dabeaz.com/papers/Python2001/python.html
>
> I do not know whether the code itself is still available or not.

It appears to be here:

 http://web.archive.org/web/20030113032725/systems.cs.uchicago.edu/wad/

It may need a bit of attention to get it to work today, I haven't tried.

-gps
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4