Bug 233576 - valgrind doesn't handle some i686 32-bit nops
Summary: valgrind doesn't handle some i686 32-bit nops
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: 3.6 SVN
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-07 09:23 UTC by Jakub Jelinek
Modified: 2010-05-03 23:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
nops.c (1.50 KB, text/plain)
2010-04-07 09:23 UTC, Jakub Jelinek
Details
valgrind-x86-nops.patch (1.71 KB, patch)
2010-04-07 09:24 UTC, Jakub Jelinek
Details

Note You need to log in before you can comment on or make changes to this bug.
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.