Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Mar 2004 23:27:31 -0800 (PST)
From:      Peter Wemm <peter@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/amd64/gen makecontext.c signalcontext.c
Message-ID:  <200403310727.i2V7RVDk084001@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
peter       2004/03/30 23:27:31 PST

  FreeBSD src repository

  Modified files:
    lib/libc/amd64/gen   makecontext.c signalcontext.c 
  Log:
  Fix Yet Another 16 byte stack alignment bug.  Thankfully, this one is
  solved by a simple 'make world'.  The signalcontext function was going
  to the trouble of generating an even 16 byte alignment, but in fact it
  needed to be odd aligned to simulate the 8-byte return address having
  been pushed by the caller.  This fixes yet another group of crashes in
  applications using libpthread.  And yet again, it was my fault all along.
  
  While here, rename the duplicate internal ctx_wrapper() functions to
  makectx_wrapper() and sigctx_wrapper() so that traces aren't ambiguous.
  
  Revision  Changes    Path
  1.3       +3 -3      src/lib/libc/amd64/gen/makecontext.c
  1.3       +7 -7      src/lib/libc/amd64/gen/signalcontext.c



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