X-Spam-Check-By: sourceware.org
Date: Thu, 10 Aug 2006 10:37:23 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: crashes with various programs
Message-ID: <20060810083723.GH20467@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20060808042132.GA5396@ingber.com> <20060808042413.GA28235@trixie.casa.cgf.cx> <821wrrd4zj.fsf@vzell-de.de.oracle.com> <20060808155457.GP8152@calimero.vinschen.de> <821wrpc7uv.fsf@vzell-de.de.oracle.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <821wrpc7uv.fsf@vzell-de.de.oracle.com>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Aug 10 10:28, Dr. Volker Zell wrote:
> >>>>> Corinna Vinschen writes:
> 
>     > I've uploaded a new psmisc-21.5-3 package.  When the package hits the
>     > mirrors, can you test if pstree from 21.5-3 still crashes in that
>     > situation?  I think I found a bug which could be the cause for the SEGV,
>     > but I couldn't reproduce it so far.  The potential bug should be fixed
>     > in psmisc-21.5-3, nevertheless.
> 
> The new pstree version seems to work. What was the problem ?

     c = strrchr (filename, '/'); <-- c gets NULL if process is defunct
     sscanf (c, "%15c", tgt);     <-- Boom


Corinna

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

--
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/

