This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hanno
Recipients hanno
Date 2014-03-07.18:22:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1394216549.17.0.426654108401.issue20866@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-03-07 18:22:29hannosetrecipients: + hanno
2014-03-07 18:22:29hannosetmessageid: <1394216549.17.0.426654108401.issue20866@psf.upfronthosting.co.za>
2014-03-07 18:22:29hannolinkissue20866 messages
2014-03-07 18:22:28hannocreate