[Issue 2952] New: Segfault on exit when using array ops with arrays of doubles larger than 8 elements
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 7 16:52:59 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2952
Summary: Segfault on exit when using array ops with arrays of
doubles larger than 8 elements
Product: D
Version: 2.029
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: lmb at stackedboxes.org
This program causes a segmentation fault when exiting:
void main()
{
double[9] array;
array[] *= 2;
}
Curious things:
1. The program seems to actually execute correctly. I mean, adding more code to
the program, including other array operations and printing the contents of
'array' results in the expected behavior -- but it keeps segfaulting on exit.
2. Replacing 'double' with 'float', 'real', 'int' (and possibly others) makes
the program work correctly.
3. Using an array with less than 9 elements makes the program work correctly.
--
More information about the Digitalmars-d-bugs
mailing list