Skip to content

Commit c9acde2

Browse files
authored
Update posixtestsuite to deal with OOM issue on fast computers (#25318)
A couple of tests in the posixtest suite hammer `pthread_kill()` and `pthread_cancel()` in an uncontrollably fast loop. Since the event queue mailbox refactor, proxying `pthread_kill()` and `pthread_cancel()` allocate memory. This causes fast CPUs like Ryzen 9800X3D 8c/16t and Apple M1 ARM to run out of memory while running the test: http://clbri.com:8010/api/v2/logs/64925/raw_inline http://clbri.com:8010/api/v2/logs/66008/raw_inline Update the posixtest submodule to latest, which throttles these loops to sleep 1ms between signals.
1 parent 47e7a1f commit c9acde2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

test/test_posixtest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ def f(self):
166166
'-Wno-int-conversion',
167167
'-Wno-format',
168168
'-pthread',
169+
# Make sure all tests have callstacks to improve debuggability
170+
# of log messages on CI runs.
171+
'--profiling-funcs',
169172
'-sEXIT_RUNTIME',
170173
'-sTOTAL_MEMORY=256mb',
171174
'-sPTHREAD_POOL_SIZE=40']

0 commit comments

Comments
 (0)