D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 17306 - dmd segfault on package imports
Summary: dmd segfault on package imports
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 normal
Assignee: No Owner
URL:
Keywords: ice
Depends on:
Blocks:
 
Reported: 2017-04-08 11:51 UTC by Maksim Zholudev
Modified: 2020-03-21 03:56 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Maksim Zholudev 2017-04-08 11:51:18 UTC
Test:
a/root/fail.d:  import root.core;
b/root/core/base/package.d:  (empty)
b/root/core/package.d:  import root.core.base;

Compiler version:
DMD64 D Compiler v2.075.0-devel-522263965

Compilation command:
dmd a/root/fail.d -Ib

Output:
Segmentation fault

Backtrace:
#0  0x00000000005725fb in ScopeDsymbol::addAccessiblePackage(Package*, Prot) ()
#1  0x000000000054a888 in Import::semantic(Scope*) ()
#2  0x00000000005648b6 in Module::semantic(Scope*) ()
#3  0x000000000054a8db in Import::semantic(Scope*) ()
#4  0x00000000005648b6 in Module::semantic(Scope*) ()
#5  0x00000000005e37d0 in ddmd.mars.tryMain() ()
#6  0x00000000005e483f in D main ()
#7  0x0000000000732d80 in rt.dmain2._d_run_main() ()
#8  0x0000000000732ca8 in rt.dmain2._d_run_main() ()
#9  0x0000000000732d25 in rt.dmain2._d_run_main() ()
#10 0x0000000000732ca8 in rt.dmain2._d_run_main() ()
#11 0x0000000000732c14 in _d_run_main ()
#12 0x00000000005e4fe0 in main ()