Bug 233576

Summary: valgrind doesn't handle some i686 32-bit nops
Product: [Developer tools] valgrind Reporter: Jakub Jelinek <jakub>
Component: generalAssignee: Julian Seward <jseward>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 3.6 SVN   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: nops.c
valgrind-x86-nops.patch

Description Jakub Jelinek 2010-04-07 09:23:50 UTC
Created attachment 42556 [details]
nops.c

valgrind SIGILLs on some memset calls in Fedora 13 i686 glibc.
Attached is a testcase which covers hopefully all possible instructions emitted by gas for various CPU tuning for alignment nops - except for jmps), for -m64 it works just fine, for -m32 valgrind doesn't grok any of the nopw insns wiht more than one data16 prefix.
Comment 1 Jakub Jelinek 2010-04-07 09:24:40 UTC
Created attachment 42557 [details]
valgrind-x86-nops.patch

Fix.
Comment 2 Julian Seward 2010-05-03 23:59:06 UTC
Committed, vex r1978.  Thanks for the patch.