Skip to content
Tcl Source Code History Of Ticket 3610400fffffffff
Login

History Of Ticket 3610400fffffffff

Artifacts Associated With Ticket 3610400fffffffff

  1. Ticket change [20e9379f13] (rid 130494) by dgp on 2013-04-09 18:05:52:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      working on 3610393, I constructed this script to
      see how ensemble redirections play with execution
      traces, and found an issue with [tailcall]:
      
      namespace eval foo {
          namespace export *
          proc target {} {puts Hit!}
          proc bar {} {tailcall target}
          namespace ensemble create
      }
      proc harness {} {
          foo target
          foo bar
      }
      proc handle {cmd args} {
          puts "Command [lindex $cmd 0] resolves to:"
          puts "\t'[uplevel 1 [list ::namespace which -command [lindex $cmd 0]]]'"
          puts "\t\tResolved at level [uplevel 1 {info level}]"
      }
      trace add execution harness enterstep handle
      harness
      
      
      Output:
      
      Command foo resolves to:
              '::foo'
                      Resolved at level 1
      Command ::foo::target resolves to:
              '::foo::target'
                      Resolved at level 1
      Command puts resolves to:
              '::puts'
                      Resolved at level 2
      Hit!
      Command foo resolves to:
              '::foo'
                      Resolved at level 1
      Command ::foo::bar resolves to:
              '::foo::bar'
                      Resolved at level 1
      Command tailcall resolves to:
              '::tailcall'
                      Resolved at level 2
      Command target resolves to:
              ''
                      Resolved at level 1
      Command puts resolves to:
              '::puts'
                      Resolved at level 2
      Hit!
      
      The commonality with oo forwards is that
      tailcall also causes command name resolution
      to be done early, in a context that may/does not
      appear in a stack frame at the time the command
      execution (and its execution traces) fire.
      
    4. foundin initialized to: "current: 8.6.0"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "60. NRE and coroutines"
    11. title initialized to: "tailcall clashes with execution traces"
    12. type initialized to: "Bug"
  2. Ticket change [8532330a20] (rid 139919) by dgp on 2014-09-14 18:16:43:

    1. closer changed to: "nobody"
    2. comment changed to:
      working on 3610393, I constructed this script to
      see how ensemble redirections play with execution
      traces, and found an issue with [tailcall]:
      
      namespace eval foo {
          namespace export *
          proc target {} {puts Hit!}
          proc bar {} {tailcall target}
          namespace ensemble create
      }
      proc harness {} {
          foo target
          foo bar
      }
      proc handle {cmd args} {
          puts "Command [lindex $cmd 0] resolves to:"
          puts "\t'[uplevel 1 [list ::namespace which -command [lindex $cmd 0]]]'"
          puts "\t\tResolved at level [uplevel 1 {info level}]"
      }
      trace add execution harness enterstep handle
      harness
      
      
      Output:
      
      Command foo resolves to:
              '::foo'
                      Resolved at level 1
      Command ::foo::target resolves to:
              '::foo::target'
                      Resolved at level 1
      Command puts resolves to:
              '::puts'
                      Resolved at level 2
      Hit!
      Command foo resolves to:
              '::foo'
                      Resolved at level 1
      Command ::foo::bar resolves to:
              '::foo::bar'
                      Resolved at level 1
      Command tailcall resolves to:
              '::tailcall'
                      Resolved at level 2
      Command target resolves to:
              ''
                      Resolved at level 1
      Command puts resolves to:
              '::puts'
                      Resolved at level 2
      Hit!
      
      The commonality with oo forwards is that
      tailcall also causes command name resolution
      to be done early, in a context that may/does not
      appear in a stack frame at the time the command
      execution (and its execution traces) fire.
      
    3. icomment: "ping"
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. severity changed to: "Minor"
  3. Ticket change [01935a50fe] (rid 162272) by dgp on 2018-04-06 16:37:05:

    1. icomment: "ping"
    2. login: "dgp"
    3. mimetype: "text/plain"
  4. Ticket change [4e43469bda] (rid 164616) by pooryorick on 2018-07-12 12:52:13:

    1. assignee changed to: "pooryorick"
    2. login: "pooryorick"
    3. mimetype: "text/plain"
  5. Ticket change [568db85484] (rid 164619) by pooryorick on 2018-07-12 14:09:44:

    1. assignee changed to: "dkf"
    2. login: "pooryorick"
    3. mimetype: "text/plain"
  6. Ticket change [14b6a9a826] (rid 177974) by dkf on 2019-12-20 16:17:28:

    1. icomment: "I have no idea what to do with this."
    2. login: "dkf"
    3. mimetype: "text/html"