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 njs, pitrou, vstinner, yselivanov
Date 2018-07-18.13:14:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531919693.37.0.56676864532.issue34130@psf.upfronthosting.co.za>
In-reply-to
Content
I modified test_warn_on_full_buffer() to fill the socket pair using chunks of 64 KiB instead of sending b'x' byte per byte, just to make the test faster.

Using two terminals, I ran "python -m test test_signal -m test_warn_on_full_buffer -F": I reproduced the bug in 2 minutes.

Ok. The problem is in that is that the code responsible to full the socketpair is not reliable. *Sometimes*, send() blocks, whereas if I retry *immediately*, the send() complete (the socketpair is not full).

The issue seems to be related to the test_socket() failure where send() is "asynchronous".
History
Date User Action Args
2018-07-18 13:14:53vstinnersetrecipients: + vstinner, pitrou, njs, yselivanov
2018-07-18 13:14:53vstinnersetmessageid: <1531919693.37.0.56676864532.issue34130@psf.upfronthosting.co.za>
2018-07-18 13:14:53vstinnerlinkissue34130 messages
2018-07-18 13:14:53vstinnercreate