This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients gdr@garethrees.org, vstinner
Date 2011-08-08.08:56:40
SpamBayes Score 0.003713739
Marked as misclassified No
Message-id <1312793801.6.0.291345493091.issue12700@psf.upfronthosting.co.za>
In-reply-to
Content
test_enable_file, test_enable_single_thread, test_gil_released and test_read_null read an int (4 bytes) from the address 0 (NULL).

test_sigsegv pass: this test raises explicitly a SIGSEGV and the signal handler writes the right message ("Segmentation fault").

Mac OS X Lion raises maybe a SIGILL on a segmentation fault if the address is zero? I suppose that it raises a SIGSEGV if the address is not zero.

Can you try to modify the function faulthandler_read_null() in Modules/faulthandler.c: replace "int *x = NULL, y;" by "int *x = (int *)1, y;" ? Then recompile (make) and rerun the test (./python.exe -m test -v test_faulthandler).
History
Date User Action Args
2011-08-08 08:56:41vstinnersetrecipients: + vstinner, gdr@garethrees.org
2011-08-08 08:56:41vstinnersetmessageid: <1312793801.6.0.291345493091.issue12700@psf.upfronthosting.co.za>
2011-08-08 08:56:41vstinnerlinkissue12700 messages
2011-08-08 08:56:40vstinnercreate