Artifacts Associated With Ticket 5ee010988248
Ticket change [452a317ccb] (rid 215013) by pooryorick on 2023-05-17 11:50:56:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
In a build of trunk with --enable-symbols and CFLAGS="-DPURIFY", the following script <blockquote><code><verbatim> trace add variable one write [list ::apply [list args { error {this error} } [namespace current]]] set one [lindex [lreplace [lseq 1 2] 1 1 hello] 0] </verbatim></code></blockquote> Results in the following error: <blockquote><code><verbatim> malloc(): unaligned fastbin chunk detected 3 </verbatim></code></blockquote> The reason is that <code>lreplace</code> converts the internal repesentation from <code>tclArithSeriesType</code> to <cod>tclListType</code>, and <code>SetListFromAny()</code> handles the arithmetic series specially, forgetting to increment the reference count when each <code>Tcl_Obj</code> is added to the list. See [https://core.tcl-lang.org/tcl/file?udc=1&ln=3323&ci=57e46213e1e5414a&name=generic%2FtclListObj.c|this loop]. - is_private initialized to: "0"
- login: "pooryorick"
- priority initialized to: "5 Medium"
- private_contact initialized to: "2b2275eab1118e1fab0016cf1c5702893c6af86c"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "pooryorick"
- subsystem initialized to: "- New Builtin Commands"
- title initialized to:
lseq list conversion results in attempt to access freed memory
- type initialized to: "Bug"
Ticket change [05962b38fc] (rid 215014) by pooryorick on 2023-05-17 11:57:20:
- assignee changed to: "pooryorick"
- login: "pooryorick"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- severity changed to: "Important"
Ticket change [6354af3f3a] (rid 215019) by pooryorick on 2023-05-17 12:12:43:
- icomment: "Fixed in [e45cee0c53]."
- login: "pooryorick"
- mimetype: "text/x-fossil-wiki"
- status changed to: "Pending"
Ticket change [1b9038c37d] (rid 215249) by pooryorick on 2023-05-23 15:49:53:
- closedate changed to: "2460088.15964997"
- closer changed to: "pooryorick"
- login: "pooryorick"
- mimetype: "text/plain"
- status changed to: "Closed"