Skip to content
Tcl Source Code History Of Ticket 405769ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 405769ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 405769ffffffffffffffffffffffffffffffffff

  1. Ticket change [e92507d3ea] (rid 104763) by msofer on 2001-03-04 03:46:48:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
      
      
    4. foundin initialized to: "obsolete: 8.4a2"
    5. priority initialized to: "7 High"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "msofer"
    9. subsystem initialized to: "07. Variables"
    10. title initialized to: "rare segfault at "unset -nocomplain""
    11. type initialized to: "Bug"
  2. Ticket change [3e0e1c2e93] (rid 121198) by msofer on 2001-03-04 11:10:15:

    1. 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
      
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. title changed to: "rare segfault at "unset -nocomplain""
    5. username: "msofer"
  3. Ticket change [8dff685bab] (rid 128037) by dkf on 2001-03-05 17:19:53:

    1. title changed to: "rare segfault at "unset -nocomplain""
  4. Ticket change [d24a0bf361] (rid 113512) by msofer on 2001-03-05 18:54:09:

    1. title changed to: "rare segfault at "unset -nocomplain""
  5. Ticket change [9f53570f04] (rid 96624) by msofer on 2001-03-05 19:58:49:

    1. 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
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. title changed to: "rare segfault at "unset -nocomplain""
    5. username: "msofer"
  6. Ticket change [a96e2c1e3a] (rid 99146) by dkf on 2001-03-06 21:47:19:

    1. closedate changed to: "2001-03-06T14:47:19"
    2. closer changed to: "dkf"
    3. resolution changed to: "Fixed"
    4. status changed to: "Closed"
    5. title changed to: "rare segfault at "unset -nocomplain""
  7. Ticket change [af4204fcb8] (rid 97781) by dgp on 2001-03-07 01:43:26:

    1. closedate changed to: "2001-03-06T18:43:26"
    2. closer changed to: "dgp"
    3. 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?
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. title changed to: "rare segfault at "unset -nocomplain""
    7. username: "dgp"
  8. Ticket change [b1e1e5a0a7] (rid 98236) by dgp on 2001-03-14 07:38:01:

    1. closedate changed to: "2001-03-14T00:38:01"
    2. closer changed to: "dgp"
    3. 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.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. title changed to: "rare segfault at "unset -nocomplain""
    7. username: "dgp"