This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: 1.7.0-62: segfault when PATH is not set
On Oct 19 21:18, Denis Excoffier wrote:
> On 2009-10-19 11:36, Corinna Vinschen wrote:
>> Strange. I can't reproduce this:
>>
>> $ env - PATHOS=/dqd /usr/bin/date
>> Mon Oct 19 11:26:46 WEDT 2009
>>
>> $ env - PATHOS=/nonexistent /usr/bin/env
>> PATHOS=/nonexistent
>> SYSTEMROOT=C:\Windows
>> WINDIR=C:\Windows
>>
> You're right, it seems that LC_CTYPE is also involved in this. Please try
> under sh:
>
> $ export LC_CTYPE=
> $ env - PATHOS=/nonexistent /usr/bin/date
> Mon Oct 19 13:12:40 RDT 2009
>
> $ export LC_CTYPE=dummy
> $ env - PATHOS=/nonexistent /usr/bin/date
> Segmentation fault (core dumped)
>
> $ export LC_CTYPE=C
> $ env - PATHOS=/nonexistent /usr/bin/date
> Mon Oct 19 13:12:40 RDT 2009
>
> $ export LC_CTYPE=fr_FR.ISO-8859-15
> $ env - PATHOS=/nonexistent /usr/bin/date
> Segmentation fault (core dumped)
>
> $ export LC_CTYPE=dummy
> $ env - PATHOS=/nonexistent /usr/bin/date
> Mon Oct 19 13:12:41 RDT 2009
> $ env - PATHOS=/nonexistent /usr/bin/env
> PATHOS=/nonexistent
> SYSTEMROOT=C:\WINNT
> WINDIR=C:\WINNT
>
> Hope this helps.
It does. The value of $PATH is used without checking if $PATH
exists. I fixed that in CVS.
Thanks for the report,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader 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