Issue 24171 - [REG 2.100] Segfault compiling an empty ddoc file
Summary: [REG 2.100] Segfault compiling an empty ddoc file
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 regression
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2023-10-01 23:23 UTC by Iain Buclaw
Modified: 2023-11-01 22:39 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Iain Buclaw 2023-10-01 23:23:13 UTC
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
Comment 1 Dlang Bot 2023-10-01 23:48:40 UTC
@ibuclaw created dlang/dmd pull request #15644 "fix Issue 24171 - [REG 2.100] Segfault compiling an empty ddoc file" fixing this issue:

- fix Issue 24171 - [REG 2.100] Segfault compiling an empty ddoc file

https://github.com/dlang/dmd/pull/15644
Comment 2 Dlang Bot 2023-10-02 02:07:01 UTC
dlang/dmd pull request #15644 "fix Issue 24171 - [REG 2.100] Segfault compiling an empty ddoc file" was merged into stable:

- 3309ff99f09502fcb64178d9768e5cfd3f610965 by Iain Buclaw:
  fix Issue 24171 - [REG 2.100] Segfault compiling an empty ddoc file

https://github.com/dlang/dmd/pull/15644
Comment 3 Dlang Bot 2023-11-01 22:39:26 UTC
dlang/dmd pull request #15771 "merge stable" was merged into master:

- c40c8003ef5806374f60b3d60a68a2f18a638ede by Iain Buclaw:
  fix Issue 24171 - [REG 2.100] Segfault compiling an empty ddoc file (#15644)

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