<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Assertion failed: Index >= End && "Unexpected parser error.""
href="https://bugs.llvm.org/show_bug.cgi?id=47604">47604</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failed: Index >= End && "Unexpected parser error."
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Support Libraries
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>drivehappy@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=23990" name="attach_23990" title="Response file that contains '-Xclang' argument.">attachment 23990</a> <a href="attachment.cgi?id=23990&action=edit" title="Response file that contains '-Xclang' argument.">[details]</a></span>
Response file that contains '-Xclang' argument.
The following assertion is firing when running clang-cl under Windows with a
response file that includes '-Xclang' arguments.
Assertion failed: Index >= End && "Unexpected parser error.", file
C:\src\llvm_package_6923b0a7\llvm-project\llvm\lib\Option\OptTable.cpp, line
482
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: clang-cl @test.rsp
#0 0x00007ff774a4e716 C:\Program Files\LLVM\bin\clang-cl.exe 0x212e716
(C:\Program Files\LLVM\bin\clang-cl.exe+0x212e716)
#1 0x00007ff774a4e716
#2 0x00007ff774a4e716 (C:\Program Files\LLVM\bin\clang-cl.exe+0x212e716)
#3 0x00007ffa13801891 (C:\WINDOWS\System32\ucrtbase.dll+0x71891)
#4 0x00007ffa13802861 (C:\WINDOWS\System32\ucrtbase.dll+0x72861)
#5 0x00007ffa1380427e (C:\WINDOWS\System32\ucrtbase.dll+0x7427e)
#6 0x00007ffa13804175 C:\Program Files\LLVM\bin\clang-cl.exe 0x1eb1372
C:\Program Files\LLVM\bin\clang-cl.exe 0x347d
#7 0x00007ffa13804175 C:\Program Files\LLVM\bin\clang-cl.exe 0x4c7cfa0
(C:\WINDOWS\System32\ucrtbase.dll+0x74175)
#8 0x00007ffa13804175
#9 0x00007ffa13804175 (C:\WINDOWS\System32\ucrtbase.dll+0x74175)
0x00007FF774A4E716 (0x0000C338C19A312B 0x000000389318E270
0x0000000000000016 0x00007FF774A4E710)
0x00007FFA13801891 (0x0000000000000001 0x00007FF700000000
0x0000000000000000 0x000000389318E240), raise() + 0x1E1 bytes(s)
0x00007FFA13802861 (0x0002000000000003 0x0000022C00000003
0x00007FFA1385DE60 0x00007FF778F38C24), abort() + 0x31 bytes(s)
0x00007FFA1380427E (0x0000022CCF753490 0x00007FF7747D4701
0x0000022CCF7A6BA0 0x00000000000001E2), _get_wpgmptr() + 0x195E bytes(s)
0x00007FFA13804175 (0x00000000000001E2 0x00007FF778F38C24
0x0000000000000002 0x00000000000000A3), _get_wpgmptr() + 0x1855 bytes(s)
0x00007FFA13804501 (0x00007FF7775A0F00 0x00007FF7775A13A2
0x000000389318EDE0 0x00007FF7775A0F00), _wassert() + 0x71 bytes(s)
0x00007FF7747D1372 (0x000000000000006B 0x0000000000000000
0x0000022CCF72A160 0x0000022CCF72A150)
0x00007FF77292347D (0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000)
0x00007FF77759CFA0 (0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000)
0x00007FFA14EA6FD4 (0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000), BaseThreadInitThunk() + 0x14 bytes(s)
0x00007FFA1587CEC1 (0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000), RtlUserThreadStart() + 0x21 bytes(s)
I suspect this was caused by a recent refactoring change:
<a href="https://reviews.llvm.org/D83530">https://reviews.llvm.org/D83530</a>
Note: There appears there is a comment referring a FIXME for "@" support,
unknown if it's related:
<a href="https://github.com/llvm/llvm-project/blob/f8a29b17/llvm/lib/Option/OptTable.cpp#L454">https://github.com/llvm/llvm-project/blob/f8a29b17/llvm/lib/Option/OptTable.cpp#L454</a>
This occurred running Clang version 12.0 from the Windows snapshot build
provided from here: <a href="http://llvm.org/builds/">http://llvm.org/builds/</a> (built against commit 6923b0a7 - 28
Aug 2020)
I've attached a slimmed down response file that produces the assertion, which
can be run: `clang-cl @test.rsp` (this points to building sqlite3.c, however it
appears the source file present on the filesystem isn't necessary to trigger
the assertion).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>