public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug middle-end/46119] New: -fsplit-stack -fstack-protector-all - code crashes when passing large struct via stack @ 2010-10-21 16:04 zsojka at seznam dot cz 2012-02-02 17:27 ` [Bug middle-end/46119] " pinskia at gcc dot gnu.org 2021-08-08 22:12 ` [Bug middle-end/46119] -fsplit-stack " pinskia at gcc dot gnu.org 0 siblings, 2 replies; 3+ messages in thread From: zsojka at seznam dot cz @ 2010-10-21 16:04 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46119 Summary: -fsplit-stack -fstack-protector-all - code crashes when passing large struct via stack Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned@gcc.gnu.org ReportedBy: zsojka@seznam.cz Created attachment 22108 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22108 reduced testcase Output: $ gcc -fsplit-stack -fstack-protector-all pr46119.c $ ./a.out Segmentation fault Tested revisions: r165768 - fail ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug middle-end/46119] -fsplit-stack -fstack-protector-all - code crashes when passing large struct via stack 2010-10-21 16:04 [Bug middle-end/46119] New: -fsplit-stack -fstack-protector-all - code crashes when passing large struct via stack zsojka at seznam dot cz @ 2012-02-02 17:27 ` pinskia at gcc dot gnu.org 2021-08-08 22:12 ` [Bug middle-end/46119] -fsplit-stack " pinskia at gcc dot gnu.org 1 sibling, 0 replies; 3+ messages in thread From: pinskia at gcc dot gnu.org @ 2012-02-02 17:27 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46119 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-02 17:26:40 UTC --- This works for me on the trunk ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug middle-end/46119] -fsplit-stack - code crashes when passing large struct via stack 2010-10-21 16:04 [Bug middle-end/46119] New: -fsplit-stack -fstack-protector-all - code crashes when passing large struct via stack zsojka at seznam dot cz 2012-02-02 17:27 ` [Bug middle-end/46119] " pinskia at gcc dot gnu.org @ 2021-08-08 22:12 ` pinskia at gcc dot gnu.org 1 sibling, 0 replies; 3+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-08-08 22:12 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46119 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-08-08 Known to work| |4.8.0, 4.8.5 Summary|-fsplit-stack |-fsplit-stack - code |-fstack-protector-all - |crashes when passing large |code crashes when passing |struct via stack |large struct via stack | Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Known to fail| |4.9.0 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- -fsplit-stack is enough. It worked in GCC 4.7.x and 4.8.x but broke again in 4.9.0. The one where it worked main had (clang also has this): leaq -32776(%rsp), %r11 cmpq %fs:112, %r11 jae .L6 The one where it fails has: leaq -16392(%rsp), %r11 cmpq %fs:112, %r11 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-08-08 22:12 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-10-21 16:04 [Bug middle-end/46119] New: -fsplit-stack -fstack-protector-all - code crashes when passing large struct via stack zsojka at seznam dot cz 2012-02-02 17:27 ` [Bug middle-end/46119] " pinskia at gcc dot gnu.org 2021-08-08 22:12 ` [Bug middle-end/46119] -fsplit-stack " pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).