Tcl Source Code

View Ticket
Login
Ticket UUID: 1914503
Title: TclStackAlloc() alignment
Type: Bug Created on: 2008-03-14 19:31:05
Submitter: dgp Assigned to: msofer
Subsystem: 47. Bytecode Compiler Severity:
Priority: 8 Last modified: 2008-03-19 00:55:20
Status: Closed Closed by: dgp
Resolution: Fixed Closed on: 2008-03-18 17:55:20
Version: obsolete: 8.5.2
Description:
TclStackAlloc() sometime returns
a pointer that is not 8-byte
aligned, and for some storage
uses on some platforms, this leads
to bus errors.

(Solaris + gcc sees bus error
crashes testing [lsort -real],
where memory alignment is
unsuitable for storing doubles.)

This seems to point to
GrowEvaluationStack() failing to
return an aligned pointer, even
though it appears to have a fair
bit of code trying to provide
some level of alignment.