[issue14091] python subprocess hangs if script called from another directory

2012-02-23 Thread Massimo Paladin
Massimo Paladin massimo.pala...@gmail.com added the comment: Will follow it. Thanks, -Massimo -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14091

[issue14091] python subprocess hangs if script called from another directory

2012-02-23 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Will follow it. If you report the issue to abrt, could you give me the url to your report please? (as a comment to this issue) -- ___ Python tracker rep...@bugs.python.org

[issue14091] python subprocess hangs if script called from another directory

2012-02-22 Thread Massimo Paladin
New submission from Massimo Paladin massimo.pala...@gmail.com: Here is the behavior I am getting only on Python 2.7.2 in a Fedora 16: $ cat /tmp/example.py from subprocess import Popen,PIPE args = whatever program.split() p = Popen(args) If I run the program with: $ cd /tmp/; python example.py

[issue14091] python subprocess hangs if script called from another directory

2012-02-22 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: I'm unable to reproduce the problem on Fedora 16 with Python 2.7.2. It hangs until I stop it with ctrl-c Do you get an exception after hiting CTRL+c? -- nosy: +haypo ___ Python tracker

[issue14091] python subprocess hangs if script called from another directory

2012-02-22 Thread Massimo Paladin
Massimo Paladin massimo.pala...@gmail.com added the comment: Yes, the expected one: ^CTraceback (most recent call last): File /tmp/example.py, line 7, in module p = Popen(args) File /usr/lib64/python2.7/subprocess.py, line 679, in __init__ errread, errwrite) File

[issue14091] python subprocess hangs if script called from another directory

2012-02-22 Thread Massimo Paladin
Massimo Paladin massimo.pala...@gmail.com added the comment: The line which is mentioned in the exception for the file example.py is 7 because I have something commented out which I didn't past in the text before. -- ___ Python tracker

[issue14091] python subprocess hangs if script called from another directory

2012-02-22 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Could you try to collect more information with gdb? cd ~; gdb -args python /tmp/example.py (gdb) run python hangs CTRL+c (gdb) where the expected output -- ___ Python tracker

[issue14091] python subprocess hangs if script called from another directory

2012-02-22 Thread Massimo Paladin
Massimo Paladin massimo.pala...@gmail.com added the comment: $ cd ~; gdb -args python /tmp/example.py GNU gdb (GDB) Fedora (7.3.50.20110722-10.fc16) Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free

[issue14091] python subprocess hangs if script called from another directory

2012-02-22 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: (gdb) where #0  0x0039d3a0e8e0 in __connect_nocancel () from /lib64/libpthread.so.0 #1  0x7095c678 in ?? () from /usr/lib64/python2.7/lib-dynload/_socketmodule.so #2  0x7095d524 in ?? () from

[issue14091] python subprocess hangs if script called from another directory

2012-02-22 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14091 ___ ___