www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8305] New: DMD Segfaults on Certain Imports

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8305

           Summary: DMD Segfaults on Certain Imports
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: SyntaxColoring gmail.com



Commit 31f97
(shttps://github.com/D-Programming-Language/dmd/commit/31f974a03de4372a7f95801b3e4f5a09f052ee1e)
introduced a bug that causes DMD to crash with a segmentation fault upon
invocation.

It looks like importing certain modules, like std.stdio, causes the crash.  (A
simple "Hello world" program cannot be compiled.)  The modules do not have to
be actually used; only imported.  Importing an empty module does not trigger
the crash.

Tested under a completely new installation of Arch Linux.  32-bit everything. 
I built a Git checkout of DMD, but pointed it to the imports and binaries from
the 2.059 .zip file from dlang.org.  (I was in the process of upgrading the
entire toolchain, and Phobos and DRuntime cannot be compiled with an older
DMD.)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 26 2012
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8305


Walter Bright <bugzilla digitalmars.com> changed:

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



18:33:29 PDT ---
You'll need to rebuild druntime and phobos to go with 2.060.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 26 2012