Skip to content
Tcl Source Code History Of Ticket 5ee010988248
Login

History Of Ticket 5ee010988248

Artifacts Associated With Ticket 5ee010988248

  1. Ticket change [452a317ccb] (rid 215013) by pooryorick on 2023-05-17 11:50:56:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. 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].
      
    5. is_private initialized to: "0"
    6. login: "pooryorick"
    7. priority initialized to: "5 Medium"
    8. private_contact initialized to: "2b2275eab1118e1fab0016cf1c5702893c6af86c"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "pooryorick"
    13. subsystem initialized to: "- New Builtin Commands"
    14. title initialized to:
      lseq list conversion results in attempt to access freed memory
      
    15. type initialized to: "Bug"
  2. Ticket change [05962b38fc] (rid 215014) by pooryorick on 2023-05-17 11:57:20:

    1. assignee changed to: "pooryorick"
    2. login: "pooryorick"
    3. mimetype: "text/plain"
    4. resolution changed to: "Fixed"
    5. severity changed to: "Important"
  3. Ticket change [6354af3f3a] (rid 215019) by pooryorick on 2023-05-17 12:12:43:

    1. icomment: "Fixed in [e45cee0c53]."
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"
    4. status changed to: "Pending"
  4. Ticket change [1b9038c37d] (rid 215249) by pooryorick on 2023-05-23 15:49:53:

    1. closedate changed to: "2460088.15964997"
    2. closer changed to: "pooryorick"
    3. login: "pooryorick"
    4. mimetype: "text/plain"
    5. status changed to: "Closed"