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 vstinner
Recipients Arfrever, jonash, pitrou, python-dev, vapier, vstinner
Date 2011-04-25.01:08:14
SpamBayes Score 4.4031262e-10
Marked as misclassified No
Message-id <1303693696.23.0.680044501579.issue11915@psf.upfronthosting.co.za>
In-reply-to
Content
This issue comes from sandbox, not from ctypes.

Using sandbox, execv() C function doesn't close files with FD_CLOEXEC flag if the child program is a static program.

test_ctypes hangs on find_library() in subprocess.Popen._execute_child():
 - create a pipe for the child exception (if any)
 - fork
 - the parent reads this pipe
 - the child calls exec()
 - exec() closes the pipe and the parent continues its work
 - etc.

find_library() runs "ldconfig -p" in a subprocess, and so everything hangs on "the parent reads this pipe" because "exec() closes the pipe and the parent continues its work" doesn't occur.
History
Date User Action Args
2011-04-25 01:08:16vstinnersetrecipients: + vstinner, pitrou, vapier, Arfrever, jonash, python-dev
2011-04-25 01:08:16vstinnersetmessageid: <1303693696.23.0.680044501579.issue11915@psf.upfronthosting.co.za>
2011-04-25 01:08:14vstinnerlinkissue11915 messages
2011-04-25 01:08:14vstinnercreate