Thread overview
[Issue 21091] [ICE] Segmentation fault: Module::importAll(Scope*) (this=0x0, prevsc=0x0) at dmd/dmodule.d:1124
[Issue 21091] [ICE] Segmentation fault: module mod is in file 'mod.d' which cannot be read
Jul 30, 2020
Iain Buclaw
Jul 30, 2020
Iain Buclaw
Aug 04, 2020
Dlang Bot
Aug 04, 2020
Dlang Bot
Aug 07, 2020
Boris Carvajal
July 30, 2020
https://issues.dlang.org/show_bug.cgi?id=21091

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
                 CC|                            |ibuclaw@gdcproject.org

--- Comment #1 from Iain Buclaw <ibuclaw@gdcproject.org> ---
Nearby code segfaults in the same location - any fix should include both.

struct NullAllocator
{
    import Ternary;
    Ternary owns() { }
}

--
July 30, 2020
https://issues.dlang.org/show_bug.cgi?id=21091

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[ICE] Segmentation fault:   |[ICE] Segmentation fault:
                   |module mod is in file       |Module::importAll(Scope*)
                   |'mod.d' which cannot be     |(this=0x0, prevsc=0x0) at
                   |read                        |dmd/dmodule.d:1124

--
July 30, 2020
https://issues.dlang.org/show_bug.cgi?id=21091

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |moonlightsentinel@disroot.o
                   |                            |rg
           Severity|critical                    |regression

--- Comment #2 from moonlightsentinel@disroot.org ---
Digger blames this commit:

commit f55dae671597445a29156d54977e63c52bb06d14
Author: Cristian Creteanu <cristian.creteanu@protonmail.com>
Date:   Fri Dec 13 01:19:02 2019 +0200

    dmd: Issue6592 - di header file created even if errors occur (#10635)

    * Moved header file generation at the end

    * Fix Issue 6592 - di header file created even if errors occur

--
August 04, 2020
https://issues.dlang.org/show_bug.cgi?id=21091

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@RazvanN7 created dlang/dmd pull request #11503 "Fix Issue 21091 - [ICE] Segmentation fault: Module::importAll(Scope*)…" fixing this issue:

- Fix Issue 21091 - [ICE] Segmentation fault: Module::importAll(Scope*)
(this=0x0, prevsc=0x0) at dmd/dmodule.d:1124

https://github.com/dlang/dmd/pull/11503

--
August 04, 2020
https://issues.dlang.org/show_bug.cgi?id=21091

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #11503 "Fix Issue 21091 - [ICE] Segmentation fault: Module::importAll(Scope*)…" was merged into master:

- be2c6f74873673442440359153ab735ea7c1e9e5 by RazvanN7:
  Fix Issue 21091 - [ICE] Segmentation fault: Module::importAll(Scope*)
(this=0x0, prevsc=0x0) at dmd/dmodule.d:1124

https://github.com/dlang/dmd/pull/11503

--
August 07, 2020
https://issues.dlang.org/show_bug.cgi?id=21091

--- Comment #5 from Boris Carvajal <boris2.9@gmail.com> ---
*** Issue 20703 has been marked as a duplicate of this issue. ***

--