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

History Of Ticket 807243ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 807243ffffffffffffffffffffffffffffffffff

  1. Ticket change [51dfafceac] (rid 126202) by markgsaye on 2003-09-16 16:31:05:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Consider:
      
      proc test {args} {}
      
      proc trace:command {oldName newName op} {
        puts "proc trace:command \[$oldName\] \[$newName\]
      \[$op\]"
      }
      
      proc trace:execution {string op} {
         puts "proc trace:execution \[$string\] \[$op\]"
      }
      
      trace add command  ::test delete [list trace:command]
      trace add execution ::test enter [list trace:execution]
      
      
      Now doing:
      % trace info command ::test
      {delete trace:command} {{} trace:execution}
      
      % trace info execution ::test
      {{} trace:command} {enter trace:execution}
      
      Note how the execution trace adds to the 'trace info
      command' with an empty 'op', and vice versa.
      
    4. foundin initialized to: "obsolete: 8.4.4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "markgsaye"
    9. subsystem initialized to: "46. Traces"
    10. title initialized to: "trace info empty op"
    11. type initialized to: "Bug"
  2. Ticket change [7bd0f2707d] (rid 96971) by dgp on 2003-09-24 07:09:09:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Both [t i command] and [t i execution]
      call on Tcl_CommandTraceInfo()
      to introspect the traces, even though
      Tcl_CTI is documented only to return
      information on "command" traces,
      not "execution" ones.
      
      For 8.4.x, it seems the bogus entries
      could be filtered out of the returned
      lists.
      
      For 8.5, these separate trace sets
      should be separated in their
      implementation as well.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [f4d939b1f5] (rid 129994) by dgp on 2003-09-24 08:14:57:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Here's a test case inspired by the report:
      
      test trace-31.1 {command and execution traces shared struct} {
          proc foo {} {}
          trace add command foo delete foo
          trace add execution foo enter foo
          set result [trace info command foo]
          rename foo {}
          set result
      } [list [list delete foo]]
      
      
      This test causes a segfault.
      
      There are bigger problems here.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "8"
    5. username: "dgp"
  4. Ticket change [27a94713e8] (rid 88558) by dgp on 2003-09-24 08:59:30:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Ok, that's a separate problem.
      Let's not confuse these matters.
      
      That segfault is apparently due
      to an attempt to trigger a delete
      trace that calls the traced command.
      That's pretty tricky; perhaps not
      too surprising it's broken.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "5 Medium"
    5. username: "dgp"
  5. Add attachment "807243.patch" [ed0b5001fd] (rid 103813) by dgp on 2003-09-24 09:11:08.

  6. Ticket change [5b8ef40b9d] (rid 118349) by dgp on 2003-09-24 09:11:08:

    1. icomment:
      
      
      File Added - 62331: 807243.patch
      
      Logged In: YES 
      user_id=80530
      
      here's an 8.4 patch just for
      the reported problem. 
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [d14b8b8b57] (rid 113323) by dgp on 2003-09-24 09:17:10:

    1. foundin changed to: "obsolete: 8.5a0"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Patch committed for 8.4.5
      
      Bug still open on 8.5 branch
      pending a better fix.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  8. Ticket change [d49826367a] (rid 123478) by dgp on 2003-10-03 01:08:40:

    1. closedate changed to: "2003-10-02T18:08:40"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      commiting same fix to HEAD.
      
      Cleaner fixes will be a long time
      in coming.  Test suite entry
      should stop us making the same
      bug again.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"