Bug 403552 - s390x: wrong facility bit checked for vector facility
Summary: s390x: wrong facility bit checked for vector facility
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: 3.15 SVN
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Andreas Arnez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-24 09:46 UTC by Andreas Arnez
Modified: 2019-01-24 10:19 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Arnez 2019-01-24 09:46:28 UTC
The wrong bit number (128 instead of 129) is used when checking for the vector facility.  This can result in an emulation error such as this:

==1206== Emulation fatal error -- Valgrind cannot continue:
==1206==   Encountered an instruction that requires the vector facility.
==1206==   That facility is not available on this host
==1206==    at 0x4015980: _dl_runtime_resolve_vx (dl-trampoline.h:82)

Such an error has been seen when running Valgrind under Qemu/KVM.
Comment 1 Andreas Arnez 2019-01-24 10:19:58 UTC
Fix committed as git commit 467c7c4c9.