www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2952] New: Segfault on exit when using array ops with arrays of doubles larger than 8 elements

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: lmb 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.


-- 
May 07 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2952


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug yahoo.com.au
            Version|2.029                       |1.044
         OS/Version|Linux                       |All




--- Comment #1 from Don <clugdbug yahoo.com.au>  2009-05-25 01:25:16 PDT ---
This applies also to Windows, and to D1.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 25 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2952





--- Comment #2 from Don <clugdbug yahoo.com.au>  2009-05-25 03:02:40 PDT ---
I have fixed this but can't post it to the runtime source since dsource is
down.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 25 2009
prev sibling next sibling parent Brad Roberts <braddr puremagic.com> writes:
d-bugmail puremagic.com wrote:
 http://d.puremagic.com/issues/show_bug.cgi?id=2952
 
 --- Comment #2 from Don <clugdbug yahoo.com.au>  2009-05-25 03:02:40 PDT ---
 I have fixed this but can't post it to the runtime source since dsource is
 down.

In an earlier thread on one of the newsgroups, Sean expressed a preference to bugzilla based bug reports for druntime.
May 25 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2952





--- Comment #3 from Don <clugdbug yahoo.com.au>  2009-06-02 18:54:03 PDT ---
I've fixed this in SVN for both D1 and D2.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 02 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2952


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED




--- Comment #4 from Walter Bright <bugzilla digitalmars.com>  2009-07-09
02:49:45 PDT ---
Fixed dmd 1.046 and 2.031

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 09 2009