Bug 23816 – Typing invalid mnemonic in asm{} block segfaults

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2023-03-30T11:05:28Z
Last change time
2023-05-01T19:33:43Z
Keywords
pull
Assigned to
No Owner
Creator
naydef

Comments

Comment #0 by naydef — 2023-03-30T11:05:28Z
According to run.dlang.io, issue introduced in DMD 2.102.1 Code: --------------------------------------- void main() { asm { NOP; } } --------------------------------------- Result (DUB with DMD 2.102.2 Linux): Error /home/ndf/dlang/dmd-2.102.2/linux/bin64/dmd failed with exit code -11.
Comment #1 by naydef — 2023-03-30T13:04:12Z
The compiler seemingly fails with this message: ---------------------------------------- dmd: src/dmd/backend/ptrntab.d:5844: Assertion `array overflow' failed. ---------------------------------------- Digger blames: ---------------------------------------- digger: 5b4d3c47e26c1e32cd5425f31ac390f992ac34f9 is the first bad commit commit 5b4d3c47e26c1e32cd5425f31ac390f992ac34f9 Author: Walter Bright <[email protected]> Date: Thu Oct 13 18:10:22 2022 -0700 dmd: remove potential overflow from binary search (#14556) ----------------------------------------
Comment #2 by dlang-bot — 2023-03-31T12:24:37Z
@RazvanN7 created dlang/dmd pull request #15060 "Fix Issue 23816 - Typing invalid mnemonic in asm{} block segfaults" fixing this issue: - Fix Issue 23816 - Typing invalid mnemonic in asm{} block segfaults https://github.com/dlang/dmd/pull/15060
Comment #3 by dlang-bot — 2023-04-04T08:36:04Z
dlang/dmd pull request #15060 "Fix Issue 23816 - Typing invalid mnemonic in asm{} block segfaults" was merged into stable: - 1a3eb0ea5761fdc249ec5e765d1a3160ed49581b by RazvanN7: Fix Issue 23816 - Typing invalid mnemonic in asm{} block segfaults https://github.com/dlang/dmd/pull/15060
Comment #4 by dlang-bot — 2023-05-01T19:33:43Z
dlang/dmd pull request #15156 "merge stable" was merged into master: - b2a24bb959d521d367d9b26b6a67683a3ce480d1 by Razvan Nitu: Fix Issue 23816 - Typing invalid mnemonic in asm{} block segfaults (#15060) https://github.com/dlang/dmd/pull/15156