Mail Archives: cygwin/2008/01/11/20:37:27
<!-- DIV {margin:0px;}-->Hello,
Sorry, I reactivate this thread (http://cygwin.com/ml/cygwin/2007-03/msg00029.html) but I have exactly the same error with process make.
bash: cannot duplicate fd 31 to fd 0: Bad file descriptor
I ran my process make under strace (strace -ostrace.out bash -c make) and got this (have a look at the two last lines)
Does anyone have an idea ?
Thanks,
aoyou
25 109132 [main] bash 37932 fork: 0 = fork()
63 109195 [main] bash 37932 set_signal_mask: oldmask 0x0, newmask 0x0, mask_bits 0x0
320 109218 [main] bash 37840 fork: 37932 = fork()
43 109238 [main] bash 37932 set_signal_mask: not calling sig_dispatch_pending
35 109273 [main] bash 37932 sig_send: sendsig 0x630, pid 37932, signal -34, its_me 1
60 109278 [main] bash 37840 set_signal_mask: oldmask 0x80002,
newmask 0x80000, mask_bits 0x2
36 109309 [main] bash 37932 sig_send: wakeup 0x5F4
42 109320 [main] bash 37840 sig_send: sendsig 0x710, pid 37840, signal -39, its_me 1
28 109337 [main] bash 37932 sig_send: Waiting for pack.wakeup 0x5F4
31 109351 [main] bash 37840 sig_send: wakeup 0x5F4
32 109369 [sig] bash 37932 wait_sig: signalling pack.wakeup 0x5F4
33 109384 [main] bash 37840 sig_send: Waiting for pack.wakeup 0x5F4
35 109404 [main] bash 37932 sig_send: returning 0x0 from sending signal -34
37 109421 [sig] bash 37840 sigpacket::process: signal 20 processing
29 109433 [main] bash 37932 sigaction_worker: signal 18, newact 0x22C440 (handler 0x0), oa 0x0
25 109446 [sig] bash 37840 sigpacket::process: signal 20 blocked
27 109460 [main] bash 37932 sig_send: sendsig 0x630, pid 37932, signal -34, its_me 1
26 109472 [sig] bash 37840 sigpacket::process: returning -1
27
109487 [main] bash 37932 sig_send: wakeup 0x5F4
26 109498 [sig] bash 37840 wait_sig: signalling pack.wakeup 0x5F4
27 109514 [main] bash 37932 sig_send: Waiting for pack.wakeup 0x5F4
31 109529 [main] bash 37840 sig_send: returning 0x0 from sending signal -39
35 109549 [sig] bash 37932 wait_sig: signalling pack.wakeup 0x5F4
35 109564 [main] bash 37840 close: close (31)
33 109582 [main] bash 37932 sig_send: returning 0x0 from sending signal -34
28 109592 [main] bash 37840 __set_errno: cygheap_fdget::cygheap_fdget(int, bool, bool):394 val 9
25 109607 [main] bash 37932 sigaction_worker: signal 21, newact 0x22C440 (handler 0x0), oa 0x0
28 109620 [main] bash 37840 close: -1 = close (31)
27 109634 [main] bash 37932 sig_send: sendsig 0x630, pid 37932, signal -34, its_me 1
28 109662 [main] bash 37932 sig_send: wakeup 0x5F4
33 109695 [sig] bash 37932 wait_sig: signalling
pack.wakeup 0x5F4
76 109696 [main] bash 37840 set_signal_mask: oldmask 0x80000, newmask 0x80000, mask_bits 0x0
31 109726 [main] bash 37932 sig_send: Waiting for pack.wakeup 0x5F4
40 109736 [main] bash 37840 set_signal_mask: not calling sig_dispatch_pending
27 109753 [main] bash 37932 sig_send: returning 0x0 from sending signal -34
24 109777 [main] bash 37932 sigaction_worker: signal 22, newact 0x22C440 (handler 0x0), oa 0x0
33 109810 [main] bash 37932 dtable::dup2: dup2 (31, 0)
26 109836 [main] bash 37932 dtable::dup2: fd 31 not open
>Eric Blake <ebb9 <at> byu.net> writes:
>
>>
>>
>> http://cygwin.com/acronyms/#PCYMTWLL - wrapping would be nice
>>
>> > To: 'cygwin AT cygwin DOT com'
>> ^^^^ ^^^^^
>>
>> http://cygwin.com/acronyms/#PCYMTNQREAIYR - raw emails munged
>>
>> http://cygwin.com/acronyms/#TOFU - top-posting reformatted
>>
>
>Sorry for the bad formatting, etc.
>
>> I'm not reproducing this here. Do you have any rogue antivirus, webcam,
>> or other buggy driver that might be interfering with normal cygwin
>> operation?
>
>No, in fact this machine just had the OS installed. Nothing crazy but Cygwin
>and a few compilers. It has a copy of symantec coporate AV installed on it
>(due to company policy) but it is always disabled.
>
>> At worst, you could run the entire operation under strace, to
>> see if that pinpoints which invocation of bash is failing on dup2.
>Okay, I'll give that a shot when I have some time.
Maybe this will lead to a
>smaller reproducible case.
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -