lassign crashing bug
Closed / Invalid984191ffffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-07-02 17:01:39
Running the test suite against CVS head on Windows
leads to a crash here (tclExecute.c, line 1552):
{
/*
* INVOCATION BLOCK
*/
int objc, pcAdjustment;
case INST_INVOKE_EXPANDED:
{
Tcl_Obj *objPtr;
objPtr = expandNestList;
expandNestList = (Tcl_Obj *)
objPtr->internalRep.twoPtrValue.ptr2;
because objPtr is NULL.
In fact this can be reproduced with just this:
proc testLassign {} {
set x FAIL
list [lassign a x] $x
}
testLassign
*crash*
dkf Ticket [984191ffff]: 3 changes
[History diff]2004-07-03 03:59:55
msoferplain2004-07-03 04:56:56
Logged In: YES user_id=148712 No repro on linux; will investigate further
msoferplain2004-07-03 05:13:36
Logged In: YES user_id=148712 Something is very wrong here: your code should not compile a INST_INVOKE_EXPANDED (there is no expansion in there), and hence it should not reach that line.
msoferplain2004-07-03 07:50:24
Logged In: YES user_id=148712 The only thing I can think of, is that somehow your code is being compiled and run in two different versions of tcl8.5a (INST codes were changed a bit during alpha). So - I'm almost willing to bet that 'make clean' solves the issue. Do I win? Please, say I do ...
vincentdarleyplain2004-07-03 23:29:28
Logged In: YES user_id=32170 Yes, you win! 'make clean' works fine!
Log in (anonymous is fine) to add a comment.