Bug 365912 - ppc64BE segfault during jm-insns test (RELRO)
Summary: ppc64BE segfault during jm-insns test (RELRO)
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: 3.12 SVN
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-20 20:12 UTC by Will Schmidt
Modified: 2016-07-28 16:52 UTC (History)
2 users (show)

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


Attachments
proposed patch (1.68 KB, patch)
2016-07-20 20:13 UTC, Will Schmidt
Details

Note You need to log in before you can comment on or make changes to this bug.
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.