delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/08/28/09:36:01

X-Authentication-Warning: new-smtp2.ihug.com.au: Host p178-apx1.syd.ihug.com.au [203.173.140.178] claimed to be acceleron
Message-ID: <010a01c12fc5$804a99c0$0a02a8c0@acceleron>
From: "Andrew Cottrell" <acottrel AT ihug DOT com DOT au>
To: "Mark E." <snowball3 AT bigfoot DOT com>
Cc: <djgpp-workers AT delorie DOT com>, "Charles Sandmann" <sandmann AT clio DOT rice DOT edu>,
"Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
References: <001d01c12ef1$ca2a4b50$0a02a8c0 AT acceleron>
Subject: Re: Bash 2.05 beta 23-Aug-2001 with Win 2K
Date: Tue, 28 Aug 2001 23:29:43 +1000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
Reply-To: djgpp-workers AT delorie DOT com

Mark,

I have been dugging the Bash crash I have been having with Grep 2.4 and the
problem looks like it is to do with my path being long. The crash ocurrs in
the djgpp\config.site shell file when the "PATH_SEPARATOR=:" line is
decoded/executed within Bash.

In order for me to re-produce the crash I need to run the djgpp\config.bat
and then on the second or subseqent try the crash will occur.  After I run
the djgpp\config.bat once if I execute the follwoing command from the Grep
directory Bash will also crash:
redir -e test bash --debug --verbose configure

My path variable is ( I need to clean this up as there are paths in there
that no longer exist):
Path=D:\dj204\BIN;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\bin;C
:\Pr
ogram Files\GNU\WinCvs 1.3\;C:\PROGRAM FILES\Tcl\bin;C:\Program
Files\Perforce;C
:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program
Files\Micr
osoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual
Studio\
Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;

I have put the debug versions of  variables.c and dospath.c that I used on
my home page and the zip can be downloaded from the following URL:
http://homepages.ihug.com.au/~acottrel

The following is the output from Bash:

# These two variables are required, otherwise looking for
# programs along the PATH will not work.
PATH_SEPARATOR=:
ACDEBUG variables.c 3578
ACDEBUG variables.c 3581
ACDEBUG dospath.c 179 max i = 8
ACDEBUG dospath.c 184 path_sep_vars[0] = >CDPATH<
ACDEBUG dospath.c 184 path_sep_vars[1] = >COMSPEC<
ACDEBUG dospath.c 188 i = 1, var->value = >C:/WINNT/SYSTEM32/COMMAND.COM<
        next line is " make_bash_path_var (var->value, &buffer)"
ACDEBUG dospath.c 475
ACDEBUG dospath.c 486
ACDEBUG dospath.c 191 i = 1
ACDEBUG dospath.c 184 path_sep_vars[2] = >HOME<
ACDEBUG dospath.c 188 i = 2, var->value = >C:/CVS<
        next line is " make_bash_path_var (var->value, &buffer)"
ACDEBUG dospath.c 475
ACDEBUG dospath.c 486
ACDEBUG dospath.c 191 i = 2
ACDEBUG dospath.c 184 path_sep_vars[3] = >MAILPATH<
ACDEBUG dospath.c 184 path_sep_vars[4] = >OLDPWD<
ACDEBUG dospath.c 184 path_sep_vars[5] = >PATH<
ACDEBUG dospath.c 188 i = 5, var->value =
>./djgpp;d:/dj204/bin;c:/winnt/system32;c:/winnt;c:/winnt/system32/wbem;c:/b
in;c:/progra~1/gnu/wincvs~1.3/;c:/progra~1/tcl/bin;c:/program
files/perforce;c:/progra~1/micros~3/common/tools/winnt;c:/progra~1/micros~3/
common/msdev98/bin;c:/progra~1/micros~3/common/tools;c:/progra~1/micros~3/vc
98/bin;<
        next line is " make_bash_path_var (var->value, &buffer)"
ACDEBUG dospath.c 475
*m++ == 0x55
Stopping myself...Abort!
Exiting due to signal SIGABRT
Raised at eip=000752dc

NOTE: The  "ACDEBUG dospath.c 475" line is in make_bash_path_var() !!!!, but
it does not exit the function

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019