Bug 23207 – dmd hangs compiling druntime/src/core/stdc/errno.c

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2022-06-23T04:09:02Z
Last change time
2022-06-23T08:53:00Z
Keywords
ImportC, pull
Assigned to
No Owner
Creator
Walter Bright

Comments

Comment #0 by bugzilla — 2022-06-23T04:09:02Z
The command: dmd druntime/src/core/stdc/errno.c -I -v -c hangs.
Comment #1 by bugzilla — 2022-06-23T04:10:41Z
It's hanging here: 0x000000000084dc28 in dmd.lexer.Lexer.nextDefineLine() (this=0x7fffffffddd0) at src/dmd/lexer.d:177 177 } (gdb) bt #0 0x000000000084dc28 in dmd.lexer.Lexer.nextDefineLine() (this=0x7fffffffddd0) at src/dmd/lexer.d:177 #1 0x00000000007f13ef in dmd.cparse() (this=0x7fffffffddd0) at src/dmd/cparse.d:5241 #2 0x00000000007e6609 in dmd.cparse() (this=0x7fffffffddd0) at src/dmd/cparse.d:116 #3 0x00000000006a078e in dmd.dmodule.Module() (this=0x7ffff7edf5b0) at src/dmd/dmodule.d:984 #4 0x000000000069ea85 in Module::parse() (this=0x7ffff7edf5b0) at src/dmd/dmodule.d:701 #5 0x00000000006279d8 in dmd.mars.tryMain() (params=..., argv=0x7fffffffeb38, argc=4) at src/dmd/mars.d:360 #6 0x0000000000629b5e in D main (_param_0=...) at src/dmd/mars.d:962
Comment #2 by boris2.9 — 2022-06-23T04:20:45Z
Just including stdio.h hangs on my system. test.c: ``` #include <stdio.h> ```
Comment #3 by dlang-bot — 2022-06-23T04:45:12Z
@WalterBright created dlang/dmd pull request #14241 "fix Issue 23207 - dmd hangs compiling druntime/src/core/stdc/errno.c" fixing this issue: - fix Issue 23207 - dmd hangs compiling druntime/src/core/stdc/errno.c https://github.com/dlang/dmd/pull/14241
Comment #4 by dlang-bot — 2022-06-23T08:53:00Z
dlang/dmd pull request #14241 "fix Issue 23207 - dmd hangs compiling druntime/src/core/stdc/errno.c" was merged into master: - 1464e30a4da3a39c6b9f3c6669aa8a051fed13ec by Walter Bright: fix Issue 23207 - dmd hangs compiling druntime/src/core/stdc/errno.c https://github.com/dlang/dmd/pull/14241