Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 19f5803f9effcdd88be4bf27329820b152847f00f64f7b8d7ef388015aba419a
Ticket: da63e4c1efcfc3e68fdc4527df6a8109e1eac348
Crash in Tcl_WriteChars()
User & Date: anonymous on 2022-11-16 10:16:13
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    Tcl 9.0 crashes in Tcl_WriteChars() when calling TclDecrRefCount(copy)
    (in generic/tclIO.c).  Before the crash, the Tcl_Obj *copy has the following content:
    
    copy refcount 0
    copy bytes 0x0
    copy type 0x1054c77a0
    copy type name bytearray
    
    The problem happens in [1] and can be reproduced 
    when compiling the tip version of NaviServer with Tcl9.0 
    and running then "make test".
    
    Adding "Tcl_IncrRefCount(copy)" after TclNarrowToBytes() helps for NaviServer 
    to get past Tcl_WriteChars(), but does not solve the problem 
    (as pointed out by Jan).
    
    -gustaf
    
    [1] https://bitbucket.org/naviserver/naviserver/src/c7b93582c076c41508dc7bf342d3fa864d3d6409/nsd/pidfile.c#lines-65
    
  5. foundin changed to: "9.0a4"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "ef1993a98c1daa778fe0b246a7af12b3076f2240"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "12. ByteArray Object"
  15. title changed to: "Crash in"
  16. type changed to: "Bug"