crash with tcl_traceExec and format strings
Closed / Fixed1964803fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2008-05-15 19:34:40
I'm using the exec trace to try to track down what the interpreter is doing when I encounter a Tcl_Panic in 8.5.2, and I got a crash in the trace itself.
% set tcl_traceExec 3
3
% set fmt "%s%s"
Executing ByteCode 0x00BF96B0, refCt 2, epoch 3, interp 0x00A3CB68 (epoch 3)
Source: "history add {set fmt \" 4??vQg*?(null)\"}"
Cmds 1, src 28, inst 9, litObjs 3, aux 0, stkDepth 3, code/src 0.00
Starting stack top=0
1: 0 (0) push1 0 # "history"
1: 1 (0) push1 0 => "history"
1: 1 (2) push1 1 # "add"
1: 2 (2) push1 1 => "add"
1: 2 (4) push1 2 # "set fmt \"%s%s\""
1: 3 (4) push1 2 =>
It's passing an unknown string to fprintf without a format string. I attached a patch I'm using to get past it.
ajpasadynplain2008-05-16 02:34:40
File Added - 277927: tclCompile.patch
dkf Ticket [1964803fff]: 2 changes
[History diff]2008-05-16 09:39:09
msoferplain2008-05-16 21:39:59
Logged In: YES user_id=148712 Originator: NO Good catch, good fix: committed. Thanks!
msofer Closed ticket [1964803fff].
[History diff]2008-05-16 21:40:00
Log in (anonymous is fine) to add a comment.
Attachments:
- tclCompile.patch [download] added by ajpasadyn on 2008-05-16 02:34:40. [details]