[Bug 1501545] Re: Valgrind fails on rdrand when the cpu supports it (haswell)

ccontard ccontard at gmail.com
Thu Nov 12 14:31:43 UTC 2015


I also get the same error on Ubuntu Wily + Valgrind 3.11 + g++ 5.2

vex amd64->IR: unhandled instruction bytes: 0xF 0xC7 0xF0 0x89 0x6 0xF 0x42 0xC1
vex amd64->IR:   REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0
vex amd64->IR:   VEX=0 VEX.L=0 VEX.nVVVV=0x0 ESC=0F
vex amd64->IR:   PFX.66=0 PFX.F2=0 PFX.F3=0
==13334== valgrind: Unrecognised instruction at address 0x510dec5.
==13334==    at 0x510DEC5: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21)
==13334==    by 0x510E061: std::random_device::_M_getval() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21)
==13334==    by 0x477C8D: std::random_device::operator()() (random.h:1619)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to valgrind in Ubuntu.
https://bugs.launchpad.net/bugs/1501545

Title:
  Valgrind fails on rdrand when the cpu supports it (haswell)

Status in valgrind package in Ubuntu:
  Confirmed

Bug description:
  vex amd64->IR: unhandled instruction bytes: 0xF 0xC7 0xF0 0x89 0x6 0xF 0x42 0xC1
  vex amd64->IR: REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0
  vex amd64->IR: VEX=0 VEX.L=0 VEX.nVVVV=0x0 ESC=0F
  vex amd64->IR: PFX.66=0 PFX.F2=0 PFX.F3=0

  opcode "rdrand %eax"

  Need valgrind 1:3.11.0-1ubuntu1

  How to reproduce (need haswell or a cpu that supports rdrand)
  http://pastebin.ubuntu.com/12628142/
  g++ -std=c++14 test.cpp -o test
  valgrind ./test

  Bug also needs to be filed upstream

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/valgrind/+bug/1501545/+subscriptions



More information about the foundations-bugs mailing list