<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_getLocation / nullptr in translateSourceLocation/getSourceManager" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24275&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=ogUL2FA_FIFnetWXm_voE3M4mrqmkFhO1aXnCnC6BDI&s=2i1lSQ05bimESy1oREeYiA5CB4QXEJ6_610fvRA0Y4g&e=">24275</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>crash in clang_getLocation / nullptr in translateSourceLocation/getSourceManager
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.7
</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>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>mail@milianw.de
</td>
</tr>
<tr>
<th>CC</th>
<td>klimek@google.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>In KDevelop code I just encountered this crash, which seems to be due to a
nullptr dereference in translateSourceLocation/getSourceManager.
[KCrash Handler]
#6 getSourceManager (this=0x0) at
/home/milian/projects/src/clang/include/clang/AST/ASTContext.h:494
#7 translateSourceLocation (Context=..., Loc=...) at
/home/milian/projects/src/clang/tools/libclang/CXSourceLocation.h:43
#8 clang_getLocation (TU=<optimized out>, file=0x7f92a4a2df60, line=1,
column=1) at
/home/milian/projects/src/clang/tools/libclang/CXSourceLocation.cpp:147
#9 0x00007f9372d9e0fc in (anonymous namespace)::isInsideComment
(unit=0x7f92ba0b5d20, file=0x7f92a4a2df60, position=...) at
/home/milian/projects/kf5/src/playground/devtools/plugins/kdev-clang/codecompletion/context.cpp:311
#10 0x00007f9372d9df59 in ClangCodeCompletionContext::isValidPosition
(this=0x7f936c001d10, unit=0x7f92ba0b5d20, file=0x7f92a4a2df60) at
/home/milian/projects/kf5/src/playground/devtools/plugins/kdev-clang/codecompletion/context.cpp:541
...</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>