Re: Crash in hashlib.c

2009-04-19 Thread Bernd Eggink

Chet Ramey schrieb:

Bernd Eggink wrote:

Version: GNU bash, Version 4.0.17(1)-release (i686-pc-linux-gnu)
(plus newline-shellmeta patch).

A script which uses, among other things, 3 associative arrays and a
coprocess, crashes reproducibly with an allocation error:

   malloc: hashlib.c:306: assertion botched
   free: called with unallocated block argument
   Abbruch...
   Program received signal SIGABRT, Aborted.
   0xe424 in __kernel_vsyscall ()

Appended is a stack trace. Hope it helps.


Unfortunately not much.  If you could post a portion of the script that
reproduces the error, that would be better.


Well, (un)fortunately after a reboot the crash no longer happens. Maybe 
the memory had been corrupted by some other program (possibly lftp, 
which I used as a co-process).


Bernd

--
Bernd Eggink
http://sudrala.de




Re: Crash in hashlib.c

2009-04-18 Thread Chet Ramey
Bernd Eggink wrote:
> Version: GNU bash, Version 4.0.17(1)-release (i686-pc-linux-gnu)
> (plus newline-shellmeta patch).
> 
> A script which uses, among other things, 3 associative arrays and a
> coprocess, crashes reproducibly with an allocation error:
> 
>malloc: hashlib.c:306: assertion botched
>free: called with unallocated block argument
>Abbruch...
>Program received signal SIGABRT, Aborted.
>0xe424 in __kernel_vsyscall ()
> 
> Appended is a stack trace. Hope it helps.

Unfortunately not much.  If you could post a portion of the script that
reproduces the error, that would be better.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/