Message212897
I experience a segmentation fault with python 2.7 (both 2.7.5 and 2.7.6 tested on Ubuntu and Gentoo) when a large file is piped, the pipe is passed to os.popen and the process sends a SIGPIPE signal.
To create an easy to reproduce testcase grep can be used. See example attached.
To test first create a dummy file containing zeros, around 1 megabyte is enough:
for i in `seq 1 100000`; do echo "0123456789" >> dummy.txt; done
Then pipe it to the script attached like this:
cat dummy.txt | python2 minimal.py
Result is a Segmentation fault. The same code doesn't segfault with python 3. |
|
Date |
User |
Action |
Args |
2014-03-07 18:22:29 | hanno | set | recipients:
+ hanno |
2014-03-07 18:22:29 | hanno | set | messageid: <1394216549.17.0.426654108401.issue20866@psf.upfronthosting.co.za> |
2014-03-07 18:22:29 | hanno | link | issue20866 messages |
2014-03-07 18:22:28 | hanno | create | |
|