cvs commit: src/lib/libc/amd64/gen makecontext.c signalcontext.c
Peter Wemm
peter at FreeBSD.org
Tue Mar 30 23:27:31 PST 2004
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
More information about the cvs-all
mailing list