[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-12-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: Hugh: never mind There is a workaround for this issue: use socketpair(2) instead of pipe(2). I haven't thought enough about the consequences yet to have an firm opinion on implementing os.pipe using socketpair(2) on OSX. My gut feeling is that we shou

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-12-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks, closing it here as third-party. Feel free to follow up here with news on Apple's resolution of the issue. -- resolution: -> wont fix status: open -> closed versions: +3rd party ___ Python tracker

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-12-01 Thread Hugh Secker-Walker
Hugh Secker-Walker added the comment: Updated the C program to deal with command-line args. This is the version submitted to Apple Bug Reporter, issue 7433004. -- Added file: http://bugs.python.org/file15429/os_pipe_write_close_bug.c ___ Python trac

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-12-01 Thread Hugh Secker-Walker
Changes by Hugh Secker-Walker : Removed file: http://bugs.python.org/file15420/os_pipe_write_close_bug.c ___ Python tracker ___ ___ Python-bugs

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-12-01 Thread Hugh Secker-Walker
Hugh Secker-Walker added the comment: I have an ADC account that I only ever use to get XCode. I'll file a bug-report with Apple. -- ___ Python tracker ___ _

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: Hugh: Do you have an ADC account (either free or payed)? If you do you can file bugs at http://bugreport.apple.com/. If you don't I can file the bug for you. -- ___ Python tracker

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-30 Thread Hugh Secker-Walker
Hugh Secker-Walker added the comment: Fixed some typos in the C file -- Added file: http://bugs.python.org/file15420/os_pipe_write_close_bug.c ___ Python tracker ___

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-30 Thread Hugh Secker-Walker
Changes by Hugh Secker-Walker : Removed file: http://bugs.python.org/file15419/os_pipe_write_close_bug.c ___ Python tracker ___ ___ Python-bugs

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-30 Thread Hugh Secker-Walker
Hugh Secker-Walker added the comment: The attached C file exhibits the same symptoms, on Mac OS X 10.5 it eventually hangs in an uninteruptible disk wait. On Linux it doesn't hang. Further support for the idea that this is a Mac OS X problem. How does one provide this reproducible case to App

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: Hugh, for us as Python maintainers there is a distinction between issues with the Python implementation itself and those outside of Python. The former we can solve, the latter not. At best we can work around issues in the environment (I've recently committ

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-27 Thread Hugh Secker-Walker
Hugh Secker-Walker added the comment: Well, from *my* perspective it's a Python bug because I code to Python's API and Python misbehaves! ;-) If I start on it soon enough I'll look into duplicating the problem in C. -- ___ Python tracker

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: I agree with martin, this is probably an OS bug. BTW. I can confirm that the issue occurs on OSX 10.6 as well (using the binary 2.6.4 installer on the python.org website). I might get around to writing a C equivalent of the script in the future, but wouldn

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: Why do you think this is a bug in Python, and not an operating system bug? I.e. if you would redo the script in C, would it still hang? -- nosy: +loewis ___ Python tracker ___

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-26 Thread Hugh Secker-Walker
Changes by Hugh Secker-Walker : -- assignee: -> ronaldoussoren components: +Macintosh nosy: +ronaldoussoren ___ Python tracker ___ ___

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-26 Thread Hugh Secker-Walker
Changes by Hugh Secker-Walker : -- versions: +Python 2.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-26 Thread Hugh Secker-Walker
New submission from Hugh Secker-Walker : The attached script demonstrates a problem on Mac OS X 10.5 whereby Python can hang while simultaneously trying os.write with a large buffer and os.close, from separate threads on the write and read fds respectively of a pipe. -- components: IO fi