[Bug c/70262] New: Segmentation fault with large stack array, no fault when alloca the same size

2016-03-19 Thread nickdu at msn dot com
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: nickdu at msn dot com Target Milestone: --- I just ran into a segmentation fault in a binary I created with the gcc compiler. The code is written in c. The problem appears

[Bug c/70262] Segmentation fault with large stack array, no fault when alloca the same size

2016-03-19 Thread nickdu at msn dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70262 --- Comment #2 from nickdu at msn dot com --- Why is this resolved as invalid? I realize I can increase my stack size. However, I believe I'm currently under the limit. In addition, alloca of the same size works.

[Bug c/70262] Segmentation fault with large stack array, no fault when alloca the same size

2016-03-19 Thread nickdu at msn dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70262 --- Comment #4 from nickdu at msn dot com --- That doesn't explain why it works with alloca(). > From: gcc-bugzi...@gcc.gnu.org > To: nic...@msn.com > Subject: [Bug c/70262] Segmentation fault with large stack array, no fault >