www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22121] New: [REG 2.097][ICE] Segmentation fault in in

https://issues.dlang.org/show_bug.cgi?id=22121

          Issue ID: 22121
           Summary: [REG 2.097][ICE] Segmentation fault in in
                    dmd.dsymbol.ScopeDsymbol.addAccessiblePackage
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

package1/module1.d:
---
module package1;
import package1.package2.package3;
---

package1/package2/package3/package.d:
---
module package1.package2.package3;
---

====================================
$ dmd package1/module1.d
Program received signal SIGSEGV, Segmentation fault.
0x00005555558e0cec in
dmd.dsymbol.ScopeDsymbol.addAccessiblePackage(dmd.dmodule.Package,
dmd.dsymbol.Visibility) (this=0x7ffff7439d70, visibility=..., p=0x0) at
src/dmd/dsymbol.d:1557
1557            if (pary.length <= p.tag)
(gdb) bt

dmd.dsymbol.ScopeDsymbol.addAccessiblePackage(dmd.dmodule.Package,
dmd.dsymbol.Visibility) (this=0x7ffff7439d70, visibility=..., p=0x0) at
src/dmd/dsymbol.d:1557

dmd.dmodule.Module.parseModule!(dmd.astcodegen.ASTCodegen).parseModule() (
    this=0x7ffff7439d70) at src/dmd/dmodule.d:1065

src/dmd/dmodule.d:768

dmd.identifier.Identifier[], dmd.identifier.Identifier) (ident=0x7ffff7b2a150,
packages=..., loc=...) at src/dmd/dmodule.d:609

sc=0x7ffff7b2a4b0)
    at src/dmd/dimport.d:198

sc=0x7ffff7b2a4b0)
    at src/dmd/dimport.d:225

prevsc=0x0)
    at src/dmd/dmodule.d:1223

dmd.globals.Param) (params=..., 
    argv=0x7fffffffdcd8, argc=2) at src/dmd/mars.d:553


--
Jul 13