Artifacts Associated With Ticket 405769ffffffffff
Ticket change [e92507d3ea] (rid 104763) by msofer on 2001-03-04 03:46:48:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The command unset -nocomplain (with no further arguments) causes Tcl_UnsetObjCmd (in tclVar.c) to request the string representation of an object which was *not* passed as an argument. Under special circumstances (which I couldn't trigger in current sources) this causes a segfault. In order to cause a segfault, *(stackPtr(stackTop+1)->bytes) must be in a forbidden memory region at the moment of the invocation of "unset -nocomplain". The cure seems pretty harmless: remove the offending line, which is unused anyway. The offending statement (line 2627 in tclVar.c) reads: name = TclGetString(objv[i]); Thusly corrected sources pass all tcltests. - foundin initialized to: "obsolete: 8.4a2"
- priority initialized to: "7 High"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "07. Variables"
- title initialized to: "rare segfault at "unset -nocomplain""
- type initialized to: "Bug"
Ticket change [3e0e1c2e93] (rid 121198) by msofer on 2001-03-04 11:10:15:
- icomment:
Logged In: YES user_id=148712 Forgot a detail: this also cures the following behaviour, which is not in agreement with the man page for unset (and hence is a bug): [mig@ant bin2]$ tclsh8.4 % set -- 1 1 % unset -nocomplain -- % set -- 1
- login: "msofer"
- mimetype: "text/plain"
- title changed to: "rare segfault at "unset -nocomplain""
- username: "msofer"
- icomment:
Ticket change [8dff685bab] (rid 128037) by dkf on 2001-03-05 17:19:53:
- title changed to: "rare segfault at "unset -nocomplain""
Ticket change [d24a0bf361] (rid 113512) by msofer on 2001-03-05 18:54:09:
- title changed to: "rare segfault at "unset -nocomplain""
Ticket change [9f53570f04] (rid 96624) by msofer on 2001-03-05 19:58:49:
- icomment:
Logged In: YES user_id=148712 The following scriptlet (thanks to Donal Fellows!) exercises the bug and produces a segfault on my setup (RH 6.2): proc spotbug {-nocomplain} { unset -nocomplain spotbug -nocomplain } spotbug -nocomplain - login: "msofer"
- mimetype: "text/plain"
- title changed to: "rare segfault at "unset -nocomplain""
- username: "msofer"
- icomment:
Ticket change [a96e2c1e3a] (rid 99146) by dkf on 2001-03-06 21:47:19:
- closedate changed to: "2001-03-06T14:47:19"
- closer changed to: "dkf"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- title changed to: "rare segfault at "unset -nocomplain""
Ticket change [af4204fcb8] (rid 97781) by dgp on 2001-03-07 01:43:26:
- closedate changed to: "2001-03-06T18:43:26"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 The SYNOPSIS for [unset] now says: unset ?-nocomplain? ?--? ?name name ...? The command [unset] matches that synopsis, but fails: % unset wrong # args: should be "unset ?-nocomplain? ?--? ?varName varName ...? Shouldn't [unset] be a successful no-op?
- login: "dgp"
- mimetype: "text/plain"
- title changed to: "rare segfault at "unset -nocomplain""
- username: "dgp"
Ticket change [b1e1e5a0a7] (rid 98236) by dgp on 2001-03-14 07:38:01:
- closedate changed to: "2001-03-14T00:38:01"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Thanks for making [unset] legal! Now test set-old-7.2 needs to be updated to recognize the newly legal [unset] with no arguments.
- login: "dgp"
- mimetype: "text/plain"
- title changed to: "rare segfault at "unset -nocomplain""
- username: "dgp"