<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 --- - XRay crashes when rtdscp access is disabled"
href="https://llvm.org/bugs/show_bug.cgi?id=31756">31756</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>XRay crashes when rtdscp access is disabled
</td>
</tr>
<tr>
<th>Product</th>
<td>XRay
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>Runtime
</td>
</tr>
<tr>
<th>Assignee</th>
<td>dberris@google.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>simon.dardis@imgtec.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Some Linux configurations inhibit the use of rtdscp, resulting in an illegal
instruction exception at runtime.
Furthermore, the expected files: /sys/devices/system/cpu/cpu0/tsc_freq_khz and
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq are not present.
Machine:
Linux mipstest 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02)
x86_64 GNU/Linux
Test output:
FAIL: XRay-x86_64-linux :: TestCases/Linux/argv0-log-file-name.cc (32456 of
38389)
******************** TEST 'XRay-x86_64-linux ::
TestCases/Linux/argv0-log-file-name.cc' FAILED ********************
Script:
--
/home/snd-local/releases/release/rc1/Phase3/Release/llvmCore-4.0.0-rc1.obj/./bin/clang
--driver-mode=g++ -fxray-instrument -m64 -std=c++11
/home/snd-local/releases/release/rc1/llvm.src/projects/compiler-rt/test/xray/TestCases/Linux/argv0-log-file-name.cc
-o
/home/snd-local/releases/release/rc1/Phase3/Release/llvmCore-4.0.0-rc1.obj/projects/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Linux/Output/argv0-log-file-name.cc.tmp
/home/snd-local/releases/release/rc1/Phase3/Release/llvmCore-4.0.0-rc1.obj/projects/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Linux/Output/argv0-log-file-name.cc.tmp
<span class="quote">> xray.log.file.name 2>&1</span >
ls | FileCheck xray.log.file.name
rm xray-log.* xray.log.file.name
--
Exit Code: 132
Command Output (stderr):
--
/home/snd-local/releases/release/rc1/Phase3/Release/llvmCore-4.0.0-rc1.obj/projects/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Linux/Output/argv0-log-file-name.cc.script:
line 4: 31143 Illegal instruction
/home/snd-local/releases/release/rc1/Phase3/Release/llvmCore-4.0.0-rc1.obj/projects/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Linux/Output/argv0-log-file-name.cc.tmp
<span class="quote">> xray.log.file.name 2>&1</span >
--
********************
Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80
FAIL: XRay-x86_64-linux :: TestCases/Linux/fixedsize-logging.cc (32458 of
38389)
******************** TEST 'XRay-x86_64-linux ::
TestCases/Linux/fixedsize-logging.cc' FAILED ********************
Script:
--
/home/snd-local/releases/release/rc1/Phase3/Release/llvmCore-4.0.0-rc1.obj/./bin/clang
--driver-mode=g++ -fxray-instrument -m64 -std=c++11
/home/snd-local/releases/release/rc1/llvm.src/projects/compiler-rt/test/xray/TestCases/Linux/fixedsize-logging.cc
-o
/home/snd-local/releases/release/rc1/Phase3/Release/llvmCore-4.0.0-rc1.obj/projects/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Linux/Output/fixedsize-logging.cc.tmp
XRAY_OPTIONS="verbosity=1 xray_logfile_base=fixedsize-logging-"
/home/snd-local/releases/release/rc1/Phase3/Release/llvmCore-4.0.0-rc1.obj/projects/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Linux/Output/fixedsize-logging.cc.tmp
2>&1 | FileCheck
/home/snd-local/releases/release/rc1/llvm.src/projects/compiler-rt/test/xray/TestCases/Linux/fixedsize-logging.cc
rm fixedsize-logging-*
--
Exit Code: 1
Command Output (stderr):
--
/home/snd-local/releases/release/rc1/llvm.src/projects/compiler-rt/test/xray/TestCases/Linux/fixedsize-logging.cc:19:12:
error: expected string not found in input
// CHECK: foo() is always instrumented!
^
<stdin>:2:1: note: scanning from here
==31182==Unable to determine CPU frequency for TSC accounting.
^
<stdin>:2:44: note: possible intended match here
==31182==Unable to determine CPU frequency for TSC accounting.
Ideally, XRay should probe if possible to determine if rtdsc(p) can be used.</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>