Skip to content
Tcl Source Code History Of Ticket 3554250fffffffff
Login

History Of Ticket 3554250fffffffff

Artifacts Associated With Ticket 3554250fffffffff

  1. Ticket change [b72bdeafe9] (rid 125535) by stwo on 2012-08-04 12:17:45:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Tcl_FSDeleteFile will segfault if called from a channel's close2proc when the interpreter [exit]s but not when the main window is destroyed when running wish.
      This used to work; something changed between 8.5.11 and 8.5.12.
      
    4. foundin initialized to: "obsolete: 8.5.12"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "stwo"
    10. subsystem initialized to: "37. File System"
    11. title initialized to: "[exit]->close2proc->Tcl_FSDeleteFile == segfault"
    12. type initialized to: "Bug"
  2. Ticket change [3336b756e9] (rid 106547) by stwo on 2012-08-05 02:27:22:

    1. icomment:
      
      
      File Added - 450553: c.c
      
      
      
    2. login: "stwo"
    3. mimetype: "text/plain"
    4. username: "stwo"
  3. Add attachment "c.c" [6b3375f745] (rid 128279) by stwo on 2012-08-05 02:27:22.

  4. Ticket change [a56acb64d0] (rid 110377) by stwo on 2012-08-05 02:27:53:

    1. icomment:
      Attached a program that demonstrates the problem.
      
      
    2. login: "stwo"
    3. mimetype: "text/plain"
    4. username: "stwo"
  5. Ticket change [75f2aba6c7] (rid 105485) by dkf on 2012-08-05 21:02:49:

    1. icomment:
      It would be nice to reproduce without C code. (Don't know if that's possible, or if running inside an exit handler is critical.)
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. priority changed to: "7 High"
    5. username: "dkf"
  6. Ticket change [13fc0918da] (rid 124314) by ferrieux on 2012-08-05 21:29:29:

    1. icomment:
      Also, the code mentions failing in 8.6 but I cannot reproduce, even with TCL_FINALIZE_ON_EXIT.
      Any details on the configure flags ?
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  7. Ticket change [ded7fcb59c] (rid 114920) by ferrieux on 2012-08-05 21:30:41:

    1. icomment:
      Hum, strike that, had not uncommented the proper line :}
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  8. Ticket change [6b9ec54841] (rid 128358) by ferrieux on 2012-08-05 21:42:58:

    1. icomment:
      Okay, this (in current 8.6 at least) is the result of the finalization sequence nuking the FS part before the IO part:
      FsThrExitProc called before FinalizeIOSubsystem, which calls the tested close2proc.
      
      One has to choose an order, this one is not worse than another (or is it ?). I guess we could make better use of finalization flags to detect this kind of after-death use of an API though.
      
      More diggin needed to figure out why it worked in 8.5.11.
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  9. Ticket change [f50dc2f10c] (rid 130040) by ferrieux on 2012-08-05 21:55:02:

    1. icomment:
      To elaborate: the FS finalization part is registered as an (early) exit handler, and as such is run before IO finalization (the idea being that tyipcal exit handlers might do some IO). In some cases (like flushing a zipped rw filesystem) it is good to do things in this order, so let's not change it.
      
      Hence I guess the proper fix is along the lines sketched before (robustize flagging).
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  10. Ticket change [46de9b27b9] (rid 99593) by dgp on 2012-08-07 20:54:25:

    1. icomment:
      First broken in http://core.tcl.tk/tcl/info/575001f433
      so I'm to blame.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  11. Ticket change [c47aa3507d] (rid 111856) by dgp on 2012-08-07 21:04:26:

    1. icomment:
      Digging further into the feature branch, the failure
      appears in http://core.tcl.tk/tcl/info/223bd04c8b
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  12. Ticket change [a9935aeaa7] (rid 99169) by stwo on 2012-08-07 22:17:43:

    1. icomment:
      I've switched to using unlink(2) so this is no longer affecting me.
      If it's not a bug, as ferrieux says, then I guess close this ticket and unburden dgp a tad. :) I realize this is a difficult area of the code to be working in.
      
      
    2. login: "stwo"
    3. mimetype: "text/plain"
    4. username: "stwo"
  13. Ticket change [2bccf99002] (rid 118806) by dgp on 2012-08-07 22:20:54:

    1. icomment:
      Got a fix.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  14. Ticket change [5c6f752762] (rid 115299) by dgp on 2012-08-07 22:28:23:

    1. closedate changed to: "2012-08-07T15:28:23"
    2. closer changed to: "dgp"
    3. icomment:
      
      
      allow_comments - 1
      
      Fix committed to 8.5 and trunk branches.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"