[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5504 ___ ___

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-09-05 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Fixing the alloc_closure error is easy enough: Index: ../setup.py === --- ../setup.py (revision 84528) +++ ../setup.py (working copy) @@ -1653,7 +1653,9 @@

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-09-05 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: Please find attached a fix for #9662. Some explanation is in order: - the Windows, Linux and OS X implementations of FFI included in the SVN are different in terms of maturity - Thomas originally when fixing #5504 used a bit of functionality

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-09-05 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Łukasz' patch fixes the issue for me. As the patch only affects code-paths used on OSX (patches to the libffi version for OSX and an #ifdef that makes OSX use ffi_prep_closure instead of ffi_prep_closure_loc) I intend to commit the

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-08-30 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Like Mark, I too see an error with ctypes due to this change: *** WARNING: renaming _ctypes since importing it failed: dlopen(build/lib.macosx-10.5-intel-3.2/_ctypes.so, 2): Symbol not found: _ffi_closure_alloc Referenced from:

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-08-13 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Same error on the buildbots, here: http://www.python.org/dev/buildbot/3.x/builders/PPC%20Leopard%203.x/builds/288/steps/compile/logs/stdio -- ___ Python tracker rep...@bugs.python.org

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-08-09 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: Thomas, it seems this change doesn't work for py3k. Buildbots complain and my working copy does as well. Example: http://www.python.org/dev/buildbot/all/builders/x86%20gentoo%203.1/builds/990 I do not know why this happens. It works

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-08-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I do not know why this happens. The failure is in 3.1, and the reason is quite obvious: the patch relies on libffi/src/closures.c, which doesn't exist in the 3.1 copy of libffi. I've reverted your commit in r83924, since you say you won't be

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-08-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Correction: the revert was done in r83926. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5504 ___

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-08-08 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: issue5504-py27-2.patch is the updated patch that now also works on Windows. -- Added file: http://bugs.python.org/file18439/issue5504-py27-2.patch ___ Python tracker rep...@bugs.python.org

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-08-08 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: Fixed in rev 83836 (release27-maint branch) and rev. 83837 (py3k branch). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5504

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-08-08 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: Thomas, it seems this change doesn't work for py3k. Buildbots complain and my working copy does as well. Example: http://www.python.org/dev/buildbot/all/builders/x86%20gentoo%203.1/builds/990 -- nosy: +lukasz.langa

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-08-08 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5504 ___ ___ Python-bugs-list

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-08-03 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5504 ___ ___ Python-bugs-list

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-08-03 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: The libffi library included with Python has been updated in the meantime, so most of the issue5504-linux.patch is unneeded now. Here is a new patch, issue5504-py27.patch, against the current release27-maint branch. Seems it is exactly the

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-07-28 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Could someone with linux experience please review the patch. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5504

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-07-28 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever title: ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC - ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC versions: +Python 2.7,

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-07-28 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: FWIW, the patch for this that I'm currently applying to Fedora's python 2.7 rpms can be seen at: http://cvs.fedoraproject.org/viewvc/devel/python/python-2.7rc1-ctypes-noexecmem.patch?revision=1.1content-type=text%2Fplainview=co It doesn't

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-02-09 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- keywords: +needs review priority: - normal stage: - patch review type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5504 ___

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-01-29 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5504 ___ ___ Python-bugs-list

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2009-05-05 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: Try this as root, then repeat your test: semanage boolean -m --off allow_execstack Ok, I can reproduce the problem now. Thanks! -- title: ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC - ctypes should

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2009-05-05 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: Here is a patch for Python trunk (linux only). -- Added file: http://bugs.python.org/file13897/issue5504.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5504

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2009-05-04 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: Hm, I don't see any problems with current Python trunk or the release26-maint branch, on a Fedora 10 system. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5504

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2009-05-04 Thread Adam Goode
Adam Goode a...@spicenitz.org added the comment: Currently there is an issue where allow_execstack implies allow_execmem. Even though allow_execmem is default to off, allow_execstack is default to on. If this issue is fixed, or if the administrator sets allow_execstack to off, ctypes will fail.

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2009-03-17 Thread Adam Goode
New submission from Adam Goode a...@spicenitz.org: On Fedora systems, it is invalid to mmap something with PROT_WRITE and PROT_EXEC. libffi has been updated to support this, but ctypes has not been updated to use this new functionality. Attached is a patch which currently only works if system