Bug 303804 - vex x86->IR: unhandled instruction bytes: 0x66 0xF 0x3A 0xDF
Summary: vex x86->IR: unhandled instruction bytes: 0x66 0xF 0x3A 0xDF
Status: RESOLVED INTENTIONAL
Alias: None
Product: valgrind
Classification: Developer tools
Component: vex (show other bugs)
Version: unspecified
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-19 15:32 UTC by Mariusz Plucinski
Modified: 2015-05-31 23:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Valgrind output. (19.62 KB, application/octet-stream)
2012-07-19 15:33 UTC, Mariusz Plucinski
Details
Stubs for several SSE instructions in x86 mode. (1.89 KB, patch)
2012-08-01 11:32 UTC, Mariusz Plucinski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mariusz Plucinski 2012-07-19 15:32:20 UTC
Problem occurs when trying to debug an application using Valgrind (current SVN trunk).


Reproducible: Always

Steps to Reproduce:
1. Run Valgrind with application using OS X cryptographic libraries.
Actual Results:  
vex x86->IR: unhandled instruction bytes: 0x66 0xF 0x3A 0xDF
==96147== valgrind: Unrecognised instruction at address 0x330be41.
==96147==    at 0x330BE41: aes_encrypt_key_hw (in /usr/lib/system/libcommonCrypto.dylib)


Expected Results:  
No information about unhandled instruction when running an application.
Comment 1 Mariusz Plucinski 2012-07-19 15:33:44 UTC
Created attachment 72632 [details]
Valgrind output.
Comment 2 Philippe Waroquiers 2012-07-22 18:00:53 UTC
This is the same problem as discussed in bug 290655 comment 13 and 14.
There is currently no plan to have SSE 4 in 32 bits mode.
So, at least for the moment, the only solution is to switch to 64 bit app.
Comment 3 Mariusz Plucinski 2012-08-01 11:30:44 UTC
Understand.

Anyway, I have created stubs for a few instructions (AESDEC, AESDECLAST, AESENC, AESENCLAST, AESIMC, AESKEYGENASSIST and PEXTRD). It made my application working. Maybe it will help someone.
Comment 4 Mariusz Plucinski 2012-08-01 11:32:03 UTC
Created attachment 72871 [details]
Stubs for several SSE instructions in x86 mode.