Skip to content
Tcl Source Code History Of Ticket 7faad04be62497d0
Login

History Of Ticket 7faad04be62497d0

Artifacts Associated With Ticket 7faad04be62497d0

  1. Ticket change [29ecbc50f0] (rid 162652) by dgp on 2018-04-25 14:02:16:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      Starting with checkin
      
      https://core.tcl-lang.org/tcl/info/1f15130a9637c276
      
      The "core_zip_vfs" branch (TIP 430) immediately segfaults
      when `make test` is attempted on a --enable-symbols=mem build.
      
    5. foundin initialized to: "1f15130a9637c276 and later"
    6. is_private initialized to: "0"
    7. login: "dgp"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Critical"
    11. status initialized to: "Open"
    12. submitter initialized to: "dgp"
    13. subsystem initialized to: "- New Builtin Commands"
    14. title initialized to: "TIP 430 immediate segfault"
    15. type initialized to: "Bug"
  2. Ticket change [7dd6b1ee7f] (rid 162653) by dgp on 2018-04-25 14:02:28:

    1. assignee changed to: "hypnotoad"
    2. login: "dgp"
    3. mimetype: "text/plain"
  3. Ticket change [8d04d79421] (rid 162689) by hypnotoad on 2018-04-27 03:11:44:

    1. icomment:
      The ->namelen field was naively assuming that memory would be initialized to zero on Alloc. That is obviously not the case for --enable-symbols=mem  :-/
      
      The portion of the code was also the part of the Tcl bootstrap that tries various files to see if there are zip file systems encoded at the end of them. So the code was dumping out prior to the complete initialization of the data structure that happens in ZipFS_Catalogue_Filesystem.
      
      In checkin [730a3c01cbcc07eba202a74c012b85b30f8645e64c000f37e3c9d9cdd7b23c61] I added code to ensure that (at least in the case exercised by --enable-symbols=mem) we initialize that namelen flag to zero, which prevents the free() call from happening on failure to locate the zipfile header.
      
    2. login: "hypnotoad"
    3. mimetype: "text/plain"
  4. Ticket change [dd2ab76b31] (rid 162690) by hypnotoad on 2018-04-27 03:12:08:

    1. login: "hypnotoad"
    2. mimetype: "text/plain"
    3. resolution changed to: "Fixed"
  5. Ticket change [945a8cff7d] (rid 162691) by dgp on 2018-04-27 13:21:30:

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