Bug 403552

Summary: s390x: wrong facility bit checked for vector facility
Product: [Developer tools] valgrind Reporter: Andreas Arnez <arnez>
Component: generalAssignee: Andreas Arnez <arnez>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 3.15 SVN   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.