[GHC] #11041: EventLog write fails if entire buffer is not written

GHC ghc-devs at haskell.org
Sun Nov 1 09:35:02 UTC 2015


#11041: EventLog write fails if entire buffer is not written
-------------------------------------+-------------------------------------
        Reporter:  sseverance        |                Owner:
            Type:  bug               |               Status:  infoneeded
        Priority:  high              |            Milestone:  8.0.1
       Component:  Runtime System    |              Version:  7.10.2
      Resolution:                    |             Keywords:  eventlog
Operating System:  Unknown/Multiple  |         Architecture:  x86_64
 Type of failure:  Incorrect result  |  (amd64)
  at runtime                         |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by bgamari):

 For the record, on my Debian 8 machine this succeeds in writing the entire
 buffer,
 {{{
 #include <stdio.h>
 #include <stdlib.h>

 void main() {
         FILE* f = fopen("test", "w+");
         int n = 1024*1025;
         char* xs = malloc(n);
         size_t written = fwrite(xs, 1, n, f);
         printf("written = %d\n", written);
 }
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11041#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list