<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 - Seg fault when running clang-format"
href="https://bugs.llvm.org/show_bug.cgi?id=37114">37114</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Seg fault when running clang-format
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>6.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</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>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>toli@harness.io
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>i get the following dump:
#0 0x0000000000424e64 PrintStackTraceSignalHandler(void*)
(/opt/clang/bin/clang-format+0x424e64)
#1 0x0000000000425146 SignalHandler(int) (/opt/clang/bin/clang-format+0x425146)
#2 0x00007faa6e276390 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
#3 0x00000000004342e4
clang::DiagnosticIDs::ProcessDiag(clang::DiagnosticsEngine&) const
(/opt/clang/bin/clang-format+0x4342e4)
#4 0x0000000000432e82 clang::DiagnosticsEngine::EmitCurrentDiagnostic(bool)
(/opt/clang/bin/clang-format+0x432e82)
#5 0x000000000048a91b clang::Rewriter::overwriteChangedFiles()
(/opt/clang/bin/clang-format+0x48a91b)
#6 0x0000000000408beb clang::format::format(llvm::StringRef)
(/opt/clang/bin/clang-format+0x408beb)
#7 0x0000000000406e85 main (/opt/clang/bin/clang-format+0x406e85)
#8 0x00007faa6d20e830 __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x20830)
#9 0x0000000000406949 _start (/opt/clang/bin/clang-format+0x406949)
xargs: /opt/clang/bin/clang-format: terminated by signal 11
this is while running on AWS EC2 instance
it's running on Amazon Linux AMI (ie centos)
this is on Java code</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>