Skip to content
Tcl Source Code Artifact [02a11b7521]
Login

Artifact [02a11b7521]

Artifact 02a11b75217f1f35a1efaf1f546bd54ece3a7be8:

Ticket change [02a11b7521] - Ticket [879a0747bee593e2|879a0747be] <i>Segfault when reading a specific file</i> status still Open with 3 other changes by ferrieux on 2015-04-20 20:08:44.
D 2015-04-20T20:08:44.100
J comment Tcl\ssegfaults\swhen\sreading\sthe\sattached\sfile\s"workfile".\r\nThe\ssupplied\sscript\s"exercise.tcl"\smakes\sthat\shappen\sfor\syou.\r\n\r\nThe\ssegfaults\soccurs\swith\sTcl\sreleases\s8.5.18\sand\s8.6.4,\sand\snot\swith\s8.4.20.\r\nPlatform\sinfo\sand\sfull\sback\strace\shave\sbeen\sappended.\r\n\r\nAside:\sthe\sfile\s"workfile"\sis\sno\sclever\sconcoction.\sIt's\sa\sreal-world\sfile\s(with\sanother\sname)\sthat\sexists\sin\sa\suser-specific\sconfiguration\sdirectory\sfor\smy\sKDE-desktop.\sTcl\sstumbled\sacross\sit,\swhen\straversing\sthe\sfilesystem\sin\ssearch\sfor\sspecific\spatterns.\sThe\sfile\scontains\ssome\sinvalid\sUTF-8\scharacters.\sIf\syou\sknow\sup\sfront\sthat\sthis\sfile\sis\scoming,\sthen\syou\sprobably\swant\sto\sopen\sit\sin\sbinary\smode\sand\sall\sis\swell.\sOf\scourse,\sTcl\sought\snot\ssegfault\swhen\sreading\sit\sin\stext\smode.\r\n\r\nSincerely,\r\n\r\nErik\sLeunissen\r\n--\r\nPlatform\sand\sencoding\ssettings:\r\n%\sparray\stcl_platform\r\ntcl_platform(byteOrder)\s\s\s=\slittleEndian\r\ntcl_platform(machine)\s\s\s\s\s=\sx86_64\r\ntcl_platform(os)\s\s\s\s\s\s\s\s\s\s=\sLinux\r\ntcl_platform(osVersion)\s\s\s=\s3.11.6-4-desktop\r\ntcl_platform(platform)\s\s\s\s=\sunix\r\ntcl_platform(pointerSize)\s=\s8\r\ntcl_platform(user)\s\s\s\s\s\s\s\s=\serik\r\ntcl_platform(wordSize)\s\s\s\s=\s8\r\n%\sencoding\ssystem\r\nutf-8\r\n--\r\n\r\nFull\sback\strace\swith\sTcl\s8.5.18:\ssee\sattached\sbt.txt
J login ferrieux
J mimetype text/plain
K 879a0747bee593e2cd0f531fa723f5f5d5595527
U ferrieux
Z f03fa934ce626f9c4e8245378a74f95d