Bug 15876 – various cases of SEGFAULT when formatting parser errors

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-04-04T23:23:52Z
Last change time
2020-03-21T03:56:38Z
Keywords
ice, pull
Assigned to
No Owner
Creator
Alex Parrill

Comments

Comment #0 by initrd.gz — 2016-04-04T23:23:52Z
Probably related to https://issues.dlang.org/show_bug.cgi?id=15855, though it apparently applies to more than just the for keyword. Example file contents (one file per line): o[{scope(x o[{template d(={for typeof){for p[{alias p(={alias Similar to the linked issue, DMD spits out some error messages and then terminates with a segfault. DMD v2.070.2
Comment #1 by ag0aep6g — 2016-04-05T05:04:53Z
(In reply to Alex Parrill from comment #0) > d(={for > typeof){for These two don't segfault anymore with git master (6199fd3).
Comment #2 by iamthewilsonator — 2018-11-24T11:18:49Z
none of these segfault anymore
Comment #3 by ag0aep6g — 2018-11-24T14:28:12Z
Reopening. I still get segfaults. Tested with git master (DMD64 D Compiler v2.083.0-326-g1e902fc61). Remember to test one line at a time, not all at once.
Comment #4 by b2.temp — 2018-11-24T15:44:58Z
Comment #5 by github-bugzilla — 2018-11-24T23:58:19Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/866c0a3f3ac21d506140b4806bb9134334683f21 fix issue 15876 - various cases of SEGFAULT when formatting parser errors https://github.com/dlang/dmd/commit/da15e2f2e21c7a81dea8022dfbe61d0bdec18258 Merge pull request #9007 from BBasile/hdrgen-unsafe-accesses fix issue 15876 - various cases of SEGFAULT when formatting parser errors merged-on-behalf-of: Nicholas Wilson <[email protected]>