Thread overview
[Issue 11136] New: ICE on incorrect module declaration
Sep 28, 2013
Andrej Mitrovic
Sep 28, 2013
Andrej Mitrovic
Oct 01, 2013
Walter Bright
Oct 01, 2013
Walter Bright
Oct 02, 2013
Kenji Hara
September 28, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11136

           Summary: ICE on incorrect module declaration
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: andrej.mitrovich@gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-09-28 04:43:14 PDT ---
./foo.d:

-----
module foo;
-----

./bar.d:

-----
module foo.bar;  // note: should be 'bar'
-----

$ dmd foo.d bar.d

DMD crashes. Stack trace:

0018f950 00438815 image00400000!_aaGet+0xa
[C:\dmd-git\dmd2\src\dmd\src\root\aav.c @ 65]
0018f974 00407300 image00400000!DsymbolTable::insert+0x1f
[C:\dmd-git\dmd2\src\dmd\src\dsymbol.c @ 1501]
0018fab4 00404f35 image00400000!Module::parse+0x7ed
[C:\dmd-git\dmd2\src\dmd\src\module.c @ 574]
0018ff0c 00405d11 image00400000!tryMain+0x27fa
[C:\dmd-git\dmd2\src\dmd\src\mars.c @ 1477]
0018ff48 0057c24d image00400000!main+0x43 [C:\dmd-git\dmd2\src\dmd\src\mars.c @
1803]

Only tested on Win7.

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



--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-09-28 04:43:31 PDT ---
Tested with 2.064 git-head.

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


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2013-10-01 15:01:47 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2606

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


Walter Bright <bugzilla@digitalmars.com> changed:

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


--- Comment #3 from Walter Bright <bugzilla@digitalmars.com> 2013-10-01 15:03:54 PDT ---
*** Issue 10370 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: -------
October 02, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11136



--- Comment #4 from github-bugzilla@puremagic.com 2013-10-01 19:25:47 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/483ecc2815b4504bd4e30af2156957450d985307 fix Issue 11136 - ICE on incorrect module declaration

https://github.com/D-Programming-Language/dmd/commit/bd75cde6cbd43bffb9f2bf3b7fa07862d2f7d598 Merge pull request #2606 from WalterBright/fix11136

fix Issue 11136 - ICE on incorrect module declaration

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


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

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


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