Thread overview
[Issue 9526] New: ICE when compiling project with unittests
Feb 17, 2013
Denis Shelomovskij
Feb 17, 2013
Denis Shelomovskij
Feb 17, 2013
Kenji Hara
Feb 17, 2013
Denis Shelomovskij
Feb 17, 2013
Maxim Fomin
Feb 17, 2013
Maxim Fomin
Feb 18, 2013
Denis Shelomovskij
Feb 18, 2013
Maxim Fomin
Feb 18, 2013
Kenji Hara
February 17, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9526

           Summary: ICE when compiling project with unittests
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: verylonglogin.reg@gmail.com


--- Comment #0 from Denis Shelomovskij <verylonglogin.reg@gmail.com> 2013-02-17 13:15:44 MSK ---
Another unreducable regression: dmd fails to compile this project with unittest enabled as an unhandled exception (on Windwos) is thrown in its entrails: https://github.com/denis-sh/phobos-additions

To be precise, this is the project commit on which dmd fails this way: df789da96db5c707dca27b81b285ea8861a0fb98

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 17, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9526



--- Comment #1 from Denis Shelomovskij <verylonglogin.reg@gmail.com> 2013-02-17 13:17:48 MSK ---
And yes, this project used to compile in 2.061.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 17, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9526



--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2013-02-17 03:33:04 PST ---
Is this a dup of bug9525?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 17, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9526



--- Comment #3 from Denis Shelomovskij <verylonglogin.reg@gmail.com> 2013-02-17 19:12:34 MSK ---
(In reply to comment #2)
> Is this a dup of bug9525?

Nop. This is another, really nasty, one. No messages, no errors - just dmd crash.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 17, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9526


Maxim Fomin <maxim@maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxim@maxim-fomin.ru


--- Comment #4 from Maxim Fomin <maxim@maxim-fomin.ru> 2013-02-17 09:16:50 PST ---
That's because in func.c void markAsNeedingClosure() doesn't check data when
loops though the list.

Can you test this commit https://github.com/mxfm/dmd/commit/f04bba02261b59a033495cf090711bf0a08dd64e ?

I compiled your code on linux with command:
dmd unstd/array.d unstd/lifetime.d unstd/generictuple.d unstd/math.d
unstd/multidimensionalarray.d unstd/templates.d unstd/traits.d unstd/typecons.d
unittest.d -unittest -version=unittestBuild

Commit at least fixes segmentation fault for my D environment. Judging by visual D project files, you are compiling on windows and I cannot test dmd on windows.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 17, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9526


Maxim Fomin <maxim@maxim-fomin.ru> changed:

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


--- Comment #5 from Maxim Fomin <maxim@maxim-fomin.ru> 2013-02-17 10:31:15 PST ---
https://github.com/D-Programming-Language/dmd/pull/1671

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



--- Comment #6 from Denis Shelomovskij <verylonglogin.reg@gmail.com> 2013-02-18 09:52:38 MSK ---
(In reply to comment #4)
> That's because in func.c void markAsNeedingClosure() doesn't check data when
> loops though the list.
> 
> Can you test this commit https://github.com/mxfm/dmd/commit/f04bba02261b59a033495cf090711bf0a08dd64e ?
> 
> ...

Thanks a lot! Your change does fix dmd crash on Windows too.

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



--- Comment #7 from Maxim Fomin <maxim@maxim-fomin.ru> 2013-02-18 00:21:49 PST ---
(In reply to comment #5)
> https://github.com/D-Programming-Language/dmd/pull/1671

Moved to https://github.com/D-Programming-Language/dmd/pull/1675

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



--- Comment #8 from github-bugzilla@puremagic.com 2013-02-18 05:42:43 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/fbe42da8b6321c925ca845f95c54d2fe594f6a70 Issue 9526 - ICE when compiling project with unittests

https://github.com/D-Programming-Language/dmd/commit/792081a141e3a498e53f4eb73a48997726bc7dbd Merge pull request #1675 from mxfm/bug9526

Issue 9526 - ICE when compiling project with unittests

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


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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