Bug 20151 – particular directory layout causes DMD to crash with an access violation

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-08-22T13:28:23Z
Last change time
2021-04-03T01:03:40Z
Keywords
ice, pull
Assigned to
No Owner
Creator
John Colvin

Comments

Comment #0 by john.loughran.colvin — 2019-08-22T13:28:23Z
Confirmed in 2.086.1 and 2.088-beta.1 C:\test>tree /f Folder PATH listing for volume Windows Volume serial number is 547E-DA40 C:. │ c.d │ └───c └───b └───a a.d C:\test>type c.d import c.b.a.a; C:\test>type c\b\a\a.d C:\test>C:\Users\jcolvin_sym\dlang\dmd-2.088.0-beta.1\dmd2\windows\bin\dmd.exe c.d -o- --- ERROR: This is a compiler bug. Please report it via https://issues.dlang.org/enter_bug.cgi with, preferably, a reduced, reproducible example and the information below. DustMite (https://github.com/CyberShadow/DustMite/wiki) can help with the reduction. --- DMD v2.088.0-beta.1-dirty predefs DigitalMars Windows CRuntime_DigitalMars CppRuntime_DigitalMars LittleEndian D_Version2 all D_InlineAsm D_InlineAsm_X86 X86 Win32 assert D_ModuleInfo D_Exceptions D_TypeInfo D_HardFloat binary C:\Users\jcolvin_sym\dlang\dmd-2.088.0-beta.1\dmd2\windows\bin\dmd.exe version v2.088.0-beta.1-dirty config C:\Users\jcolvin_sym\dlang\dmd-2.088.0-beta.1\dmd2\windows\bin\sc.ini DFLAGS -IC:\Users\jcolvin_sym\dlang\dmd-2.088.0-beta.1\dmd2\windows\bin\..\..\src\phobos -IC:\Users\jcolvin_sym\dlang\dmd-2.088.0-beta.1\dmd2\windows\bin\..\..\src\druntime\import --- object.Error@(0): Access Violation ---------------- 0x00489A8F 0x773D5EC9 in RtlAllocateHeap 0x0463C1F0 0x00750064 0x00650063 0x005C0064 0x1791B8D1 0x1600DE2D 0x0119251C
Comment #1 by ag0aep6g — 2019-08-22T14:27:29Z
Also happens in linux and in wine (32 bit Windows DMD).
Comment #2 by dlang-bot — 2019-12-17T02:52:28Z
@BorisCarvajal created dlang/dmd pull request #10675 "Fix Issue 20151 - particular directory layout causes DMD to crash" fixing this issue: - Fix Issue 20151 - particular directory layout causes DMD to crash https://github.com/dlang/dmd/pull/10675
Comment #3 by boris2.9 — 2019-12-18T07:10:39Z
*** Issue 20454 has been marked as a duplicate of this issue. ***
Comment #4 by dlang-bot — 2019-12-19T01:01:12Z
dlang/dmd pull request #10675 "Fix Issue 20151 - particular directory layout causes DMD to crash" was merged into stable: - 413121f71ad0f1e11770bec9b1106293c70b6979 by Boris Carvajal: Fix Issue 20151 - particular directory layout causes DMD to crash https://github.com/dlang/dmd/pull/10675
Comment #5 by dlang-bot — 2019-12-21T14:16:11Z
dlang/dmd pull request #10683 "Merge remote-tracking branch 'upstream/stable' into merge_stable" was merged into master: - cf3e6398eabf4a890fd9da4c52720c1274316255 by Boris Carvajal: Fix Issue 20151 - particular directory layout causes DMD to crash (#10675) Fix Issue 20151 - particular directory layout causes DMD to crash merged-on-behalf-of: Nicholas Wilson <[email protected]> https://github.com/dlang/dmd/pull/10683
Comment #6 by dlang-bot — 2021-04-03T01:03:40Z
dlang/dmd pull request #12350 "[dmd-cxx] More fixes for package import visibility" was merged into dmd-cxx: - 5793457b2e5c771486c200b2ef1dce10928658ae by Boris Carvajal: [dmd-cxx] Fix Issue 20151 - particular directory layout causes DMD to crash https://github.com/dlang/dmd/pull/12350