valgrind claims to support 3dnow! in cpuid, but doesn't
Bug #1096323 reported by
Bradley Baetz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Valgrind |
Fix Released
|
Medium
|
|||
valgrind (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
See https:/
This results in IR decoding errors when using valgrind on ffmpeg-related apps (in my case, mythtv).
I get:
vex amd64->IR: unhandled instruction bytes: 0xF 0xF 0xC1 0xBF 0xF 0xF 0xD3 0xBF
(In this case, this is the PAVGUSB instruction)
The "fix" is in https:/
Ubuntu 12.04, valgrind 1:3.7.0-0ubuntu3
Changed in valgrind: | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
To post a comment you must log in.
Created attachment 67842
Remove 3dnow support bits from CPUID
Currently the CPUID values for this are based on a real CPU.
Unfortunately, it is an AMD CPU.
This means that CPUID claims to support 3DNOW while it actually doesn't.
As a result, any program doing audio decoding with FFmpeg crashes in valgrind in x86_64 mode.
Attached patch just hacks the CPUID a bit to remove the 3DNOW flags.
That is not perfect since it now matches no real CPU but claiming to support a feature that will certainly crash is surely worse.