Skip to content
Tcl Source Code View Ticket
Login

View Ticket

invalid ref in ThreadSetResult

Closed / Fixed1050490fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-10-20 05:50:13
ThreadSetResult gets a pointer
to the string rep of an interp result:

    result = Tcl_GetStringResult(interp);

then keeps on using that pointer after
the interp's doing other things, making
no effort to preserve the result.

Recent changes on the Tcl HEAD allow
that result to change out from under us.

Here's a simple patch to correct.
Without it, you will see tests fail.
dgpplain2004-10-20 12:50:13
File Added - 105762: thread.patch
vasiljevicplain2004-10-20 15:54:28
Logged In: YES 
user_id=95086

Fixed and applied to HEAD.
Log in (anonymous is fine) to add a comment.

Attachments: