From owner-freebsd-bugs Sun Aug 29 21:11:37 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 21B4814BD5 for ; Sun, 29 Aug 1999 21:11:35 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id VAA64490; Sun, 29 Aug 1999 21:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from beast.cdrom.com (beast.FreeBSD.ORG [204.216.27.28]) by hub.freebsd.org (Postfix) with ESMTP id C0B6614BD5 for ; Sun, 29 Aug 1999 21:00:58 -0700 (PDT) (envelope-from hoek@beast.cdrom.com) Received: (from hoek@localhost) by beast.cdrom.com (8.9.3/8.9.3) id VAA52728; Sun, 29 Aug 1999 21:00:58 -0700 (PDT) (envelope-from hoek) Message-Id: <199908300400.VAA52728@beast.cdrom.com> Date: Sun, 29 Aug 1999 21:00:58 -0700 (PDT) From: Tim Vanderhoek Reply-To: hoek@freebsd.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/13463: /bin/sh: malloc() recursive call: segv Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 13463 >Category: bin >Synopsis: /bin/sh does not handle interrupts correctly (?) >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 29 21:10:00 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Tim Vanderhoek >Release: FreeBSD 4.0-CURRENT alpha >Organization: FreeBSD Project >Environment: -stable (3.2-S) and -current, although seems easier to reproduce on -stable. >Description: $ while :; do echo -n ; done ^C $ while :; do echo -n ; done ^C $ while :; do echo -n ; done sh in malloc(): warning: recursive call. sh in malloc(): warning: recursive call. Segmentation fault (core dumped) >How-To-Repeat: As above, enter "while :; do echo -n ; done" repeatedly and interrupt it. When it does die, it dies immediately when the last while command is entered (ie. not at ^C). I suspect this is a more generic problem than this instance of it suggests. Sometimes 20 or more iterations must be completed before it finally segvs. Sometimes far fewer... >Fix: Hope you get lucky? >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message