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 <1296402634.04.0.519957258003.issue11048@psf.upfronthosting.co.za>
In-reply-to
Content
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:

  https://github.com/atgreen/libffi/commit/eaf444eabc4c78703c0f98ac0197b1619c1b1bef

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".
History
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: <1296402634.04.0.519957258003.issue11048@psf.upfronthosting.co.za>
2011-01-30 15:50:33marcin.bachrylinkissue11048 messages
2011-01-30 15:50:33marcin.bachrycreate