Overview
| Artifact ID: | 02a11b75217f1f35a1efaf1f546bd54ece3a7be8 |
|---|---|
| Ticket: | 879a0747bee593e2cd0f531fa723f5f5d5595527
Incomplete multibyte char @eof -> failed read |
| User & Date: | ferrieux on 2015-04-20 20:08:44 |
Changes
- comment changed to:
Tcl segfaults when reading the attached file "workfile". The supplied script "exercise.tcl" makes that happen for you. The segfaults occurs with Tcl releases 8.5.18 and 8.6.4, and not with 8.4.20. Platform info and full back trace have been appended. Aside: the file "workfile" is no clever concoction. It's a real-world file (with another name) that exists in a user-specific configuration directory for my KDE-desktop. Tcl stumbled across it, when traversing the filesystem in search for specific patterns. The file contains some invalid UTF-8 characters. If you know up front that this file is coming, then you probably want to open it in binary mode and all is well. Of course, Tcl ought not segfault when reading it in text mode. Sincerely, Erik Leunissen -- Platform and encoding settings: % parray tcl_platform tcl_platform(byteOrder) = littleEndian tcl_platform(machine) = x86_64 tcl_platform(os) = Linux tcl_platform(osVersion) = 3.11.6-4-desktop tcl_platform(platform) = unix tcl_platform(pointerSize) = 8 tcl_platform(user) = erik tcl_platform(wordSize) = 8 % encoding system utf-8 -- Full back trace with Tcl 8.5.18: see attached bt.txt
- login: "ferrieux"
- mimetype: "text/plain"