http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46093
Summary: code compiled with -fsplit-stack crashes when passing
large struct
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: [email protected]
ReportedBy: [email protected]
Created attachment 22091
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22091
testcase
Output (-g is not needed to reproduce):
$ gcc -fsplit-stack testcase.c -g
$ gdb ./a.out
...
Program received signal SIGSEGV, Segmentation fault.
0x0000000000400ca9 in foo (s=...) at testcase.c:14
14 bar (s);
(gdb) bt
#0 0x0000000000400ca9 in foo (s=...) at testcase.c:14
#1 0x0000000000400d84 in __morestack () at
/mnt/svn/gcc-trunk/libgcc/config/i386/morestack.S:374
#2 0x0000000000400d00 in main () at testcase.c:21
I am not sure if that can be a problem here, but this is my binutils info:
$ ld -v
GNU ld (GNU Binutils) 2.20.1.20100303