From owner-cvs-all Wed Aug 16 3:39:50 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 4835D37B732; Wed, 16 Aug 2000 03:39:45 -0700 (PDT) (envelope-from cracauer@FreeBSD.org) Received: (from cracauer@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA13798; Wed, 16 Aug 2000 03:39:44 -0700 (PDT) (envelope-from cracauer@FreeBSD.org) Message-Id: <200008161039.DAA13798@freefall.freebsd.org> From: Martin Cracauer Date: Wed, 16 Aug 2000 03:39:43 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/bin/sh main.c memalloc.c memalloc.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG cracauer 2000/08/16 03:39:43 PDT Modified files: bin/sh main.c memalloc.c memalloc.h Log: From submitter: growstackblock() sometimes relocates a stack_block considered empty without properly relocating stack marks referencing that block. The first call to popstackmark() with the unrelocated stack mark as argument then causes sh to abort. Relocating the relevant stack marks seems to solve this problem. The patch changes the semantics of popstackmark() somewhat. It can only be called once after a call to setstackmark(), thus cmdloop() in main.c needs an extra call to setstackmark(). PR: bin/19983 Submitted by: Tor.Egge@fast.no Reviewed by: Gerald Pfeifer Revision Changes Path 1.20 +3 -2 src/bin/sh/main.c 1.16 +20 -1 src/bin/sh/memalloc.c 1.7 +2 -1 src/bin/sh/memalloc.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message