Artifacts Associated With Ticket 3865631578
Ticket change [bb453919bb] (rid 133567) by sbron on 2013-08-30 19:34:36:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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 - foundin initialized to: "8.5.15rc0"
- is_private initialized to: "0"
- login: "sbron"
- priority initialized to: "5 Medium"
- private_contact initialized to: "8475f421649231f1e116ac602bea4537d2b027b4"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "sbron"
- subsystem initialized to: "37. File System"
- title initialized to:
Tcl panics when writing a file exceeding `ulimit -f`
- type initialized to: "Patch"
Add attachment "sigxfsz.patch" [570b228ead] (rid 133568) by sbron on 2013-08-30 19:41:59.
Ticket change [bce7b17eb7] (rid 133569) by sbron on 2013-08-30 19:42:42:
- 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.
- login: "sbron"
- mimetype: "text/plain"
- comment changed to:
Ticket change [421eb0a3ae] (rid 257782) by serhiy.storchaka on 2026-10-12 18:22:58:
- foundin changed to: "8.6.18, 9.0.5, 9.1.0"
- 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.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
Ticket change [66d780dc16] (rid 257959) by jan.nijtmans on 2026-10-14 07:39:36:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2461327.8191735419"
- closer changed to: "jan.nijtmans"
- 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!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"