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

           Summary: ICE in printf() with -fsplit-stack enabled.
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: pl...@agmk.net


$ g++46 0.cpp -Wall -O1 -g2 -fsplit-stack

(gdb) r
Starting program: /home/users/pluto/src/gcc/PRs/a.out
i = 32768, rsp = 0x7fffffffdd30
i = 32767, rsp = 0x7fffffffdc20
i = 32766, rsp = 0x7fffffffdb10
(...)
i = 32705, rsp = 0x7ffff7ff8ab0
i = 32704, rsp = 0x7ffff7ff89a0
i = 32703, rsp = 0x7ffff7ff8890

Program received signal SIGSEGV, Segmentation fault.
_IO_new_file_xsputn (f=0x7ffff763a7a0, data=0x401ae4, n=4) at fileops.c:1288

(gdb) bt 8
#0  _IO_new_file_xsputn (f=0x7ffff763a7a0, data=0x401ae4, n=4) at
fileops.c:1288
#1  0x00007ffff72f3e45 in _IO_vfprintf_internal (s=0x7ffff763a7a0,
format=0x401ae4 "i = %ld, rsp = %p\n", ap=0x7ffff7ff86a0) at vfprintf.c:1314
#2  0x00007ffff72feaba in __printf (format=<value optimized out>) at
printf.c:35
#3  0x0000000000400c89 in foo (i=<value optimized out>) at 0.cpp:7
#4  0x0000000000400ca7 in foo (i=<value optimized out>) at 0.cpp:11
#5  0x0000000000400ca7 in foo (i=<value optimized out>) at 0.cpp:11
#6  0x0000000000400ca7 in foo (i=<value optimized out>) at 0.cpp:11
#7  0x0000000000400ca7 in foo (i=<value optimized out>) at 0.cpp:11

Reply via email to