Bug 446669

Summary: vex amd64->IR: unhandled instruction bytes: 0x8F 0xEA 0xF8 0x10 0xED 0x7 0x20 0x0 0x0 0x48
Product: [Developer tools] valgrind Reporter: tastytea <kde>
Component: generalAssignee: Julian Seward <jseward>
Status: RESOLVED DUPLICATE    
Severity: normal CC: tom
Priority: NOR    
Version: 3.18.1   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description tastytea 2021-12-08 06:46:52 UTC
SUMMARY
***
I'm getting this error with most programs. I have berified it with grep, nheko, gcolor2, ranger and ncmpcpp. I do not get this error with echo, less and tail. 
***


STEPS TO REPRODUCE
1. Run `valgrind grep 'a' /etc/issue`
2. Observe crash

OBSERVED RESULT

==3596== Memcheck, a memory error detector
==3596== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==3596== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==3596== Command: grep a /etc/issue
==3596==
vex amd64->IR: unhandled instruction bytes: 0x8F 0xEA 0xF8 0x10 0xC9 0x3 0x1D 0x0 0x0 0xF3
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
==3596== valgrind: Unrecognised instruction at address 0x11cf93.
==3596==    at 0x11CF93: memset (string_fortified.h:59)
==3596==    by 0x11CF93: dfasyntax (dfa.c:4321)
==3596==    by 0x10E1D9: GEAcompile (dfasearch.c:199)
==3596==    by 0x10D565: main (grep.c:2954)
==3596== Your program just tried to execute an instruction that Valgrind
[…]
==3596== probably kill your program.
==3596==
==3596== Process terminating with default action of signal 4 (SIGILL): dumping core
==3596==  Illegal opcode at address 0x11CF93
==3596==    at 0x11CF93: memset (string_fortified.h:59)
==3596==    by 0x11CF93: dfasyntax (dfa.c:4321)
==3596==    by 0x10E1D9: GEAcompile (dfasearch.c:199)
==3596==    by 0x10D565: main (grep.c:2954)
==3596==
==3596== HEAP SUMMARY:
==3596==     in use at exit: 15,741 bytes in 70 blocks
==3596==   total heap usage: 86 allocs, 16 frees, 21,812 bytes allocated
==3596==
==3596== LEAK SUMMARY:
==3596==    definitely lost: 0 bytes in 0 blocks
==3596==    indirectly lost: 0 bytes in 0 blocks
==3596==      possibly lost: 0 bytes in 0 blocks
==3596==    still reachable: 15,741 bytes in 70 blocks
==3596==         suppressed: 0 bytes in 0 blocks
==3596== Rerun with --leak-check=full to see details of leaked memory
==3596==
==3596== For lists of detected and suppressed errors, rerun with: -s
==3596== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Gentoo Linux
KDE Plasma Version: n/a
KDE Frameworks Version: n/a
Qt Version: 5.15.2

ADDITIONAL INFORMATION
CPU information:
Vendor ID:               AuthenticAMD
  Model name:            AMD A10-9700 RADEON R7, 10 COMPUTE CORES 4C+6G
    CPU family:          21
    Model:               101
Comment 1 Tom Hughes 2021-12-08 07:07:57 UTC

*** This bug has been marked as a duplicate of bug 339596 ***