[Bug c++/29871] New: Allocating 8Mb structure on the stack causes segmentation fault in output program
angus at uducat dot com
gcc-bugzilla@gcc.gnu.org
Thu Nov 16 21:00:00 GMT 2006
If the following tiny program is built, the resulting executable will seg fault
upon the construction of a.
class a {
public:
a() {}
~a() {}
char c[(8*1024*1024)];
};
int main(void) {
a _a;
return 0;
}
I've got this to occur in Suse Enterprise 10 32-bit, but got similar results in
open Suse 10.1 64-bit.
--
Summary: Allocating 8Mb structure on the stack causes
segmentation fault in output program
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: angus at uducat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29871
More information about the Gcc-bugs
mailing list