Overview
| Artifact ID: | de54ff77248d83ff0b497b552238a3996ccc6d27 |
|---|---|
| Ticket: | 2803109fffffffffffffffffffffffffffffffff
tsv - string rep - core dump |
| User & Date: | juliannoble on 2009-06-08 18:11:49 |
Changes
- assignee changed to: "andreas_kupries"
- cmimetype changed to: "text/plain"
- comment changed to:
Tcl 8.6b1.1 on FreeBSD - (multi core system) Attempting to read back an empty string/empty list from a tsv is causing the process to crash with: UpdateStringProc for type 'string' failed to create a valid string rep The initialisation is done with: tsv::set t_1 accounts_on_thread [list] Retrieving the value (in the same thread) later like so: set streams_on_thisthread [tsv::get t_1 accounts_on_thread] This assignment appears to work - but any subsequent attempt to use the value $streams_on_thisthread as a string causes the crash. (although 'string length' works and returns 0, but 'string bytelength' triggers the crash) Using the Tweezer package the type is reported as string and the refcount is 2. Initialising it the following way also results in the problem: tsv::set t_1 accounts_on_thread "" The following values however work without error: tsv::set t_1 accounts_on_thread " " tsv::set t_1 accounts_on_thread [lrange [list] 0 0] tsv::set t_1 accounts_on_thread [string range "" 0 -1] tsv::set t_1 accounts_on_thread [string range "" 0 0] I've been unable to reproduce the error in a simple script. (the real app has a handful of threads and is doing some sqlite work - the crash occurs around 30s in) (see also discussion on clt: http://groups.google.com/group/comp.lang.tcl/browse_frm/thread/6fec903446cd87a4/4a8a163a0755856a#4a8a163a0755856a )
- foundin changed to: "obsolete: 8.6b1.1"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "juliannoble"
- subsystem changed to: "49. Threading"
- title changed to: "tsv - string rep - core dump"
- type changed to: "Bug"