Autopkgtest fails on armhf with stack overflow in pthread tests:
https://autopkgtest.ubuntu.com/results/autopkgtest-mantic/mantic/armhf/s/stress-ng/20230504_234423_40746@/log.gz
```
pthread at Thu May 4 23:43:49 UTC 2023
stress-ng: 23:43:49.90 debug: [1045] invoked with 'stress-ng -v -t 1 --pthread 4 --verify --timestamp' by user 1000 'ubuntu'
stress-ng: 23:43:49.90 debug: [1045] stress-ng 0.15.07
stress-ng: 23:43:49.90 debug: [1045] system: Linux autopkgtest-lxd-fsyuma 5.4.0-147-generic #164-Ubuntu SMP Tue Mar 21 14:25:54 UTC 2023 armv7l
stress-ng: 23:43:49.90 debug: [1045] RAM total: 3.8G, RAM free: 2.3G, swap free: 488.7M
stress-ng: 23:43:49.90 debug: [1045] temporary file path: '.', filesystem type: btrfs
stress-ng: 23:43:49.90 debug: [1045] 8 processors online, 8 processors configured
stress-ng: 23:43:49.90 info: [1045] setting to a 1 second run per stressor
stress-ng: 23:43:49.90 info: [1045] dispatching hogs: 4 pthread
stress-ng: 23:43:49.90 debug: [1045] cache allocate: using defaults, cannot determine cache level details
stress-ng: 23:43:49.90 debug: [1045] cache allocate: shared cache buffer size: 2048K
stress-ng: 23:43:49.90 debug: [1045] starting stressors
stress-ng: 23:43:49.90 debug: [1046] pthread: started [1046] (instance 0)
stress-ng: 23:43:49.90 debug: [1045] 4 stressors started
stress-ng: 23:43:49.90 debug: [1047] pthread: started [1047] (instance 1)
stress-ng: 23:43:49.91 debug: [1049] pthread: started [1049] (instance 3)
Stack overflow detected! Aborting stress-ng.
Stack overflow detected! Aborting stress-ng.
Stack overflow detected! Aborting stress-ng.
Stack overflow detected! Aborting stress-ng.
Stack overflow detected! Aborting stress-ng.
stress-ng: 23:43:49.94 debug: [1048] pthread: started [1048] (instance 2)
stress-ng: 23:43:49.94 debug: [1048] pthread: exited [1048] (instance 2)
stress-ng: 23:43:50.57 debug: [1045] process [1046] (pthread) terminated on signal: 6 (Aborted)
stress-ng: 23:43:50.57 debug: [1045] process [1046] terminated
[...]
```
Upstream has a bug report for it
https://github.com/ColinIanKing/stress-ng/issues/283
and a patch
https://github.com/ColinIanKing/stress-ng/commit/637662d92865fbf5f3469d7754584f6d810fb902 ("stress-pthread: use 64 bit tid_addr to fix stack clobbering on 32 bit platforms")
Including the upstream patch is not enough. stress-ng 0.15.07-1ubuntu1 runs into a timeout now:
``` lxd-auisii 5.4.0-139-generic #156-Ubuntu SMP Sat Jan 21 13:46:46 UTC 2023 armv7l
pthread at Thu May 18 13:52:57 UTC 2023
stress-ng: 13:52:57.49 debug: [1047] invoked with 'stress-ng -v -t 1 --pthread 4 --verify --timestamp' by user 1000 'ubuntu'
stress-ng: 13:52:57.49 debug: [1047] stress-ng 0.15.07
stress-ng: 13:52:57.49 debug: [1047] system: Linux autopkgtest-
stress-ng: 13:52:57.49 debug: [1047] RAM total: 3.8G, RAM free: 1.8G, swap free: 373.3M
stress-ng: 13:52:57.49 debug: [1047] temporary file path: '.', filesystem type: btrfs
stress-ng: 13:52:57.49 debug: [1047] 4 processors online, 4 processors configured
stress-ng: 13:52:57.49 info: [1047] setting to a 1 second run per stressor
stress-ng: 13:52:57.49 info: [1047] dispatching hogs: 4 pthread
stress-ng: 13:52:57.49 debug: [1047] cache allocate: using defaults, cannot determine cache level details
stress-ng: 13:52:57.49 debug: [1047] cache allocate: shared cache buffer size: 2048K
stress-ng: 13:52:57.49 debug: [1047] starting stressors
stress-ng: 13:52:57.49 debug: [1048] pthread: started [1048] (instance 0)
stress-ng: 13:52:57.49 debug: [1049] pthread: started [1049] (instance 1)
stress-ng: 13:52:57.49 debug: [1047] 4 stressors started
stress-ng: 13:52:57.51 debug: [1051] pthread: started [1051] (instance 3)
stress-ng: 13:52:57.59 debug: [1050] pthread: started [1050] (instance 2)
autopkgtest [16:39:15]: kill with SIGTERM did not work sending SIGKILL
```
Full log: https:/ /autopkgtest. ubuntu. com/results/ autopkgtest- mantic/ mantic/ armhf/s/ stress- ng/20230518_ 163932_ 72f42@/ log.gz