[Issue 23327] New: [ICE] SEGV in AssocArray!(Identifier, Dsymbol).AssocArray.opIndex(const(Identifier)) at src/dmd/root/aav.d:313
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 5 12:45:30 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23327
Issue ID: 23327
Summary: [ICE] SEGV in AssocArray!(Identifier,
Dsymbol).AssocArray.opIndex(const(Identifier)) at
src/dmd/root/aav.d:313
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ibuclaw at gdcproject.org
Only need two files to reproduce, including third so this can just be
copy-pasted into the testsuite as-is (replace NNNNN with the issue number of
this report).
testNNNNN.d
---
import imports.formatNNNNN;
---
imports/formatNNNNN.d
---
module imports.formatNNNNN;
import imports.formatNNNNN.write;
immutable(string) formatNNNNN() { }
import imports.formatNNNNN.internal.write;
---
imports/formatNNNNN/write.d
---
// empty file
---
(gdb) bt
#0 0x0000555555ac3fec in dmd.root.aav.AssocArray!(dmd.identifier.Identifier,
dmd.dsymbol.Dsymbol).AssocArray.opIndex(const(dmd.identifier.Identifier))
(this=..., key=0x7ffff7ba3a80)
at src/dmd/root/aav.d:313
#1 0x000055555593e180 in DsymbolTable::lookup(Identifier const*) (this=0x0,
ident=0x7ffff7ba3a80)
at src/dmd/dsymbol.d:2350
#2 0x0000555555901bea in
dmd.dimport.Import.addPackageAccess(dmd.dsymbol.ScopeDsymbol) (
this=0x7ffff72bf020, scopesym=0x7ffff72be6e0) at src/dmd/dimport.d:268
#3 0x0000555555901b1a in Import::importAll(Scope*) (this=0x7ffff72bf020,
sc=0x7ffff72bf320)
at src/dmd/dimport.d:249
#4 0x0000555555920817 in Module::importAll(Scope*) (this=0x7ffff72be6e0,
prevsc=0x0)
at src/dmd/dmodule.d:1187
#5 0x0000555555901a5f in Import::importAll(Scope*) (this=0x7ffff7b73910,
sc=0x7ffff7b73c10)
at src/dmd/dimport.d:240
#6 0x0000555555920817 in Module::importAll(Scope*) (this=0x7ffff7b73600,
prevsc=0x0)
at src/dmd/dmodule.d:1187
#7 0x00005555558a8637 in dmd.mars.tryMain(ulong, const(char)**, ref
dmd.globals.Param) (params=...,
argv=0x7fffffffdbf8, argc=2) at src/dmd/mars.d:428
#8 0x00005555558aa4f2 in D main (_param_0=...) at src/dmd/mars.d:960
--
More information about the Digitalmars-d-bugs
mailing list