Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Message-ID: <011501c0cb77$f21bf880$0200a8c0@lifelesswks> From: "Robert Collins" To: "Corinna Vinschen" References: <987861904 DOT 20126 DOT ezmlm AT sources DOT redhat DOT com> <3AE1C5B2 DOT B63F2B54 AT ece DOT gatech DOT edu> <20010422223317 DOT S15499 AT cygbert DOT vinschen DOT de> <20010422231352 DOT U15499 AT cygbert DOT vinschen DOT de> Subject: Re: SHOWSTOPPER: [was Re: vfscanf in newlib] Date: Mon, 23 Apr 2001 08:02:37 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-OriginalArrivalTime: 22 Apr 2001 21:54:36.0185 (UTC) FILETIME=[D256B090:01C0CB76] ----- Original Message ----- From: "Corinna Vinschen" To: "Corinna Vinschen" Sent: Monday, April 23, 2001 7:13 AM Subject: Re: SHOWSTOPPER: [was Re: vfscanf in newlib] > On Sun, Apr 22, 2001 at 10:33:17PM +0200, Corinna Vinschen wrote: > > On Sat, Apr 21, 2001 at 01:38:58PM -0400, Charles S. Wilson wrote: > > > > On Sat, Apr 21, 2001 at 01:21:30AM -0400, Charles Wilson wrote: > > > > > I've just discovered that I get a coredump with all three when I try to > > > > > run ssh. #$!@&$ > > > > > > > > I just build the latest from CVS and it's running fine, even ssh and > > > > sshd. > > > > > > > > Corinna > > > > > > Thank you. I guess that means the answer from my email is #3: I've > > > somehow lost the ability to build a working cygwin snapshot from a > > > perfectly good codebase. Funny, I don't remember the surgeon saying > > > "Ooops" during my recent brain surgery.... :-) > > > > Sorry Chuck, it seems I haven't tried to build from the latest sources. > > You're right, the latest code fails to run sshd. It dies with an access > > violation on each connect. > > > > I tracked it down to Robert's changes. Somewhere here: > > [...] > > * passwd.cc (getpwuid): Check for thread cancellation. > > (getpwuid_r): Ditto. > > (getpwname): Ditto. > > (getpwnam_r): Ditto. > > The above four calls to pthread_testcancel() are the problem. I've > further tracked them down to the __pthread_testcancel() function. > The following patch solves the problem. > > Robert? Chris? Ok to checkin? > Fine here. I'm surprised that pthread_self() is ever returning NULL though!. Rob