[Issue 22121] New: [REG 2.097][ICE] Segmentation fault in in dmd.dsymbol.ScopeDsymbol.addAccessiblePackage
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jul 13 10:06:46 UTC 2021
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 at puremagic.com
Reporter: ibuclaw at 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
#0 0x00005555558e0cec in
dmd.dsymbol.ScopeDsymbol.addAccessiblePackage(dmd.dmodule.Package,
dmd.dsymbol.Visibility) (this=0x7ffff7439d70, visibility=..., p=0x0) at
src/dmd/dsymbol.d:1557
#1 0x00005555558c6a7b in
dmd.dmodule.Module.parseModule!(dmd.astcodegen.ASTCodegen).parseModule() (
this=0x7ffff7439d70) at src/dmd/dmodule.d:1065
#2 0x00005555558c4c01 in Module::parse() (this=0x7ffff7439d70) at
src/dmd/dmodule.d:768
#3 0x00005555558c44a8 in dmd.dmodule.Module.load(dmd.globals.Loc,
dmd.identifier.Identifier[], dmd.identifier.Identifier) (ident=0x7ffff7b2a150,
packages=..., loc=...) at src/dmd/dmodule.d:609
#4 0x00005555558a69f9 in Import::load(Scope*) (this=0x7ffff7b2a170,
sc=0x7ffff7b2a4b0)
at src/dmd/dimport.d:198
#5 0x00005555558a6b29 in Import::importAll(Scope*) (this=0x7ffff7b2a170,
sc=0x7ffff7b2a4b0)
at src/dmd/dimport.d:225
#6 0x00005555558c4ed7 in Module::importAll(Scope*) (this=0x7ffff7b28e20,
prevsc=0x0)
at src/dmd/dmodule.d:1223
#7 0x0000555555852c1b in dmd.mars.tryMain(ulong, const(char)**, ref
dmd.globals.Param) (params=...,
argv=0x7fffffffdcd8, argc=2) at src/dmd/mars.d:553
#8 0x0000555555854a29 in D main (_param_0=...) at src/dmd/mars.d:1045
--
More information about the Digitalmars-d-bugs
mailing list