<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 - [llvm-exegesis] segfault in llvm-exegesis"
href="https://bugs.llvm.org/show_bug.cgi?id=39576">39576</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[llvm-exegesis] segfault in llvm-exegesis
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</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>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>llvm-exegesis
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>schuett@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>clement.courbet@gmail.com, gchatelet@google.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Hi,
when running:
./llvm-exegesis -mode=latency -opcode-name=ADD64rr
I get a segfault. This seems to be independent of the arguments and I have been
running into this problem for a while now.
#0 0x00007ffff6c76d60 in std::string::data() const () from
/lib64/libstdc++.so.6
#1 0x000000000095f568 in StringRef (Str=<error reading variable: Cannot access
memory at address 0x1e0>, this=<optimized out>)
at /local/FOO/llvm/include/llvm/ADT/StringRef.h:96
#2 llvm::TargetMachine::getTargetCPU (this=0x0) at
/local/FOO/llvm/include/llvm/Target/TargetMachine.h:106
#3 0x000000000097ce2a in
llvm::exegesis::ExecutableFunction::ExecutableFunction(std::unique_ptr<llvm::LLVMTargetMachine,
std::default_delete<llvm::LLVMTargetMachine> >,
llvm::object::OwningBinary<llvm::object::ObjectFile>&&) (this=0x7fffffffdaf0,
TM=
std::unique_ptr<llvm::LLVMTargetMachine> containing 0x7fffffffdc40,
ObjectFileHolder=<unknown type in /local/FOO/clang/bin/llvm-exegesis, CU
0x466f33f, DIE 0x4778b6c>)
at /local/FOO/llvm/tools/llvm-exegesis/lib/Assembler.cpp:282
#4 0x000000000095ec01 in llvm::exegesis::BenchmarkRunner::runConfiguration
(this=0x36d4a80, BC=..., NumRepetitions=10000)
at /local/FOO/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp:126
#5 0x0000000000410c95 in llvm::exegesis::benchmarkMain () at
/local/FOO/llvm/tools/llvm-exegesis/llvm-exegesis.cpp:374
#6 0x0000000000411247 in main (Argc=3, Argv=0x7fffffffe148) at
/local/FOO/llvm/tools/llvm-exegesis/llvm-exegesis.cpp:455
This is a skylake server with CentOS 7.5. LLVM is a trunk build with debug.
Please let me now, if I you want me to provide more information.
Thanks,
Thorsten</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>