Failed assertion in (path_conv::check)

Corinna Vinschen
Fri Jun 21 08:30:00 GMT 2013

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

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.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list