Overview
| Artifact ID: | 9983534f7f3553db178d203c68a75a3a0ae4d3bd |
|---|---|
| Ticket: | 82521bfb6734f891ddecc26b4b4b3388fdc3eb1c
Segfault from commit af06c0fbf8 onwards |
| User & Date: | anonymous on 2014-09-27 18:51:22 |
Changes
- icomment:
Unfortunately I've lost data that let me exercise the bug on the production system, but before I did I managed to trim the code down to the following, which segfaults in Tcl 8.6.2 (outside of NaviServer, no other packages loaded), and not in 8.6.1: (sorry for the obfuscation, I couldn't risk posting this code here where google can find it, which could expose security issues) namespace import -force ::tcl::mathop::ne proc foo {} { global v5 global v6 if {[p1 $v1 s2 "" $v2 $v3]} { return [join $s2 \n] } set v10 [p2 s1 s3 "x[p3 $v1]"] if {$s1 ne ""} { set v11 "x$s1 $v1" p4 s8 $v11 return y$v1 } if {$v10 eq ""} { return "z$v1 a" } set v8 [p5 s4 $v10 s5] set v9 [p5 s4 $v10 s6] if {$v2} { append v7 "c" p2 s1 s10 "d$v8 e" if {[ne $s1 ""]} {p4 s8 "u$s1 f$v8"} append v7 "g" p2 s1 s10 "h[p6 s9 s11]i$v8" if {[ne $s1 ""]} {p4 s8 "u$s1 i$v8"} append v7 "j" p2 s1 s10 "x1$v8" if {[ne $s1 ""]} {p4 s8 "u$s1 x2$v1"} append v7 "k" p2 s1 s10 "x3$v8 x4" if {[ne $s1 ""]} {p4 s8 "u$s1 x5$v8"} append v7 "l" p2 s1 s10 "x6$v8" if {[ne $s1 ""]} {p4 s8 "u$s1 x7$v8"} append v7 "m" p2 s1 s10 "x8$v8 x9" if {[ne $s1 ""]} {p4 s8 "u$s1 x10$v8"} if {[string match x11 $v9]} { append v7 "n$v9 o" p7 $v9 append v7 "p" p2 s1 s10 "q[p3 $v9]r" if {[ne $s1 ""]} {p4 s8 "u$s1 s$v9"} } } if {$v4} { append v7 "t$v9 r" p2 s1 s10 "x12[p3 $v9]x13" if {[ne $s1 ""] && [ne [p8 $s1] "x14"]} {p4 s8 "x15$s1"} append v7 "s" p2 s1 s10 "x16$v8 x17" if {[ne $s1 ""]} {p4 s8 "u$s1 t$v8"} } set v9 0 set v10 [p2 s1 s3 "x18$v8"] if {$v10 ne ""} { set v11 [p5 s4 $v10 v11] if {$v11 ne "" || $v9} {} } } puts [tcl::unsupported::disassemble proc foo] - login: "anonymous"
- mimetype: "text/plain"