Bug 23327 – [ICE] SEGV in AssocArray!(Identifier, Dsymbol).AssocArray.opIndex(const(Identifier)) at src/dmd/root/aav.d:313

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-09-05T12:45:30Z
Last change time
2022-09-06T06:29:54Z
Keywords
pull
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2022-09-05T12:45:30Z
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
Comment #1 by dlang-bot — 2022-09-05T14:23:36Z
@ibuclaw created dlang/dmd pull request #14415 "fix Issue 23327 - [ICE] SEGV in AssocArray!(Identifier, Dsymbol).AssocArray.opIndex(const(Identifier)) at src/dmd/root/aav.d:313" fixing this issue: - fix Issue 23327 - [ICE] SEGV in AssocArray!(Identifier, Dsymbol).AssocArray.opIndex(const(Identifier)) at src/dmd/root/aav.d:313 https://github.com/dlang/dmd/pull/14415