X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-ID: <71078E41DDE3E541B024832F34BC3D0DDDC6@cowexc03.corp.mxtr.net> From: "Schumacher, Gordon" To: "DJGPP List (E-mail)" Subject: BASH crashes upon exiting function? Date: Fri, 7 May 2004 16:45:48 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" I'm attempting to build a project (CMake, specifically, to get it ported for DJGPP!) and BASH is blowing up on its "bootstrap" script. I've gone over the mailing list already, and I've tried running it on both a Win2K and a Win98 system. On my Windows 2000 system I've tried both djdev203 with BASH 2.04, the djdev204 in the v2/beta directory with BASH 2.04, and that djdev204 with the BASH 2.05b from clio.rice.edu. All of those configurations failed in exactly the same way, even if I modified the bootstrap script to skip steps - the first time it hits a return (i.e., from a shell function) BASH crashes, according to what I see from set -x. The crashdump looks like the following, for BASH 2.05b: Exiting due to signal SIGSEGV General Protection Fault at eip=000254a9 eax=6d75636f ebx=00038ab7 ecx=00000004 edx=0012d314 esi=0013d308 edi=00000001 ebp=00128598 esp=00128580 program=c:\djgpp\bin\bash.exe cs: sel=01ff base=01e20000 limit=0018ffff ds: sel=0207 base=01e20000 limit=0018ffff es: sel=0207 base=01e20000 limit=0018ffff fs: sel=01d7 base=0000a2f0 limit=0000ffff gs: sel=0217 base=00000000 limit=0010ffff ss: sel=0207 base=01e20000 limit=0018ffff App stack: [001299d0..000a99d4] Exceptn stack: [000a9018..000a70d8] Call frame traceback EIPs: 0x000254a9 0x00016175 0x00016239 0x0001626f 0x00038b01 0x00038be0 0x00020d35 0x4e006578 I have nothing in my PATH but C:\DJGPP\BIN; I've set the first line of the bootstrap script to #!/bin/bash, just to make sure that there was nothing wrong with /bin/sh. Is this a problem that anybody's ever heard of? Thanks for your help... if I can get this working, I'll be able to add a good cross-platform tool to the DJGPP arsenal!