https://bugs.kde.org/show_bug.cgi?id=447995

            Bug ID: 447995
           Summary: Valgrind segfault on power10 due to hwcap checking
                    code
           Product: valgrind
           Version: unspecified
          Platform: unspecified
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: will_schm...@vnet.ibm.com
  Target Milestone: ---

Created attachment 145143
  --> https://bugs.kde.org/attachment.cgi?id=145143&action=edit
proposed patch to add clobber masks to inline asm statements

SUMMARY
***
On a Power10-based server, valgrind segfaults during initialization.

(Problem found by Tulio, investigated by Tulio and Will).

After some debug we found out that r20 is being clobbered at
coregrind/m_machine.c:1417:
        __asm__ __volatile__(".long 0x7f1401b6"); /* brh  RA, RS */

Preliminary patch to add clobber options to the asm stanzas is attached.

***

STEPS TO REPRODUCE
1.  Run valgrind on a power10
2.  observe segfault early in valgrind startup
3. 

OBSERVED RESULT
segfault

EXPECTED RESULT
no segfault

SOFTWARE/OS VERSIONS
Linux on Powerpc / power10

ADDITIONAL INFORMATION
This problem has only been seen on power10, and occurs due to an instruction
only exercised on power10.  But, there is potential for some of the other
inline asm to have similar side affects.   Patch should address these.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to