public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: cygwin-1.7.10-1 fork - address space needed by ... already in use
Date: Wed, 07 Mar 2012 17:48:00 -0000	[thread overview]
Message-ID: <20120307174749.GB19570@calimero.vinschen.de> (raw)
In-Reply-To: <20120305121436.GR18852@calimero.vinschen.de>

Hi Denis,

On Mar  5 13:14, Corinna Vinschen wrote:
> On Mar  5 13:02, Denis Excoffier wrote:
> > On Mon, Mar 05, 2012 at 10:59:19AM +0100, Corinna Vinschen wrote:
> > >> On Mar  5 08:09, Denis Excoffier wrote:
> > >> >    947 [main] sh 660! _pinfo::dup_proc_pipe: something failed for pid 0: res 660, hProcess 0x6C8, wr_proc_pipe 0x758 vs. 0x758, Win32 error 5 
> > >> >      2 [main] sh 3360! _pinfo::dup_proc_pipe: something failed for pid 0: res 3360, hProcess 0x6BC, wr_proc_pipe 0x758 vs. 0x758, Win32 error 5 
> > >> >   1345 [main] sh 3772! _pinfo::dup_proc_pipe: something failed for pid 0: res 3772, hProcess 0x6CC, wr_proc_pipe 0x758 vs. 0x758, Win32 error 5 
> > >> > [...]
> > >> 
> > >> Actually, I don't quite understand them.  The pid is apparently not
> > >> initialized yet, at the time the message occurs.  The code in question
> > >> tries to duplicate a pipe handle into another process and fails.  But
> > >> the process handle to the other has been created by this process, so it
> > >> should have all rights to duplicate the handle.  Hmm.  What command
> > >> were you running at the time?  Maybe it is reproducible.
> > You mean, may be it is debuggable?
> > 
> > Please first apply the following, and provide me with further
> > instrumentation in order that i can narrow down the problem when it
> > occurs.
> > 
> > *** winsup0/cygwin/pinfo.cc	Wed Feb 15 15:46:18 2012
> > --- winsup/cygwin/pinfo.cc	Mon Mar  5 12:53:30 2012
> > ***************
> > *** 1001,1007 ****
> >       {
> >         wr_proc_pipe = orig_wr_proc_pipe;
> >         warn_printf ("something failed for pid %d: res %d, hProcess %p, wr_proc_pipe %p vs. %p, %E",
> > ! 		   res, pid, hProcess, wr_proc_pipe, orig_wr_proc_pipe);
> >       }
> >     else
> >       {
> > --- 1001,1007 ----
> >       {
> >         wr_proc_pipe = orig_wr_proc_pipe;
> >         warn_printf ("something failed for pid %d: res %d, hProcess %p, wr_proc_pipe %p vs. %p, %E",
> > ! 		   pid, res, hProcess, wr_proc_pipe, orig_wr_proc_pipe);
> >       }
> >     else
> >       {
> 
> Thanks for catching!  I applied this patch.  So the pids are not wrong,
> after all.  As for debugging, it would be helpful to have a command to
> reproduce it.  I can't tell you off-hand what to hunt for.  This is
> Chris' code, so he probably knows much better what to look for than I do.

can you please test this again using the latest developer snapshot or
the current from CVS if you build Cygwin by yourself?  It provides a bit
more information to find the reason for the permission denied error in
_pinfo::dup_proc_pipe.

In theory, the user should have permissions to duplicate handles into
every own process, if the handle has been opened with these permissions,
so it's quite interesting to find the reason.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2012-03-07 17:48 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-07 15:00 Scott M. Ballew
2012-02-07 15:44 ` Denis Excoffier
2012-02-07 16:15   ` Corinna Vinschen
2012-02-07 16:47     ` Ryan Johnson
2012-02-07 22:48       ` Denis Excoffier
2012-02-08  9:03         ` Corinna Vinschen
2012-02-08  9:08         ` Denis Excoffier
2012-02-08  9:27           ` Corinna Vinschen
2012-02-08 10:23             ` Denis Excoffier
2012-02-08 12:33               ` Earnie Boyd
2012-02-08 13:00               ` Corinna Vinschen
2012-02-08 13:35                 ` Corinna Vinschen
2012-02-08 14:25                   ` Heiko Elger
2012-02-08 14:37                     ` Corinna Vinschen
2012-03-04 17:23                     ` Corinna Vinschen
2012-02-08 14:55                   ` Denis Excoffier
2012-02-08 15:06                     ` Heiko Elger
2012-02-08 15:35                       ` Denis Excoffier
2012-02-08 15:16                     ` Corinna Vinschen
2012-02-09 11:07                       ` Corinna Vinschen
2012-02-09 13:40                         ` Denis Excoffier
2012-02-09 14:44                           ` Corinna Vinschen
2012-02-10 12:35                             ` Andrey Repin
2012-02-13 13:48                             ` Scott M. Ballew
2012-02-23 16:30                               ` Richard Gribble
2012-02-23 17:23                                 ` Corinna Vinschen
2012-02-09 14:44                           ` Denis Excoffier
2012-03-04 17:22               ` Corinna Vinschen
2012-03-05  7:09                 ` Denis Excoffier
2012-03-05 10:00                   ` Corinna Vinschen
2012-03-05 12:02                     ` Denis Excoffier
2012-03-05 12:15                       ` Corinna Vinschen
2012-03-07 17:48                         ` Corinna Vinschen [this message]
2012-03-08  8:50                           ` Denis Excoffier
2012-03-08  9:56                             ` Corinna Vinschen
2012-03-09 15:48                               ` Christopher Faylor
2012-03-16 17:14                                 ` Christopher Faylor
2012-03-16 18:41                                   ` Denis Excoffier
2012-03-19 20:55                                   ` Christopher Faylor
2012-03-20  5:11                                     ` 2012-03-19 snapshot problematic (was Re: cygwin-1.7.10-1 fork - address space needed by ... already in use) Christopher Faylor
2012-03-20 23:56                                       ` All clear (was Re: 2012-03-19 snapshot problematic (was Re: cygwin-1.7.10-1 fork - address space needed by ... already in use)) Christopher Faylor
2012-03-21  4:41                                         ` marco atzeri
2012-03-21  5:44                                           ` marco atzeri
2012-03-21  7:11                                         ` Denis Excoffier
2012-03-22  4:38                                           ` Christopher Faylor
2012-03-22  6:57                                             ` Denis Excoffier
2012-03-22 13:29                                               ` Christopher Faylor
2012-03-22 14:38                                                 ` Denis Excoffier
2012-03-22 15:13                                                   ` Christopher Faylor
2012-03-22 15:33                                                 ` Karl M
2012-03-22 15:36                                                 ` Karl M

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120307174749.GB19570@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).