From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10332 invoked by alias); 21 Jun 2013 08:21:59 -0000 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 Received: (qmail 10322 invoked by uid 89); 21 Jun 2013 08:21:58 -0000 X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 21 Jun 2013 08:21:58 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 041AB520781; Fri, 21 Jun 2013 10:21:56 +0200 (CEST) Date: Fri, 21 Jun 2013 08:30:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Failed assertion in path.cc (path_conv::check) Message-ID: <20130621082155.GG1620@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <51C40016.3000409@cwilson.fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <51C40016.3000409@cwilson.fastmail.fm> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-06/txt/msg00548.txt.bz2 On Jun 21 03:26, Charles Wilson wrote: > The following statement: > > char * tmp_path = > (char *) cygwin_create_path (CCP_POSIX_TO_WIN_A, newargz[0]); > > Results in this error popup (and a coredump), when newargz[0] is > NULL. Sure, it's a bug in my program to do that...but shouldn't it > be handled more gracefully? Like...return a NULL, rather than > SIGABRT? I changed the underlying cygwin_conv_path to handle NULL gracefully by returning -1 and setting errno to EINVAL. This results in a NULL return from cygwin_create_path. HTH, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer 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