Message134361
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:16 | vstinner | set | recipients:
+ vstinner, pitrou, vapier, Arfrever, jonash, python-dev |
2011-04-25 01:08:16 | vstinner | set | messageid: <1303693696.23.0.680044501579.issue11915@psf.upfronthosting.co.za> |
2011-04-25 01:08:14 | vstinner | link | issue11915 messages |
2011-04-25 01:08:14 | vstinner | create | |
|