<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - Crash in clang::ASTReader::ReadSLocEntry"
href="https://llvm.org/bugs/show_bug.cgi?id=24842">24842</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crash in clang::ASTReader::ReadSLocEntry
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Keywords</th>
<td>regression
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>libclang
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>kalinichev.so.0@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>akyrtzi@gmail.com, klimek@google.com, llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>This a regression caused by:
r220966 | akirtzidis | 2014-10-31 20:44:32 +0400 (Fri, 31 Oct 2014) | 1 line
[libclang] Disable spell-checking and warnings during code-completion since
they are not needed.
Reverting that commit, fixes the issue.
No easy reproducible test case available, but here is a backtrace:
0x00007fff8ee08225 in clang::ASTReader::ReadSLocEntry (
this=0x7fff996ade30, ID=-24789)
at /Projects/llvm/tools/clang/lib/Serialization/ASTReader.cpp:1196
1196 F->SLocEntryCursor.JumpToBit(F->SLocEntryOffsets[ID -
F->SLocEntryBaseID]);
(gdb) bt
#0 0x00007fff8ee08225 in clang::ASTReader::ReadSLocEntry (
this=0x7fff996ade30, ID=-24789)
at /Projects/llvm/tools/clang/lib/Serialization/ASTReader.cpp:1196
#1 0x00007fff8ee0ae22 in non-virtual thunk to
clang::ASTReader::ReadSLocEntry(int) ()
at /Projects/llvm/tools/clang/lib/Serialization/ASTReader.cpp:1313
#2 0x00007fff8d4ccb09 in clang::SourceManager::loadSLocEntry (
this=0x7fff066e1710, Index=24787, Invalid=0x0)
at /Projects/llvm/tools/clang/lib/Basic/SourceManager.cpp:467
#3 0x00007fff8cfd60de in clang::SourceManager::getLoadedSLocEntry (
this=0x7fff066e1710, Index=24787, Invalid=0x0)
at /Projects/llvm/tools/clang/include/clang/Basic/SourceManager.h:1494
#4 0x00007fff8cfd5dff in clang::SourceManager::getLoadedSLocEntryByID (
this=0x7fff066e1710, ID=-24789, Invalid=0x0)
at /Projects/llvm/tools/clang/include/clang/Basic/SourceManager.h:1577
#5 0x00007fff8cfd5da9 in clang::SourceManager::getSLocEntryByID (
this=0x7fff066e1710, ID=-24789, Invalid=0x0)
at /Projects/llvm/tools/clang/include/clang/Basic/SourceManager.h:1571
#6 0x00007fff8cfd5d0b in clang::SourceManager::isOffsetInFileID (
this=0x7fff066e1710, FID=..., SLocOffset=2140763772)
at /Projects/llvm/tools/clang/include/clang/Basic/SourceManager.h:1604
#7 0x00007fff8d4cea43 in clang::SourceManager::getFileIDLoaded (
this=0x7fff066e1710, SLocOffset=2140763772)
at /Projects/llvm/tools/clang/lib/Basic/SourceManager.cpp:880
#8 0x00007fff8d4ce2b9 in clang::SourceManager::getFileIDSlow (
this=0x7fff066e1710, SLocOffset=2140763772)
at /Projects/llvm/tools/clang/lib/Basic/SourceManager.cpp:725
#9 0x00007fff8cfb3b49 in clang::SourceManager::getFileID (
this=0x7fff066e1710, SpellingLoc=...)
at /Projects/llvm/tools/clang/include/clang/Basic/SourceManager.h:968
#10 0x00007fff8cfa75f5 in clang::SourceManager::getDecomposedLoc (
this=0x7fff066e1710, Loc=...)
at /Projects/llvm/tools/clang/include/clang/Basic/SourceManager.h:1089
#11 0x00007fff8d019936 in clang_getFileLocation (location=...,
file=0x0, line=0x7fffc0e7bab4, column=0x7fffc0e7bab0,
offset=0x0)
at /Projects/llvm/tools/clang/tools/libclang/CXSourceLocation.cpp:374</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>