From owner-freebsd-bugs Mon Aug 30 1:22:52 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 97E061526C for ; Mon, 30 Aug 1999 01:22:49 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id BAA82232; Mon, 30 Aug 1999 01:20:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Mon, 30 Aug 1999 01:20:02 -0700 (PDT) Message-Id: <199908300820.BAA82232@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Sheldon Hearn Subject: Re: bin/13463: /bin/sh: malloc() recursive call: segv Reply-To: Sheldon Hearn Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/13463; it has been noted by GNATS. From: Sheldon Hearn To: hoek@FreeBSD.ORG Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/13463: /bin/sh: malloc() recursive call: segv Date: Mon, 30 Aug 1999 10:06:32 +0200 On Sun, 29 Aug 1999 21:00:58 MST, Tim Vanderhoek wrote: > $ while :; do echo -n ; done > sh in malloc(): warning: recursive call. > sh in malloc(): warning: recursive call. > Segmentation fault (core dumped) This looks weird. Program terminated with signal 11, Segmentation fault. #0 0x805d644 in yywrap () (gdb) back #0 0x805d644 in yywrap () #1 0x805d681 in yywrap () #2 0x805db05 in history () #3 0x8051e3d in preadbuffer () at /usr/src/bin/sh/input.c:296 #4 0x8058765 in xxreadtoken () at /usr/src/bin/sh/parser.c:776 #5 0x80585b7 in readtoken () at /usr/src/bin/sh/parser.c:693 #6 0x805762d in parsecmd (interact=1) at /usr/src/bin/sh/parser.c:145 #7 0x80545b5 in cmdloop (top=1) at /usr/src/bin/sh/main.c:240 #8 0x805452f in main (argc=1, argv=0xbfbfd668) at /usr/src/bin/sh/main.c:203 How on earth does yywrap recurse on itself like that? /usr/src/usr.bin/lex/lib/libyywrap.c: int yywrap() { return 1; } By the way, I can't reproduce the problem if I compile with -DDEBUG=2. Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message