www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9526] New: ICE when compiling project with unittests

reply d-bugmail puremagic.com writes:
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



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: -------
Feb 17 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9526




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: -------
Feb 17 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9526




Is this a dup of bug9525?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 17 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9526




19:12:34 MSK ---

 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: -------
Feb 17 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
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



---
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: -------
Feb 17 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9526


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

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



---
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: -------
Feb 17 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9526




09:52:38 MSK ---

 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: -------
Feb 17 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9526




---

 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: -------
Feb 18 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9526




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


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: -------
Feb 18 2013
prev sibling parent d-bugmail puremagic.com writes:
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: -------
Feb 18 2013