Failed assertion in path.cc (path_conv::check)

Charles Wilson cygwin@cwilson.fastmail.fm
Fri Jun 21 07:43:00 GMT 2013


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?

Failed assertion
	src
at line 675 of file
/home/corinna/src/cygwin/cygwin-1.7.21/64/cygwin-1.7.21-5/src
/src/winsup/cygwin/path.cc
in function void path_conv::check(const char*, unsigned int, const 
suffix_info*)

--
Chuck

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



More information about the Cygwin mailing list