Thread overview
[Issue 20855] segfault when compiling large file
Mar 21, 2021
Iain Buclaw
[Issue 20855] stack overflow when compiling large file
Apr 09, 2021
Walter Bright
Apr 09, 2021
Dlang Bot
Apr 09, 2021
Walter Bright
Apr 20, 2021
Dlang Bot
May 22, 2020
https://issues.dlang.org/show_bug.cgi?id=20855

moonlightsentinel@disroot.org changed:

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

--- Comment #1 from moonlightsentinel@disroot.org ---
Seems to be a stack overflow in the optimizer:

(gdb) run test100k.d
Starting program: generated/linux/debug/64/dmd test100k.d

Program received signal SIGSEGV, Segmentation fault.
0x000000000850d7a7 in optelem(elem*, unsigned int) (e=0xa12eec0, goal=1)
    at /mnt/e/repos/Dlang/forks/dmd/src/dmd/backend/cgelem.d:5226
5226    private elem * optelem(elem *e, goal_t goal)

--
March 21, 2021
https://issues.dlang.org/show_bug.cgi?id=20855

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |backend
                 CC|                            |ibuclaw@gdcproject.org

--
April 09, 2021
https://issues.dlang.org/show_bug.cgi?id=20855

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com
            Summary|segfault when compiling     |stack overflow when
                   |large file                  |compiling large file

--
April 09, 2021
https://issues.dlang.org/show_bug.cgi?id=20855

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

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

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #12409 "fix Issue 20855 - stack overflow when compiling large file" fixing this issue:

- fix Issue 20855 - stack overflow when compiling large file

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

--
April 09, 2021
https://issues.dlang.org/show_bug.cgi?id=20855

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=6401

--
April 20, 2021
https://issues.dlang.org/show_bug.cgi?id=20855

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

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

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #12409 "fix Issue 20855 - stack overflow when compiling large file" was merged into master:

- cbbd0e87e4f1907a5c13e922652caf4dcc90fa3e by Walter Bright:
  fix Issue 20855 - stack overflow when compiling large file

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

--