public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/29871] New: Allocating 8Mb structure on the stack causes segmentation fault in output program
@ 2006-11-16 21:00 angus at uducat dot com
2006-11-16 21:46 ` [Bug c++/29871] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: angus at uducat dot com @ 2006-11-16 21:00 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-11-16 21:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-16 21:00 [Bug c++/29871] New: Allocating 8Mb structure on the stack causes segmentation fault in output program angus at uducat dot com
2006-11-16 21:46 ` [Bug c++/29871] " pinskia at gcc dot gnu dot 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).