Bug 15864 – chmgen triggers exception in std.regex

Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2016-04-02T11:51:00Z
Last change time
2016-04-16T08:02:29Z
Keywords
pull
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2016-04-02T11:51:30Z
chmgen Processing 32-64-portability.html Error while processing file: ./32-64-portability.html core.exception.AssertError@std\regex\internal\parser.d(1487): Assertion failure ---------------- 0x004460BB in _d_assert 0x004206AD in void std.regex.internal.parser.optimize!(char).optimize(ref std.regex.internal.ir.Regex!(char).Regex) at C:\Users\vagr ant\clones\dmd\src\..\..\phobos\std\regex\internal\parser.d(1533) 0x0041D647 in @trusted void std.regex.internal.parser.lightPostprocess!(char).lightPostprocess(ref std.regex.internal.ir.Regex!(char ).Regex) at C:\Users\vagrant\clones\dmd\src\..\..\phobos\std\regex\internal\parser.d(1444) 0x0041D172 in @safe std.regex.internal.ir.Regex!(char).Regex std.regex.internal.parser.makeRegex!(immutable(char)[]).makeRegex(std.regex.internal.parser.Parser!(immutable(char)[]).Parser) at C:\Users\vagrant\clones\dmd\src\..\..\phobos\std\regex\internal\parser.d(33) 0x0041272C in @property @safe std.regex.internal.ir.Regex!(char).Regex std.regex.internal.parser.Parser!(immutable(char)[]).Parser.program() at C:\Users\vagrant\clones\dmd\src\..\..\phobos\std\regex\internal\parser.d(1370) 0x0040E25C in @safe std.regex.internal.ir.Regex!(char).Regex std.regex.regexImpl!(immutable(char)[]).regexImpl(immutable(char)[], const(char)[]) at C:\Users\vagrant\clones\dmd\src\..\..\phobos\std\regex\package.d(326) 0x0042116B in D3std10functional114__T7memoizeS95 at C:\Users\vagrant\clones\dmd\src\..\..\phobos\std\functional.d(1039) 0x0040E205 in @trusted std.regex.internal.ir.Regex!(char).Regex std.regex.regex!(immutable(char)[]).regex(immutable(char)[], const(char)[]) at C:\Users\vagrant\clones\dmd\src\..\..\phobos\std\regex\package.d(318) 0x004337EA in D6chmgen106__T2reVAyaa43_283c6120283f3a283f3a5c772b3d5c225b5e225d2a5c22293f5c732a292a687265663dEE1BFCF2FC6C71F56EF1636FA25862EC at C:\Users\vagrant\clones\dlang.org\chmgen.d(497) 0x00402A9A in _Dmain at C:\Users\vagrant\clones\dlang.org\chmgen.d(122) Happens w/ dmd 2.070.2.
Comment #1 by dmitry.olsh — 2016-04-02T14:39:08Z
Would love to have regex pattern as test case.
Comment #2 by dmitry.olsh — 2016-04-03T07:53:24Z
(In reply to Dmitry Olshansky from comment #1) > Would love to have regex pattern as test case. Or at least link to chmgen and related command line.
Comment #3 by code — 2016-04-05T22:45:26Z
Comment #4 by dmitry.olsh — 2016-04-10T17:16:55Z
Comment #5 by dmitry.olsh — 2016-04-10T19:37:12Z
Comment #6 by github-bugzilla — 2016-04-16T04:41:31Z
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/25d81e662dda16d43fecfec1e0f9e4026ee5ba82 Fix issue 15864 - chmgen triggers exception in std.regex https://github.com/dlang/phobos/commit/cf48dc32e220c80bd93e469d427e9bce8d2a26fb Merge pull request #4180 from DmitryOlshansky/fix-issue15864 Fix issue 15864 - chmgen triggers exception in std.regex