Ticket #127 (new defect)
onExit animations
| Reported by: | rndblnch | Owned by: | saurik |
|---|---|---|---|
| Priority: | blocker | Component: | Bootstrap |
| Keywords: | jailbreak, QuickPwn, Cydia, install, BossPrefs, SBSettings | Cc: | rndblnch@… |
Description
Python segfaults when calling a python function wrapped with c types into a c function pointer (aka callback function in ctypes terminology [0]).
After some investigations [1], it looks like the libffi which is used by ctypes to create c function pointer needs to have access to a memory region which is both writable and executable, which is not possible on the iPhoneOS.
The same issue for pyobjc is probably fixed in [2] but adapting the fix to libffi is not straightforward for the author of the ticket :)
It's also worth mentioning that libffi provides a fallback mechanism using temporary files mapped in memory, but I've not been able to make it work.
0. callback function <http://www.python.org/doc/2.5.2/lib/ctypes-callback-functions.html>
1. bug in ctypes/libffi <http://www.telesphoreo.org/pipermail/iphone-python/2008-October/000201.html>
2. patch to pyobjc fixing the same issue <http://www.telesphoreo.org/browser/trunk/data/pyobjc/mprotect.diff>
