https://bugs.kde.org/show_bug.cgi?id=385477

            Bug ID: 385477
           Summary: AMD64, sqlite3 - Unrecognised instruction: bextr
           Product: valgrind
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: NOR
         Component: vex
          Assignee: jsew...@acm.org
          Reporter: nuquaquara...@gmail.com
  Target Milestone: ---

Valgrind aborts with the following error message:

==13490== 
vex amd64->IR: unhandled instruction bytes: 0x8F 0xE9 0xF8 0x97 0x5 0x6D 0x4E
0xD 0x0 0xC5
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=NONE
vex amd64->IR:   PFX.66=0 PFX.F2=0 PFX.F3=0
==6034== valgrind: Unrecognised instruction at address 0x1a75fa.
==6034==    at 0x1A75FA: unixOpen (sqlite3.c:36160)
==6034==    by 0x1BE20E: sqlite3OsOpen (sqlite3.c:20823)
==6034==    by 0x1BE20E: sqlite3PagerOpen (sqlite3.c:52236)
==6034==    by 0x1BE20E: sqlite3BtreeOpen (sqlite3.c:61903)
==6034==    by 0x1D6374: openDatabase (sqlite3.c:144562)

According to objdump, that area corresponds to:

   9f5fa:       8f ea f8 10 c9 03 1d    bextr  $0x1d03,%rcx,%rcx
   9f601:       00 00 
   9f603:       f3 48 ab                rep stos %rax,%es:(%rdi)

The source code is sqlite3.c, v.3.20.1, "amalgamated" (
https://www.sqlite.org/download.html)

Compiled with:
gcc -c  -DNDEBUG -g -fno-omit-frame-pointer -Wall -O3 -march=native
-mtune=native -fno-stack-protector ../third-party/sqlite3/sqlite3.c -o
objects/third-party/sqlite3/sqlite3.o 

Platform: AMD FX-8350 on ArchLinux 64-bit, gcc 7.2, same problem with clang 5.0
Tip of valgrind, from git, at 856d45eb7e3661a61ace32be2cfa10bf198620c8, but the
problem is also present in at least v3.13.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to