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 vstinner
Recipients neologix, pitrou, vstinner
Date 2015-03-16.16:01:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426521664.1.0.277503353599.issue23680@psf.upfronthosting.co.za>
In-reply-to
Content
The bug only occurs in Python 3.5, right?

> Sometimes the test suite freezes in test_interrupted_write_retry_text (test.test_io.CSignalsTest).

How do you run the test suite? Is your system heavily loaded? Is it "fast"?

This is an obvious race condition in the test if SIGARLM is send before write() is called:

            signal.alarm(1)
            # Expected behaviour:
            # - first raw write() is partial (because of the limited pipe buffer
            #   and the first alarm)
            # - second raw write() returns EINTR (because of the second alarm)
            # - subsequent write()s are successful (either partial or complete)
            self.assertEqual(N, wio.write(item * N))

1 second should be enough :-)

--

Or it is maybe a regression caused by the changeset 5b63010be19e of issue #23285 (PEP 475).
History
Date User Action Args
2015-03-16 16:01:04vstinnersetrecipients: + vstinner, pitrou, neologix
2015-03-16 16:01:04vstinnersetmessageid: <1426521664.1.0.277503353599.issue23680@psf.upfronthosting.co.za>
2015-03-16 16:01:04vstinnerlinkissue23680 messages
2015-03-16 16:01:03vstinnercreate