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 marcin.bachry
Recipients Arach, Arfrever, daniel.urban, marcin.bachry, theller
Date 2011-01-30.15:50:33
SpamBayes Score 4.9902013e-08
Marked as misclassified No
Message-id <>
This patch fixes issue with unitialized variable which makes ctypes crash in error handler.

Note that for you it merely turns "Segmentation fault" into MemoryError exception.  Python ships with buggy version of libffi, which tries to allocate memory using mmap() over a temporary file (the one seen in strace output above) instead of just doing mmap(MAP_ANONYMOUS|MAP_PRIVATE).  The bug is fixed in this libffi commit:

Until Python's libffi is updated, you can do "mount -t tmpfs none /dev/shm".  It's good to have "tmpfs" mounted anyway, just like "proc" and "sysfs".
Date User Action Args
2011-01-30 15:50:34marcin.bachrysetrecipients: + marcin.bachry, theller, Arfrever, daniel.urban, Arach
2011-01-30 15:50:34marcin.bachrysetmessageid: <>
2011-01-30 15:50:33marcin.bachrylinkissue11048 messages
2011-01-30 15:50:33marcin.bachrycreate