Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Aug 2000 03:39:43 -0700 (PDT)
From:      Martin Cracauer <cracauer@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/bin/sh main.c memalloc.c memalloc.h
Message-ID:  <200008161039.DAA13798@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <pfeifer@dbai.tuwien.ac.at>
  
  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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008161039.DAA13798>