Artifacts Associated With Ticket 3484621fff
Ticket change [f690aee476] (rid 130324) by johannes-kuhn on 2012-02-05 12:44:01:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Different bytecode depending if there is a trace execution on a (bytecode) inlined command. Testcase: proc putargs {args} {puts $args} proc test1 {t} {if {[string equal $t "test"]} {puts "foo"}} test1 -; #compile trace add execution ::string enter putargs proc test2 {t} [info body test1]; # create a second proc with the same body test2 -; # compile tcl::unsupported::disassemble proc test1 tcl::unsupported::disassemble proc test2 - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "johannes-kuhn"
- subsystem initialized to: "None"
- title initialized to: "Epoch does not increase when adding a trace"
- type initialized to: "Bug"
Ticket change [e9c83064c2] (rid 104868) by johannes-kuhn on 2012-02-05 19:46:06:
- foundin changed to: "obsolete: 8.5.11"
- subsystem changed to: "47. Bytecode Compiler"
Ticket change [645e9f0446] (rid 92756) by johannes-kuhn on 2012-02-05 20:08:59:
- icomment:
<schelte> Johannes13, I would think the most important issue is that command tracing doesn't work if the trace is defined after the code has been executed before. You don't seem to mention that very clearly.
- login: "johannes-kuhn"
- mimetype: "text/plain"
- username: "johannes-kuhn"
- icomment:
Ticket change [1c3e9fec66] (rid 90567) by dkf on 2012-02-06 21:37:27:
- assignee changed to: "msofer"
- icomment:
Ugh, tracing a compiled command should indeed cause the epoch to bump. Yuck (as that causes a lot of cost) but probably unavoidable.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
Ticket change [0e35468fca] (rid 94570) by msofer on 2012-02-06 22:26:42:
- icomment:
Is this a bug in the trace, or a bug in unsupported::disassemble? I do not see a trace malfunction: % proc putargs {args} {puts $args} % proc test1 {t} {if {[string equal $t "test"]} {puts "foo"}} % test1 -; #compile % test1 test foo % trace add execution ::string enter putargs % test1 test {string trim {test1 test}} enter foo - login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [94add2ee9c] (rid 106034) by sebres on 2012-02-06 22:44:43:
- icomment:
to Miguel: the bug is probably by "epoch", cause the trace "string equal" should be displayed. The output "{string trim {test1 test}} enter" you see, it's an another trace (possible from "history" command of tclsh). Just create after trace "test2" like this: % proc test2 {t} {if {[string equal $t "test"]} {puts "foo"}} % test2 - {string trim {test2 -}} enter !!!!!!!!!!!! {string equal - test} enter !!!!!!!!!!!! - login: "sebres"
- mimetype: "text/plain"
- username: "sebres"
- icomment:
Ticket change [3e19bf45e5] (rid 121207) by msofer on 2012-02-06 22:52:24:
- icomment:
Indeed - thanks. Upping prio
- login: "msofer"
- mimetype: "text/plain"
- priority changed to: "8"
- username: "msofer"
- icomment:
Ticket change [fac47fb19c] (rid 91937) by msofer on 2012-02-06 23:47:03:
- closedate changed to: "2012-02-06T16:47:03"
- closer changed to: "msofer"
- icomment:
allow_comments - 1 Fixed in core-8-5-branch and trunk
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "msofer"