Red Hat Bugzilla – Bug 387821
ptrace: AltiVec PTRACE_GETVRREGS returns invalid VRSAVE
Last modified: 2007-12-04 19:10:02 EST
Description of problem:
PTRACE_GETVRREGS call returns value with an invalid VRSAVE value.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. wget -O powerpc-altivec.c
2. gcc -o powerpc-altivec powerpc-altivec.c -Wall -ggdb2 -m64 -D_GNU_SOURCE
3. ./powerpc-altivec;echo $?
-m64 in command `2.' can be replacted with -m32 with the same results.
While it should be fixed since kernel-18.104.22.168-47.fc8.ppc64 according to the CVS
logs my tests do not confirm it.
Created attachment 261921 [details]
kernel reportedly-fix by Roland McGrath.
22.214.171.124-49.fc8 is the one I've tested.
Roland, while I believe your patch is right there is some problem that
value does not get mapped into `thread.vrsave'. It should be a problem outside
This flavor of machine simply lacks the Altivec hardware support, though the
ppc64 kernel always supports it when it's there. I've fixed the test to handle