delorie.com/archives/browse.cgi | search |
Message-ID: | <004b01c20f6d$531e9400$0102a8c0@acceleron> |
From: | "Andrew Cottrell" <acottrel AT ihug DOT com DOT au> |
To: | <snowball3 AT softhome DOT net> |
Cc: | <djgpp-workers AT delorie DOT com> |
Subject: | Bash 2.05 4-April-2002 source release crash fix |
Date: | Sun, 9 Jun 2002 14:22:22 +1000 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 6.00.2600.0000 |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
Reply-To: | djgpp-workers AT delorie DOT com |
Mark, When making Make 3.76.9.2 a1 release today I had Bash crash on me. I traced the problem back to the init_cwd not being initalised to NULL in dospath.c at line 75. Once I initalised the init_cwd the crash went away because the check to see if the init_cwd was null then worked. The updated line is as follows:- static char *init_cwd = NULL; The output of the crash was:- General Protection Fault at eip=00036abe eax=775c736c ebx=00128aa8 ecx=00173409 edx=00000003 esi=00000002 edi=001241c8 ebp=00122b48 esp=00122b40 program=D:\DJ204\BIN\SH.EXE cs: sel=01a7 base=029f0000 limit=0019ffff ds: sel=01af base=029f0000 limit=0019ffff es: sel=01af base=029f0000 limit=0019ffff fs: sel=017f base=00008960 limit=0000ffff gs: sel=01bf base=00000000 limit=0010ffff ss: sel=01af base=029f0000 limit=0019ffff App stack: [00122bf8..000a2bf8] Exceptn stack: [000a1d18..0009fdd8] Call frame traceback EIPs: 0x00036abe _restore_cwd+14, line 406 of dospath.c 0x0006e4a3 _exit+35 0x0000225b _exit_shell+59, line 869 of shell.c 0x00001c92 _main+1442, line 645 of shell.c 0x0006dcd7 ___crt1_startup+199 Andrew
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |