[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bash in malloc(): warning: recursive call

From: chk no
Subject: bash in malloc(): warning: recursive call
Date: Sun, 25 Nov 2001 17:42:32 -0800 (PST)

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: freebsd4.4
Compiler: cc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='freebsd4.4' -DCONF_MACHTYPE='i386-unknown-freebsd4.4' 
-DCONF_VENDOR='unknown' -DSHELL  -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib 
-O -pipe -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align  -Wcast-qual 
-Wchar-subscripts -Winline  -Wmissing-prototypes -Wnested-externs 
-Wpointer-arith  -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings
uname output: FreeBSD c1742628-a.vncvr1.wa.home.com 4.4-STABLE FreeBSD 
4.4-STABLE #0: Sat Oct 20 14:35:40 PDT 2001     
address@hidden:/usr/obj/usr/src/sys/CHK  i386
Machine Type: i386-unknown-freebsd4.4

Bash Version: 2.05a
Patch Level: 0
Release Status: release

        I ran a simple alias, ^C'd out, & bash reported an xmalloc error.

        I've run this command (and ^C'd out) hundreds of times in 2.05.
        About 5 minutes after an upgrade to 2.05a, this happened.

        Terminal clipping:

c1742628-a$ oldportsa
apache-1.3.22_4 -> apache-2.0.28_1
cups- -> cups-1.1.12
gettext-0.10.35 -> gettext-0.10.38_1
^Cbash in malloc(): warning: recursive call.

c1742628-a$ bash: xmalloc: cannot allocate 26 bytes (0 bytes allocated)

c1742628-a$ top

last pid:   369;  load averages:  2.92,  2.07,  1.81   up 16+07:00:56  17:15:33
113 processes: 4 running, 105 sleeping, 4 zombie
CPU states:     % user,     % nice,     % system,     % interrupt,     % idle
Mem: 20M Active, 5144K Inact, 27M Wired, 4968K Cache, 14M Buf, 2304K Free
Swap: 256M Total, 46M Used, 209M Free, 18% Inuse


        Top reports plenty of available memory..

        The alias, from my ~/.bashrc:

alias oldportsa='(cd /var/db/pkg;for a in *;do b=$(grep ^$(echo $a|sed 
s/-[0-9].*//)-[0-9] /usr/ports/INDEX|cut -d\| -f1|sort|tail -1);if [ "$a" != 
"$b" ];then echo $a -\> $b;fi;done)'

        Put the above alias in your ~/.bashrc, run it, & ^C out of
        it a few times.  Problem is intermittant.

        I guess you'll need a BSD system with the ports tree &
        some packages installed, or some clever forgery.  

        If needed, I've tar'd up my /usr/ports/INDEX and directories
        in /var/db/pkg and placed them at

reply via email to

[Prev in Thread] Current Thread [Next in Thread]