Bug 14649 - AB-INT PTEST: openssl ptest failure in Dubious,_test_returned_1
Summary: AB-INT PTEST: openssl ptest failure in Dubious,_test_returned_1
Status: RESOLVED FIXED
Alias: None
Product: Package Testing (ptest)
Classification: QA/Testing
Component: ptest (show other bugs)
Version: 3.4
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 5.3 M4
Assignee: Unassigned
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2021-12-08 16:10 UTC by Alexandre Belloni
Modified: 2026-03-19 00:45 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
logs from valkyrie.yocto.io (4.06 KB, application/x-xz)
2025-08-20 08:04 UTC, João Marcos Costa
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Belloni 2021-12-08 16:10:33 UTC
AssertionError: Failed ptests:
{'openssl': ['Dubious,_test_returned_1']}


qemuarm64-ptest ubuntu2004-arm-1
https://autobuilder.yoctoproject.org/typhoon/#builders/82/builds/2586/steps/12/logs/stdio

qemux86-64-ptest debian10-ty-2
https://autobuilder.yoctoproject.org/typhoon/#builders/81/builds/2865/steps/12/logs/stdio

Both on the same a-full run
Comment 1 Richard Purdie 2021-12-09 15:50:27 UTC
Was from the v1 of https://git.yoctoproject.org/poky/commit/?id=1121148f1302e14319c0f516c222671c0480e492 and fixed in v2
Comment 2 João Marcos Costa 2025-08-20 08:04:22 UTC
Created attachment 5135 [details]
logs from valkyrie.yocto.io
Comment 3 João Marcos Costa 2025-08-20 08:05:19 UTC
Happened again in qemuriscv64-ptest:

https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/379/steps/12/logs/stdio

Failed ptests:{'openssl': ['Dubious,_test_returned_1', 'openssl']}

qemuriscv64-ptest fedora42-vk-1
Comment 4 João Marcos Costa 2025-08-20 08:05:50 UTC
Reopening.
Comment 5 Randy MacLeod 2025-08-21 14:34:32 UTC
Watch to see if it happens again.
Comment 6 João Marcos Costa 2025-10-02 09:07:29 UTC
https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/2333/steps/13/logs/stdio

qemuarm64-ptest ubuntu2404-vk-arm1
Comment 7 Randy MacLeod 2025-10-02 13:51:18 UTC
Second occurrence after 6 weeks so raise to Medium+.
YP has ~ 80 such 'rare' bugs but taken together they make regression tests unreliable.
Comment 8 Gyorgy Sarvari 2025-10-22 21:30:51 UTC
I managed to reproduce this in qemuriscv64, under extreme CPU load (I got the same stacktrace also, as it is in the attachment above) - basically a test times out.

1. Start qemu with core-image-ptest-openssl
2. On the host machine generate load[1]
3. For good measure generate load inside qemu[1] also
4. Run the tests (just a few targeted ones): 

cd /usr/lib/openssl/ptest
export TOP=.
export HARNESS_JOBS=4
for i in `seq 20`; do 
   ./run-ptest test_quic_radix test_rand test_algorithmid test_dh; done
done

# only test_quic_radix is expected to fail, the rest are just extra load
# on my machine it happens in 1-3 iterations


[1]: I used this load generator in- and outside of qemu:
for i in `seq $(nproc)`; do
  yes > /dev/null &
done

(don't forget "killall yes" when you are done)
Comment 9 Gyorgy Sarvari 2025-10-23 10:26:09 UTC
1. I have sent a patch[1] to extend the timeout for this particular test (3s -> 6s)
2. I see now that I messed up the reproduction script in my previous comment...
This supposed to be it, (hopefully) without invalid syntax:

cd /usr/lib/openssl/ptest
for i in `seq 20`; do 
   ./run-ptest test_quic_radix test_rand test_algorithmid test_dh
done

The patch allows the test pass even if I peg all my CPU cores during test execution, both in- and outside of qemu.

[1]: https://lists.openembedded.org/g/openembedded-core/message/225228