From: "Tim Van Holder" To: Subject: Interesting bash bug (2.04, WinME) Date: Sun, 7 Oct 2001 13:15:48 +0200 Message-ID: <000001c14f21$6aae2fc0$578ce0d5@pandora.be> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Reply-To: djgpp-workers AT delorie DOT com The simple shell script below works fine, except if run using bash -c './foo a b' (using more or fewer args works!) 'foo': echo $0 "$@" F:\Tmp>bash -c './foo a b' ./foo a b free: called with already freed block argument Stopping myself...Abort! Exiting due to signal SIGABRT Raised at eip=00052154 eax=0018d538 ebx=00000120 ecx=00000000 edx=00000000 esi=001943ac edi=001943a0 ebp=0018d5e4 esp=0018d51c program=F:\DJGPP\BIN\BASH.EXE cs: sel=00a7 base=846b7000 limit=0019ffff ds: sel=00af base=846b7000 limit=0019ffff es: sel=00af base=846b7000 limit=0019ffff fs: sel=0087 base=00016940 limit=0000ffff gs: sel=00bf base=00000000 limit=0010ffff ss: sel=00af base=846b7000 limit=0019ffff App stack: [0018d88c..0008d88c] Exceptn stack: [0008d270..0008b330] Call frame traceback EIPs: 0x00052073 0x00052154 0x00056be4 0x00013e1f 0x00049d01 0x0000f65e 0x0000ecf1 0x0000c5b4 0x0002cf57 0x00002fd0 0x000023db 0x00051054