From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28575 invoked by alias); 15 Aug 2012 14:11:32 -0000 Received: (qmail 28564 invoked by uid 22791); 15 Aug 2012 14:11:31 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mho-01-ewr.mailhop.org (HELO mho-01-ewr.mailhop.org) (204.13.248.71) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 15 Aug 2012 14:11:18 +0000 Received: from pool-173-76-55-36.bstnma.fios.verizon.net ([173.76.55.36] helo=cgf.cx) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.72) (envelope-from ) id 1T1eJZ-000Gyn-9v for cygwin@cygwin.com; Wed, 15 Aug 2012 14:11:17 +0000 Received: from localhost (ednor.casa.cgf.cx [192.168.187.5]) by cgf.cx (Postfix) with ESMTP id 3BAF3428003 for ; Wed, 15 Aug 2012 10:11:16 -0400 (EDT) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/srI6Lkdc3rhuzJzh7Y3Z3 Date: Wed, 15 Aug 2012 20:51:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: Cygwin crashes in kill_pgrp, _pinfo truncation issue. Message-ID: <20120815141116.GA32249@ednor.casa.cgf.cx> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-08/txt/msg00353.txt.bz2 On Wed, Aug 15, 2012 at 04:54:42PM +0400, Andrey Khalyavin wrote: >I finally got a cygwin crash dump from our build bots. It shows, that >cygwin1.dll crashes in kill_pgrp function on line: > (pid > 1 && p->pgid != pid) || >where p is a pointer to _pinfo. This function enumerates all _pinfo's >and executes this line for all of them which pass p->exists() check. >In crash dump p points to _pinfo that has process_state equal to >PID_IN_USE | PID_EXECED. Thanks for tracking this down. I've added a check for "execed" to _pinfo::exists. cgf -- 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