Bug 365912

Summary: ppc64BE segfault during jm-insns test (RELRO)
Product: [Developer tools] valgrind Reporter: Will Schmidt <will_schmidt>
Component: generalAssignee: Julian Seward <jseward>
Status: RESOLVED FIXED    
Severity: normal CC: cel, will_schmidt
Priority: NOR    
Version First Reported In: 3.12 SVN   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: proposed patch

Description Will Schmidt 2016-07-20 20:12:59 UTC
When running the valgrind tests, the jm-insns test is segfaulting when it attempts to patch instructions as it deals with the ppc64 (BE) function descriptor.  
This is actually due to the RELRO option being enabled by default for the ppc64 (BE) platform, per an upstream binutils change. 
Patch to follow.




Reproducible: Always

Steps to Reproduce:
1.  Build and run valgrind regression test on ppc64 platform with new binutils installed
2.  specifically run the test  " none/tests/ppc64/jm-insns -f "
3.  see it segfault.

Actual Results:  
...
PPC float load insns
    with one register + one 16 bits immediate args with flags update:

Program received signal SIGSEGV, Segmentation fault.
...


Expected Results:  
...
All done. Tested 77 different instructions


Patch to disable the relro option for the jm-insns test to follow momentarily.
Comment 1 Will Schmidt 2016-07-20 20:13:55 UTC
Created attachment 100217 [details]
proposed patch
Comment 2 Carl Love 2016-07-28 16:52:54 UTC
Patch committed Valgrind revision 15917.