Jump to page: 1 2
Thread overview
[Issue 6951] New: dependency parameter (-deps) crashes dmd in release build
Nov 15, 2011
Stephan Dilly
Nov 15, 2011
Stephan Dilly
Nov 15, 2011
Stephan Dilly
Nov 16, 2011
Denis
Dec 13, 2011
yebblies
Dec 15, 2011
Adrian Veith
Dec 18, 2011
Vladimir Panteleev
Dec 30, 2011
Stephan Dilly
Dec 30, 2011
Stephan Dilly
Dec 30, 2011
Stephan Dilly
Dec 30, 2011
Stephan Dilly
Apr 03, 2012
Don
May 16, 2012
Don
November 15, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6951

           Summary: dependency parameter (-deps) crashes dmd in release
                    build
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: spam@extrawurst.org


--- Comment #0 from Stephan Dilly <spam@extrawurst.org> 2011-11-15 01:07:22 PST ---
Created an attachment (id=1044)
code to crash dmd

try to build the attached main.d using this cmd line:

dmd main.d -release -inline -O -noboundscheck -deps=main.obj.dep

this crashes dmd in version 2.056.

this is especially bad because visualD automatically attaches the -deps parameter to dmd when building a project.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 15, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6951



--- Comment #1 from Stephan Dilly <spam@extrawurst.org> 2011-11-15 01:08:44 PST ---
and of course i know that it imports foo and i did not attach foo.d but thats because its not necessary to reproduce the crash...

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 15, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6951



--- Comment #2 from Stephan Dilly <spam@extrawurst.org> 2011-11-15 01:26:33 PST ---
The following code seems to cause a related issue, i dont know. building it
with:
dmd main.d -release -O -inline -noboundscheck -deps=main.dep

gives: "Assertion failure: 'tdtypes.dim == ti->tdtypes.dim' on line 3928 in file 'template.c'"

[CODE]
module main;

import std.stdio;

struct Test
{
    //int a;

    void foo()
    {
    //    if(&this != null)
    //        a = 2;
    }
}

void main()
{
    Test* t = new Test();

    t.foo();

    t = null;

    t.foo();
}
[/CODE]

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


Denis <verylonglogin.reg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |verylonglogin.reg@gmail.com


--- Comment #3 from Denis <verylonglogin.reg@gmail.com> 2011-11-16 13:07:44 MSK ---
A bit reduced case (no -O needed, smaller user code file (but a lot of library
code is still imported))

main.d:
---
import std.math;
---

Command line for dmd 2.056:
dmd main.d -release -inline -noboundscheck -deps=main.dep

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 13, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6951


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies@gmail.com


--- Comment #4 from yebblies <yebblies@gmail.com> 2011-12-13 17:55:03 EST ---
Can't reproduce with dmd 2.057 head.  Is it still broken for you with the latest version?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 15, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6951



--- Comment #5 from Adrian Veith <adrian@veith-system.de> 2011-12-15 14:21:52 PST ---
Created an attachment (id=1053)
example code how to crash dmd

the crash seems only to happen if both switches -noboundscheck and
-deps="bug.dep" are used. if you omit one of them
the crash wont show. The command line I used is contained in the bug.bat

I have included the module btree.d witch is not referenced by the code in main.d, but compiled with main.d on the same command line. Without the module in the command line I can't reproduce the crash.

if you comment out the first writeln("Hello D-World!") in main() - no
crash

if you comment out the other two writeln(..) in main() - no crash

the code in main.d is totally unrelated to the code in btree.d, but there must be something in btree.d which causes the crash.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 18, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6951


Vladimir Panteleev <thecybershadow@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow@gmail.com


--- Comment #6 from Vladimir Panteleev <thecybershadow@gmail.com> 2011-12-17 17:35:22 PST ---
bug.bat runs without problem with v2.057 on my machine.

Perhaps you can reduce a minimal test case using DustMite?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 30, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6951



--- Comment #7 from Stephan Dilly <spam@extrawurst.org> 2011-12-30 03:34:38 PST ---
yeah with those given test cases i can't reproduce it either but with huge include folders that i add via -I parameter the -deps parameter still crashes

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 30, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6951


Stephan Dilly <spam@extrawurst.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #1044|0                           |1
        is obsolete|                            |
   Attachment #1053|0                           |1
        is obsolete|                            |


--- Comment #8 from Stephan Dilly <spam@extrawurst.org> 2011-12-30 04:18:45 PST ---
Created an attachment (id=1061)
testcase for dmd2057

so i found a small testcase to reproduce the crash in current dmd 2057. see new attachment

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 30, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6951


Stephan Dilly <spam@extrawurst.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #1061|0                           |1
        is obsolete|                            |


--- Comment #9 from Stephan Dilly <spam@extrawurst.org> 2011-12-30 04:20:45 PST ---
Created an attachment (id=1062)
testcase for dmd2057

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
« First   ‹ Prev
1 2