Skip to content
Tcl Source Code History Of Ticket 3865631578e3423a
Login

History Of Ticket 3865631578e3423a

Artifacts Associated With Ticket 3865631578e3423a

  1. Ticket change [bb453919bb] (rid 133567) by sbron on 2013-08-30 19:34:36:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      When writing a file that exceeds the size allowed by ulimit -f, Tcl panics (File size limit exceeded). This can easily be turned into a more reasonable I/O error (file too large):
      
      --- unix/tclUnixInit.c.ORIG     2013-08-30 17:58:40.000000000 +0200
      +++ unix/tclUnixInit.c  2013-08-30 20:58:00.827304606 +0200
      @@ -448,6 +448,10 @@
           (void) signal(SIGPIPE, SIG_IGN);
       #endif /* SIGPIPE */
       
      +#ifdef SIGXFSZ
      +    (void) signal(SIGXFSZ, SIG_IGN);
      +#endif /* SIGXFSZ */
      +
       #if defined(__FreeBSD__) && defined(__GNUC__)
           /*
            * Adjust the rounding mode to be more conventional. Note that FreeBSD
      
    5. foundin initialized to: "8.5.15rc0"
    6. is_private initialized to: "0"
    7. login: "sbron"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "8475f421649231f1e116ac602bea4537d2b027b4"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "sbron"
    14. subsystem initialized to: "37. File System"
    15. title initialized to:
      Tcl panics when writing a file exceeding `ulimit -f`
      
    16. type initialized to: "Patch"
  2. Add attachment "sigxfsz.patch" [570b228ead] (rid 133568) by sbron on 2013-08-30 19:41:59.

  3. Ticket change [bce7b17eb7] (rid 133569) by sbron on 2013-08-30 19:42:42:

    1. comment changed to:
      When writing a file that exceeds the size allowed by ulimit -f, Tcl panics (File size limit exceeded). This can easily be turned into a more reasonable I/O error (file too large). See the attached patch.
      
    2. login: "sbron"
    3. mimetype: "text/plain"
  4. Ticket change [421eb0a3ae] (rid 257782) by serhiy.storchaka on 2026-10-12 18:22:58:

    1. foundin changed to: "8.6.18, 9.0.5, 9.1.0"
    2. icomment:
      Still happens in 8.6 and 9.x: the process is killed by SIGXFSZ.
      
      Proposed fix in branch [/timeline?r=unix-ignore-sigxfsz|unix-ignore-sigxfsz]:
      the attached patch, plus restoring the default action of SIGXFSZ in child
      processes, as for SIGPIPE, since ignored signals are inherited across
      <code>exec()</code>. Tests unixInit-1.3 and unixInit-1.4 check both.
      
    3. login: "serhiy.storchaka"
    4. mimetype: "text/x-fossil-wiki"
  5. Ticket change [66d780dc16] (rid 257959) by jan.nijtmans on 2026-10-14 07:39:36:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2461327.8191735419"
    3. closer changed to: "jan.nijtmans"
    4. icomment:
      Fixed in [9a3e24fe8a62c7db|trunk], backported to core-9-0-branch and core-8-6-branch. But without the testcase: It may work on Linux, but won't work on all possible platforms (it doesn't work on Cygwin).
      
      Many thanks!
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"