Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bb453919bbb8f47f3391da51dc4c45cbccb59848
Ticket: 3865631578e3423a7786527af579e844c6ace321
Tcl panics when writing a file exceeding `ulimit -f`
User & Date: sbron on 2013-08-30 19:34:36
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. 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):
    
    --- 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 changed to: "8.5.15rc0"
  6. is_private changed to: "0"
  7. login: "sbron"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "8475f421649231f1e116ac602bea4537d2b027b4"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "sbron"
  14. subsystem changed to: "37. File System"
  15. title changed to:
    Tcl panics when writing a file exceeding `ulimit -f`
    
  16. type changed to: "Patch"