Allocating blocks of memory using a declaration like "double X[n];" leads to segfaults if n is large enough (something like 1100000). Also happens when allocating two smaller chunks, as in "double X[n/2], Y[n/2];". No problems with explicit dynamic allocation ("double *X = new double[n];").
Bug #18216 looks somewhat similar, but doesn't mention segfaults. My limited knowledge of the intricacies of memory allocation and alignment doesn't allow me to tell for sure whether it's the same bug or not. -- Summary: segfault when using implicit dynamic allocation Product: gcc Version: 4.4.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: Knut dot Franke at gmx dot de GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41466