Overview
Artifact ID: | 82ae3a98f92c02403f36a16a6fd66447ad3b275e23360a066b6f9325bf49d0ac |
---|---|
Ticket: | 76f47e0376fb8b2783627799fd7f2adab66d98f9
thread::send -async script varname aborts with "alloc: invalid block" |
User & Date: | pooryorick 2018-07-17 06:15:10 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
With a Tcl compiled with <code>--enable-symbols</code> , the script <code><verbatim> package require Thread set t1 [thread::create] thread::send -async $t1 {lindex {}} [expr 0] </verbatim></code> results in: <code><verbatim> alloc: invalid block </verbatim></code> This happens because <code>threadSendFree</code> [https://core.tcl.tk/thread/artifact?udc=1&ln=992&name=27b80f574a4ced5a| obtains the length] of a <code>Tcl_Obj</code> before the string representation for that object is generated, and a few lines later [https://core.tcl.tk/thread/artifact?udc=1&ln=1014&name=27b80f574a4ced5a|the string representation is generated].
- foundin changed to: "trunk1"
- is_private changed to: "0"
- login: "pooryorick"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "pooryorick"
- subsystem changed to: "80. Thread Package"
- title changed to:
thread::send -async script varname aborts with "alloc: invalid block"
- type changed to: "Bug"