Thread overview
[Issue 7478] New: dmd crashes while compiling
Feb 10, 2012
phyphor0@gmail.com
[Issue 7478] segfault(attrib.c) compiling with -deps -release -inline
Mar 31, 2012
Don
[Issue 7478] stack overflow compiling with -deps -release -inline (Windows only)
Apr 05, 2012
Don
[Issue 7478] stack overflow compiling with -deps -release -inline -noboundscheck
May 14, 2012
Don
May 14, 2012
Don
May 16, 2012
Don
February 10, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7478

           Summary: dmd crashes while compiling
           Product: D
           Version: D2
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: phyphor0@gmail.com


--- Comment #0 from phyphor0@gmail.com 2012-02-09 18:55:03 PST ---
One source file:

import std.stdio;
void main() {}


Compile with the following command line:

dmd -noboundscheck -inline -release -deps=temp.dep main.d

All arguments are needed, as is the import. main() is not.

Version 2.057

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 31, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7478



--- Comment #1 from Don <clugdbug@yahoo.com.au> 2012-03-30 17:14:49 PDT ---
It is crashing in AttribDeclaration::inlineScan(),

        for (size_t i = 0; i < d->dim; i++)
        {   Dsymbol *s = (*d)[i];
            s->inlineScan();  //   <---- crashes here

It isn't a null pointer, it seems to be an invalid vtable (memory corruption?)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 05, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7478


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|segfault(attrib.c)          |stack overflow compiling
                   |compiling with -deps        |with -deps -release -inline
                   |-release -inline            |(Windows only)


--- Comment #2 from Don <clugdbug@yahoo.com.au> 2012-04-05 06:15:31 PDT ---
I can reproduce this on Windows7, but not on Linux64.

This is the worst heisenbug I've ever seen. Although it's possible to reduce the test case a bit, the reduction makes no sense -- changing an unused list of anonymous enums from 9 to 8 items makes the bug go away, for example.

It seems to be either a stack overflow or an out of memory condition, because the faulting location jumps around if you make changes to the test case.

Worse, some changes don't just crash; they cause the windows command prompt to hang afterwards.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 14, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7478


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #4 from Don <clugdbug@yahoo.com.au> 2012-05-14 07:54:36 PDT ---
https://github.com/D-Programming-Language/dmd/pull/947

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 14, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7478



--- Comment #5 from Don <clugdbug@yahoo.com.au> 2012-05-14 07:55:23 PDT ---
Bug 6951 seems to be the same as this one.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 16, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7478



--- Comment #6 from github-bugzilla@puremagic.com 2012-05-15 19:55:43 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/e0739df44af7f459de82ad5582cf662dd036237d
Fix issue 7478 stack overflow compiling with -deps -release -inline
-noboundscheck

valgrind ftw!

https://github.com/D-Programming-Language/dmd/commit/c029f71d3eb0312205595c63559dff487d27bc29 Merge pull request #947 from donc/heisenbug7478

 7478 stack overflow compiling with -deps -release -inline -noboundscheck

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 16, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7478


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |spam@extrawurst.org


--- Comment #7 from Don <clugdbug@yahoo.com.au> 2012-05-15 21:39:08 PDT ---
*** Issue 6951 has been marked as a duplicate of this issue. ***

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