Overview
| Artifact ID: | e92507d3ea9736b983208426aaa4ea448cff3221 |
|---|---|
| Ticket: | 405769ffffffffffffffffffffffffffffffffff
rare segfault at "unset -nocomplain" |
| User & Date: | msofer on 2001-03-04 03:46:48 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "obsolete: 8.4a2"
- priority changed to: "7 High"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "msofer"
- subsystem changed to: "07. Variables"
- title changed to: "rare segfault at "unset -nocomplain""
- type changed to: "Bug"