[issue23680] Sporadic freeze in test_interrupted_write_retry_text

STINNER Victor report at bugs.python.org
Mon Mar 16 18:00:59 CET 2015


STINNER Victor added the comment:

2015-03-16 17:41 GMT+01:00 Antoine Pitrou <report at bugs.python.org>:
> Note that PIPE_MAX_SIZE can be large. Perhaps move the memory allocation (i.e. `item * (support.PIPE_MAX_SIZE // len(item) + 1)`) before the alarm(1) call?

Good idea, the first strace shows that SIGALRM was received while
Python was creating the large data.

I made this simple change. Can you tell me if my change fixes the issue?

> Or what if alarm_interrupt is simply set up to retrigger the signal?

It may make the test more reliable and I don't see how it can fix the
issue showed in the strace. Feel free to make the test more reliable
with such change if you want.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23680>
_______________________________________


More information about the Python-bugs-list mailing list