[issue6531] atexit_callfuncs() crashing within Py_Finalize() when using multiple interpreters.
Changes by Christian Häggström paj...@kalvdans.no-ip.org: -- nosy: +chn ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6531 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3905] subprocess failing in GUI applications on Windows
Changes by Christian Häggström paj...@kalvdans.no-ip.org: -- nosy: +chn ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3905 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12607] subprocess(stdout=..., stderr=sys.stdout) breaks stderr for child
New submission from Christian Häggström paj...@kalvdans.no-ip.org: I hit a variant of issue #12251, namely when you redirect both stdout and stderr of a child process and one of them uses a low fd. Testcase: import subprocess, sys subprocess.call([ls, asda], stderr = sys.stdout, stdout = open(/dev/null, w)) strace output: open(/dev/null, O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3 [child process] dup2(3, 1) = 1 // overwrites the stdout filedescriptor.. dup2(1, 2) = 2 // that was supposed to be duped here. close(3)= 0 // okay The testcase is supposed to print ls: file not found on stdout, but is silent. -- components: Library (Lib) messages: 140864 nosy: Evgeny.Tarasov, alexey-smirnov, chn, haypo, mmarkk, neologix, r.david.murray priority: normal severity: normal status: open title: subprocess(stdout=..., stderr=sys.stdout) breaks stderr for child versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12607 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12607] subprocess(stdout=..., stderr=sys.stdout) breaks stderr for child
Christian Häggström paj...@kalvdans.no-ip.org added the comment: I expect that 'ls' print the error message on its stderr, which would be redirected to stdout of the test Python program. If I had been using stderr = subprocess.STDOUT, I can agree with you that both output streams would go to /dev/null. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12607 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12607] subprocess(stdout=..., stderr=sys.stdout) breaks stderr for child
Christian Häggström paj...@kalvdans.no-ip.org added the comment: Thanks for the patch, I haven't tried it (I'm still on Python 2.7) but it looks very special-cased to my case. I can think about exotic cases like stdin = sys.stderr, stdout = sys.stdin, stderr = sys.stdout It can happen in reality if a daemon have closed stdio (see bug 10806) and reusing fd's 0,1,2 for other purposes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12607 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3426] os.path.abspath with unicode argument should call os.getcwdu
New submission from Christian Häggström [EMAIL PROTECTED]: If current working directory contains non-ascii characters, calling os.path.abspath(u.) will result in an error. I expect it to call the underlying os.getcwdu() in this case. import os os.path.abspath(u.) Traceback (most recent call last): File stdin, line 1, in module File /home/packages/python-2.5.1/x86-linux/lib/python2.5/posixpath.py, line 403, in abspath path = join(os.getcwd(), path) File /home/packages/python-2.5.1/x86-linux/lib/python2.5/posixpath.py, line 65, in join path += '/' + b UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 29: ordinal not in range(128) It works if I do it manually, using os.getcwdu(): os.path.join(os.getcwdu(), u.) u'/disk1/chn_local/work/test/sk\xe4rg\xe5rds\xf6-latin1/.' -- components: Unicode messages: 70148 nosy: saturn_mimas severity: normal status: open title: os.path.abspath with unicode argument should call os.getcwdu type: behavior versions: Python 2.4, Python 2.5 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3426 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com