darcs

Issue 1986 problems with stderr handling

Title problems with stderr handling
Priority bug Status given-up
Milestone Resolved in
Superseder Nosy List dmitry.kurochkin, qnikst
Assigned To
Topics

Created on 2010-10-31.23:11:39 by qnikst, last changed 2017-07-31.00:08:43 by gh.

Files
File name Uploaded Type Edit Remove
1.py qnikst, 2010-10-31.23:11:38 text/x-python
Messages
msg12859 (view) Author: qnikst Date: 2010-10-31.23:11:38
When darcs is called from another program (In my case python) and it's
output redirected to stderr, darcs hangs on exit. So it finished all
tasks (not using CPU).
strace write:
futex(0xf27bcc, FUTEX_WAIT_PRIVATE, 43, NULL

This situation can be when darcs trying to close stderr before exit.
I'm attaching a simple python program describing this situation. 
3/4 test are passing (writing to stdout and hacking running cmd), but
last fails.
Attachments
msg13199 (view) Author: kowey Date: 2010-11-22.09:51:52
Hi,

On Sun, Oct 31, 2010 at 23:11:39 +0000, qnikst wrote:
> When darcs is called from another program (In my case python) and it's
> output redirected to stderr, darcs hangs on exit. So it finished all
> tasks (not using CPU).
> strace write:
> futex(0xf27bcc, FUTEX_WAIT_PRIVATE, 43, NULL

Thanks for bug report and (especially!) the minimal test case helping
us to reproduce it.

Unfortunately, this works for me on my Linux box (4 passes).

I got a copy of XMonadContrib and ran your script.

Do you have hints about your setup that would account for this
difference?

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
For a faster response, try +44 (0)1273 64 2905 or
xmpp:kowey@jabber.fr (Jabber or Google Talk only)
msg13200 (view) Author: kowey Date: 2010-11-22.09:53:45
On Mon, Nov 22, 2010 at 09:45:10 +0000, Eric Kow wrote:
> I got a copy of XMonadContrib and ran your script.
> 
> Do you have hints about your setup that would account for this
> difference?

I tried this with darcs 2.4.3, darcs 2.5.0 and HEAD for what it's worth.

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
For a faster response, try +44 (0)1273 64 2905 or
xmpp:kowey@jabber.fr (Jabber or Google Talk only)
History
Date User Action Args
2010-10-31 23:11:39qnikstcreate
2010-11-22 09:51:47koweysetpriority: bug
status: unknown -> waiting-for
2010-11-22 09:51:53koweysetmessages: + msg13199
2010-11-22 09:53:46koweysetmessages: + msg13200
2017-07-31 00:08:43ghsetstatus: waiting-for -> given-up