[Bug c++/41412] New: SEGFAULT when declaring two 724 x 724 matrices of doubles in class

2009-09-19 Thread maltusan at gmail dot com
When two matrices of the type double, sized [724][724] or more are declared, as
private variables of a class, the program crashes as soon as this class
constructor is called. 

724 is the magic number; 723 does not trigger the bug. The type has to be
double also, no other built-in does the job.

The exact version I'm using is Ubuntu 4.3.3-5ubuntu4.

Here's a little source file that triggers the bug:

class foo
{
  double a[724][724], b[724][724];

public:

foo ()
  {
  }
};

int
main ()
{
  foo bar;
}


-- 
   Summary: SEGFAULT when declaring two 724 x 724 matrices of
doubles in class
   Product: gcc
   Version: 4.3.3
Status: UNCONFIRMED
  Severity: critical
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: maltusan at gmail dot com
 GCC build triplet: i486-linux-gnu
  GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41412



[Bug c++/41412] SEGFAULT when declaring two 724 x 724 matrices of doubles in class

2009-09-19 Thread maltusan at gmail dot com


--- Comment #2 from maltusan at gmail dot com  2009-09-20 04:13 ---
Oh. I'm sorry. As it didn't happen when I declared the variables outside a
class, I didn't think it was a memory issue.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41412