<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/60772>60772</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
scudo-standalone: GetRssFromBuffer test case fails intermittently on PPC
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
amy-kwan
</td>
</tr>
</table>
<pre>
The `GetRSSFromBuffer` test case introduced in https://reviews.llvm.org/D139430 fails intermittently on PPC.
```
/home/amyk/community/llvm-project/compiler-rt/lib/scudo/standalone/tests/common_test.cpp:93: Failure
Expected: (std::abs(Rss - AllocSize - Prev)) <= (Error), actual: 3708544 vs 3000000
```
As noted in my comment in the patch,
- This test can can fail on any iteration of the for loop (sometimes it fails on the first iteration, other times the ninth, etc.)
- The amount that it fails with is always 3708544. It is always 708544 more than the expected error.
- The RSS prior to the `EXPECT_LE()` check always appears to be less than `Prev` + `AllocSize`
I am opening this external issue to track the failure that I am seeing (on `main` and for LLVM 16.0.0) and I'll use this issue if we need to backport any additional patches to resolve this issue.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8VFtvszgQ_TXmZRTkGALhgYf0wqpSV6raarVvnwwMxRtjI3tIvuyvX9mkbfaijXIb45kzc459pPfqwyDWbHfHdg-JXGi0rpbTZXM8S5O0tr_U7yMCK_gvSK9vb42z090yDOhYwYHQE3TSIyhDzvZLhz0oAyPR7Fl2YKJhonF4Unj2qdanKbXug4nmYZtVecZhkEr7kIxuUkRoSF_AGnh5uU-B8QfGD6zg1_caima0EzLRyOlyZKLp7DQtRtGFiSYgbGZn_8CO1kez0ug2LkRatUw0vlt6G35Jml5qa0KpMIe_1rLmRwjTbp5Zdqgylh2gkUovDtcOHn_O2BH24QETe0_hH8sOsvVM7F-9hw0ctLbdm_oTYQMvDk9MVExUwLJ7lj2ErEfnrIur9yA7WqQO5bKS73d5DicPG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