Thread overview
[Issue 8089] New: Importing package as module causes segfault
May 12, 2012
Jonathan M Davis
May 12, 2012
Jonathan M Davis
May 13, 2012
Walter Bright
Jul 21, 2012
Jonathan M Davis
May 12, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8089

           Summary: Importing package as module causes segfault
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: jmdavisProg@gmx.com


--- Comment #0 from Jonathan M Davis <jmdavisProg@gmx.com> 2012-05-11 23:48:23 PDT ---
I decide that I'd look at the possibility of implementing something along the lines of DIP 15 or 16 and ran into this little bit of fun. If you have the modules

prog.d
------
import wasmodule;

void main() {}
------

and

wasmodule/module1.d
-------------------
module wasmodule.module1;
-------------------

you get a segfault. If you change the first import to

import wasmodule.module1;

it's fine. Apparently the compiler can't handle trying to import a package as if it were module (obviously, it should error out in that case, but segfaulting is clearly not acceptable).

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


Jonathan M Davis <jmdavisProg@gmx.com> changed:

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


--- Comment #1 from Jonathan M Davis <jmdavisProg@gmx.com> 2012-05-12 01:30:48 PDT ---
https://github.com/D-Programming-Language/dmd/pull/942

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



--- Comment #2 from github-bugzilla@puremagic.com 2012-05-13 00:15:54 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/5445a3ca8bbfd873e6881a2a2af7eeafdd13087f Fix for issue# 8089.

https://github.com/D-Programming-Language/dmd/commit/740567441cd56ca28174a12dca1f3d01490bbd94 Merge pull request #942 from jmdavis/8089

Fix for issue# 8089.

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


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


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


Jonathan M Davis <jmdavisProg@gmx.com> changed:

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


--- Comment #3 from Jonathan M Davis <jmdavisProg@gmx.com> 2012-07-21 12:32:38 PDT ---
*** Issue 8404 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: -------