October 01, 2023
https://issues.dlang.org/show_bug.cgi?id=24171

          Issue ID: 24171
           Summary: [REG 2.100] Segfault compiling an empty ddoc file
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: ibuclaw@gdcproject.org

Introduced by https://github.com/dlang/dmd/pull/13769

---
$ dmd empty.dd
Segmentation fault (core dumped)

Backtrace:
#0  __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:76
#1  0x0000555555961c68 in
_D3dmd3doc10gendocfileFCQw7dmodule6ModulexAaxPaCQBu9errorsink9ErrorSinkKSQCt6common9outbuffer9OutBufferZv
(outbuf=..., eSink=0x7ffff7b911f0,
    datetime=0x555555dd0ee8 <global+64> "Mon Oct  2 01:22:34 2023\n",
ddoctext=..., m=0x7ffff7b958f0) at src/dmd/doc.d:441
#2  0x00005555558ec59e in _D3dmd4main7tryMainFmPPxaKSQz7globals5ParamZi
(params=..., argv=0x7fffffffdac8, argc=3) at src/dmd/main.d:415
#3  0x00005555558ebc51 in _Dmain (_param_0=...) at src/dmd/main.d:133

--