www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Issue 39] New: gdmd segfault during compilation of simple matrix

http://gdcproject.org/bugzilla/show_bug.cgi?id=3D39


           Summary: gdmd segfault during compilation of simple matrix
                    multiplication routine
    Classification: Unclassified
           Product: GDC
           Version: 4.7.x
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: Normal
         Component: gdc
        AssignedTo: ibuclaw gdcproject.org
        ReportedBy: j.e.aten gmail.com


Created attachment 33
  --> http://gdcproject.org/bugzilla/attachment.cgi?id=3D33
source code that induces gdmd to segfault

See the attached source file for a simple matrix multiplication test. When
attempting to compile on linux with gdmd, the compiler segfaults.  The gdc
compiler should complain if it doesn't like the code, but it should never
itself segfault.

On OS: Ubuntu 10.04
$ uname -a

x86_64 GNU/Linux

On GDC: built atop gcc 4.7.2.
$ gdmd -v
gdc (GCC) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Specific source version of GDC as pulled from git: (on branch 4.7.2)
~/pkg/gdc/GDC$ git log|head
commit b8f5c22b0e7afa7e68a287ed788597e783540063
Merge: d4936c9 84d02ef
Author: Iain Buclaw <ibuclaw ubuntu.com>
Date:   Sun Feb 24 06:46:00 2013 -0800



    Update gdc-4.7 branch

commit 84d02efb3f0d608935dc98114a2c3cec6433c94a

~/pkg/gdc/GDC$ git branch -v

  master  465c7cc Handle use cases of  attribute foo, and  attribute(null) =
foo.
~/pkg/gdc/GDC$=20

result of running attached source:
$ gdmd gdmd_segfault.d
gdmd_segfault.d: In function =E2=80=98scid_matrix_test.mmult=E2=80=99:
gdmd_segfault.d:76: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

--=20
Configure issuemail: http://gdcproject.org/bugzilla/userprefs.cgi?tab=3Dema=
il
------- You are receiving this mail because: -------
You are watching all issue changes.=
Mar 05 2013