Author vstinner
Recipients Arfrever, jonash, pitrou, python-dev, vapier, vstinner
Date 2011-04-25.01:08:14
SpamBayes Score 4.40313e-10
Marked as misclassified No
Message-id <>
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.
Date User Action Args
2011-04-25 01:08:16vstinnersetrecipients: + vstinner, pitrou, vapier, Arfrever, jonash, python-dev
2011-04-25 01:08:16vstinnersetmessageid: <>
2011-04-25 01:08:14vstinnerlinkissue11915 messages
2011-04-25 01:08:14vstinnercreate