[issue24891] python aborts running under nohup

2015-08-18 Thread STINNER Victor
Changes by STINNER Victor : -- priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue24891] python aborts running under nohup

2015-08-18 Thread STINNER Victor
STINNER Victor added the comment: Python 2 is not affected, PyFile_FromFile() doesn't check if the file descriptor is valid. On Python 3, we call fstat() to check the block size of the file descriptor to optimize buffering. -- versions: +Python 3.5, Python 3.6

[issue24891] python aborts running under nohup

2015-08-18 Thread STINNER Victor
STINNER Victor added the comment: I can reproduce the bug with gdb if the file descriptor 0 is closed before calling: std = create_stdio(iomod, fd, 0, "", encoding, errors); and after the following lines were called: fd = fileno(stdin); if (!is_valid_fd(fd)) { In initstdio () at Pyt

[issue24891] python aborts running under nohup

2015-08-18 Thread Yi Ding
Yi Ding added the comment: That's from my nohup.out. It might be a Mac OS specific thing. -- ___ Python tracker ___ ___ Python-bugs-li

[issue24891] python aborts running under nohup

2015-08-18 Thread Yi Ding
Yi Ding added the comment: Fatal Python error: Py_Initialize: can't initialize sys standard streams OSError: [Errno 9] Bad file descriptor ./test.sh: line 4: 49632 Abort trap: 6 python3 test.py -o hello.txt -- ___ Python tracker

[issue24891] python aborts running under nohup

2015-08-18 Thread STINNER Victor
STINNER Victor added the comment: I'm unable to reproduce the issue on Linux with Python 3.4.2. -- components: +Macintosh nosy: +haypo, ned.deily, ronaldoussoren ___ Python tracker _

[issue24891] python aborts running under nohup

2015-08-18 Thread Robert Collins
Robert Collins added the comment: What sort of errors? -- nosy: +rbcollins ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue24891] python aborts running under nohup

2015-08-18 Thread Yi Ding
Yi Ding added the comment: test.sh attached -- Added file: http://bugs.python.org/file40210/test.sh ___ Python tracker ___ ___ Python-

[issue24891] python aborts running under nohup

2015-08-18 Thread Yi Ding
New submission from Yi Ding: Looks like this bug https://bugs.python.org/issue7111 has resurfaced in python3 (python 2.6 works as far as I can tell) at least on Macs. I've attached a simple test script. Steps: 1. SSH to remote server. 2. Run nohup ./test.sh & 3. exit SSH. 4. SSH back in and se