Message127540
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". |
|
Date |
User |
Action |
Args |
2011-01-30 15:50:34 | marcin.bachry | set | recipients:
+ marcin.bachry, theller, Arfrever, daniel.urban, Arach |
2011-01-30 15:50:34 | marcin.bachry | set | messageid: <1296402634.04.0.519957258003.issue11048@psf.upfronthosting.co.za> |
2011-01-30 15:50:33 | marcin.bachry | link | issue11048 messages |
2011-01-30 15:50:33 | marcin.bachry | create | |
|