|
2014-12-03
| ||
| 23:07 | • Closed ticket [0dca3bfa8f]: Segmentation Fault in Tcl 8.6.3 plus 7 other cha... artifact: 8569dc7a44 user: dkf | |
| 23:05 | [0dca3bfa8f] Strengthen validity checks on fast-path string comparison. check-in: 10719b63c9 user: dkf tags: trunk | |
|
2014-12-02
| ||
| 15:06 | • Ticket [0dca3bfa8f] Segmentation Fault in Tcl 8.6.3 status still Open with 6... artifact: b19bf5ba56 user: msofer | |
| 14:28 | • New ticket [0dca3bfa8f]. artifact: 28928920c0 user: anonymous | |
Segmentation Fault in Tcl 8.6.3
Closed / Fixed0dca3bfa8f65108c4df344db22c06966886e529fCreated 12 years agoUpdated 12 years ago
Descriptionplain2014-12-02 14:28:28
This small script:
proc procedure { arg } {
set argCopy $arg
set arg [string replace $arg 1 2 aa]
if { $arg ne $argCopy } { puts "ok" }
}
procedure "abcde"
throws Segmentation Fault. Tested for versions 8.6.2 and 8.6.3 on Solaris, RHEL 6.1 32/64bit. The same behavior is observed for ActiveTcl 8.6.2 and 8.6.3 on Windows 7 64bit and RHEL 6.1 32/64bit.
Version 8.6.1 and 8.5.17 is working fine.
Referenced by1
10719b63c9[0dca3bfa8f] Strengthen validity checks on fast-path string comparison. check-in2014-12-03 23:05:15
msoferwiki2014-12-02 15:06:03
The problem is hit at line 5468 in today's tclExecute.c, where a memcmp is attempted with address s1 ... which is NULL.
Bisection shows that the guilty commit is [4492d3b64521aaeedca4b92]
dkfhtml2014-12-03 23:07:31
Huh, I'd forgotten to check that strings have a valid string rep; the code didn't produce it when I expected it to. Sorted. Will be in 8.6.4. (Thanks for your helpful test case; it's now in the test suite with some minor changes.)
Log in (anonymous is fine) to add a comment.