------- Comment #5 from aleksi dot nurmi at helsinki dot fi  2008-11-17 15:53 
-------
GDB output showing that libc (debug) received a null pointer:

Program received signal SIGSEGV, Segmentation fault.
_IO_getc (fp=0x0) at getc.c:40
40        _IO_acquire_lock (fp);
(gdb) print fp
$1 = (FILE *) 0x0
(gdb) up
#1  0x000000000040051e in main () at fault.c:20
20          read_char(&our_stdin);
(gdb) print our_stdin.f
$2 = (FILE *) 0x7f75cc0c96a0
(gdb) print stdin
$3 = (struct _IO_FILE *) 0x7f75cc0c96a0


-- 

aleksi dot nurmi at helsinki dot fi changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Accessor to stdin is breaks |Accessor to stdin breaks on
                   |on -O2 optimization         |-O2 optimization


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38167

Reply via email to