Skip to content
Tcl Source Code History Of Ticket 1884496fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1884496fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1884496fffffffffffffffffffffffffffffffff

  1. Ticket change [86bc3ddfa2] (rid 131569) by dgp on 2008-02-01 15:26:26:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Only on the dgp-refactor branch:
      
      Following script reads from freed
      memory (MEM_DEBUG build to verify):
      
      set script {set a [p]; puts "result is $a"}
      proc p {} {string first l $::script}
      eval $script
      
      Need some way to protect tokens getting
      freed in the middle of evaluation.
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "7 High"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "45. Parsing and Eval"
    11. title initialized to: "read from freed memory"
    12. type initialized to: "Bug"
  2. Ticket change [ecf70e4193] (rid 103803) by ferrieux on 2011-09-24 05:17:20:

    1. icomment:
      Is that still valid with all your valgrinding experience ? ;-) 
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  3. Ticket change [e8c2d335ec] (rid 104701) by ferrieux on 2013-01-10 06:30:59:

    1. icomment:
      Tested today, --enable-symbols=all or mem, with or without valgrind, cannot seem to repro.
      
      Can you ?
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  4. Ticket change [f144ae17cd] (rid 109340) by dgp on 2013-01-10 22:14:26:

    1. icomment:
      
      This demo script stopped crashing with the checkin
      
        http://core.tcl.tk/tcl/info/815028bdfc
      
      This is when the NRE-enabled [eval]
      command was merged in.
      
      I think the change stopped this particular
      demo script from crashing, but didn't really
      address the underlying lack of lifetime management.
      Would need another demo to continue pursuing that.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [74d920f074] (rid 105286) by dgp on 2013-01-10 22:59:20:

    1. icomment:
      
      The vulnerable point is 
      TclNREvalObjEx() with the TCL_EVAL_DIRECT
      flag set.  [eval] no longer goes there.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [bf4b48caf3] (rid 102225) by dgp on 2013-01-10 23:42:35:

    1. icomment:
      
      I see test execute-11.1 panic .  Another symptom?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [f6dcc02f4f] (rid 130387) by dgp on 2013-01-11 01:50:17:

    1. icomment:
      Nope that was 3600284
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [cda1583ccf] (rid 95928) by dgp on 2013-01-11 01:52:50:

    1. icomment:
      
      Updated demo of the problem:
      
      $ make runtest
      ...
      % set script {set a [p]; puts "result is $a"}
      set a [p]; puts "result is $a"
      % proc p {} {string first l $::script}
      % testevent queue a head $script
      % update
      make: *** [runtest] Segmentation fault
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [40e7fd094a] (rid 116089) by ferrieux on 2013-01-13 01:34:23:

    1. icomment:
      Fixed in commit 86e21dd01d by decoupling intreps just like for Lists.
      Please review. (that's a quick and dirty proof of concept; visibility of types and functions should be ironed out)
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  10. Ticket change [32724acbaa] (rid 93611) by dgp on 2013-03-19 20:32:03:

    1. closedate changed to: "2013-03-19T13:32:03"
    2. closer changed to: "dgp"
    3. icomment:
      
      
      allow_comments - 1
      
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"