[gccsdk] [Bug 189] New: printf output doesn't appear before a crash

bugzilla-daemon at riscos.info bugzilla-daemon at riscos.info
Sun Jan 17 08:08:08 PST 2010


http://www.riscos.info/bugzilla3/show_bug.cgi?id=189

           Summary: printf output doesn't appear before a crash
           Product: GCC/GCCSDK
           Version: other
          Platform: Other
        OS/Version: RISC OS
            Status: NEW
          Severity: feature request
          Priority: P1
         Component: Unixlib and SharedCLibrary
        AssignedTo: John.Tytgat at aaug.net
        ReportedBy: peter at chocky.org
   Estimated Hours: 0.0


#include <stdio.h>

char *zero = 0;

int main(void) {
  printf("test %d\n", 10);
  *zero = 0;

  return 0;
}

In this case, despite the LF, the output doesn't appear on stdout, redirected
or otherwise, before the crash occurs.  If a puts is done after the printf,
then the output is seen.

-- 
Configure bugmail: http://www.riscos.info/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the gcc mailing list