trezor-firmware icon indicating copy to clipboard operation
trezor-firmware copied to clipboard

Running `tests/device_tests/test_sdcard.py` may result in RSOD

Open romanz opened this issue 7 months ago • 3 comments

Describe the bug

The device is stuck with INTERNAL ERROR (SS) RSOD after running tests/device_tests/test_sdcard.py multiple times.

Firmware version and revision

Happened on d50181b7f, built with:

TREZOR_MODEL=T2T1 BITCOIN_ONLY=0 DISABLE_OPTIGA=1 STORAGE_INSECURE_TESTING_MODE=1 PYOPT=0

To Reproduce

Running the following test in a loop reproduces it after ~10 minutes on T2T1.

$ nix-shell --run "poetry shell"
$ while pytest -xv tests/device_tests/test_sdcard.py; do :; done

Expected behavior No RSOD.

Screenshots

Additional context It seems also to occur on hardware CI tests: https://github.com/trezor/trezor-firmware/actions/runs/14457699322/job/40544311829

Tue, 15 Apr 2025 06:18:00 GMT
tests/device_tests/test_msg_wipedevice.py::test_wipe_device PASSED       [ 30%]
Tue, 15 Apr 2025 06:18:20 GMT
tests/device_tests/test_msg_wipedevice.py::test_autolock_not_retained PASSED [ 30%]
Tue, 15 Apr 2025 06:18:29 GMT
tests/device_tests/misc/test_msg_signidentity.py::test_sign PASSED       [ 31%]
Tue, 15 Apr 2025 06:18:49 GMT
tests/device_tests/test_sdcard.py::test_sd_no_format PASSED              [ 31%]
Tue, 15 Apr 2025 06:28:50 GMT
tests/device_tests/test_sdcard.py::test_sd_protect_unlock RETRY          [ 31%]
Tue, 15 Apr 2025 06:28:50 GMT
tests/device_tests/test_sdcard.py::test_sd_protect_unlock FAILED         [ 31%]
Tue, 15 Apr 2025 06:38:50 GMT
tests/device_tests/test_sdcard.py::test_sd_format ERROR                  [ 31%]
Tue, 15 Apr 2025 06:48:51 GMT
tests/device_tests/test_repeated_backup.py::test_repeated_backup_cancel ERROR [ 31%]
Tue, 15 Apr 2025 06:58:52 GMT
tests/device_tests/test_repeated_backup.py::test_repeated_backup_upgrade_single ERROR [ 31%]
Tue, 15 Apr 2025 07:08:52 GMT
tests/device_tests/test_repeated_backup.py::test_repeated_backup ERROR   [ 31%]
Tue, 15 Apr 2025 07:18:53 GMT
tests/device_tests/test_repeated_backup.py::test_repeated_backup_send_disallowed_message ERROR [ 31%]
Tue, 15 Apr 2025 07:18:53 GMT
tests/device_tests/test_msg_changepin_t1.py::test_set_invalid[1204] SKIPPED [ 31%]
Tue, 15 Apr 2025 07:18:53 GMT
tests/device_tests/test_msg_changepin_t1.py::test_set_mismatch SKIPPED   [ 31%]
Tue, 15 Apr 2025 07:18:53 GMT
tests/device_tests/test_msg_changepin_t1.py::test_set_invalid[123456789123456789123456789123456789123456789123451] SKIPPED [ 31%]
Tue, 15 Apr 2025 07:18:53 GMT
tests/device_tests/test_msg_changepin_t1.py::test_enter_invalid[123456789123456789123456789123456789123456789123451] SKIPPED [ 31%]
Tue, 15 Apr 2025 07:18:53 GMT
tests/device_tests/test_msg_changepin_t1.py::test_set_pin SKIPPED (S...) [ 31%]
Tue, 15 Apr 2025 07:18:53 GMT
tests/device_tests/test_msg_changepin_t1.py::test_remove_pin SKIPPED     [ 31%]
Tue, 15 Apr 2025 07:18:53 GMT
tests/device_tests/test_msg_changepin_t1.py::test_set_invalid[] SKIPPED  [ 31%]
Tue, 15 Apr 2025 07:18:53 GMT
tests/device_tests/test_msg_changepin_t1.py::test_enter_invalid[1204] SKIPPED [ 32%]
Tue, 15 Apr 2025 07:18:53 GMT
tests/device_tests/test_msg_changepin_t1.py::test_change_mismatch SKIPPED [ 32%]
Tue, 15 Apr 2025 07:18:53 GMT
tests/device_tests/test_msg_changepin_t1.py::test_change_pin SKIPPED     [ 32%]
Tue, 15 Apr 2025 07:18:53 GMT
tests/device_tests/test_msg_changepin_t1.py::test_enter_invalid[] SKIPPED [ 32%]
Tue, 15 Apr 2025 07:28:53 GMT
tests/device_tests/test_autolock.py::test_apply_auto_lock_delay_out_of_range[9] ERROR [ 32%]
Tue, 15 Apr 2025 07:38:54 GMT
tests/device_tests/test_autolock.py::test_autolock_ignores_getaddress ERROR [ 32%]
Tue, 15 Apr 2025 07:48:55 GMT
tests/device_tests/test_autolock.py::test_apply_auto_lock_delay_valid[10] ERROR [ 32%]
Tue, 15 Apr 2025 07:58:55 GMT
tests/device_tests/test_autolock.py::test_autolock_default_value ERROR   [ 32%]
Tue, 15 Apr 2025 08:08:56 GMT
tests/device_tests/test_autolock.py::test_apply_auto_lock_delay_valid[3601] ERROR [ 32%]
Tue, 15 Apr 2025 08:18:56 GMT
tests/device_tests/test_autolock.py::test_apply_auto_lock_delay ERROR    [ 32%]
Tue, 15 Apr 2025 08:28:57 GMT
tests/device_tests/test_autolock.py::test_apply_auto_lock_delay_valid[536870] ERROR [ 32%]
Tue, 15 Apr 2025 08:38:57 GMT
tests/device_tests/test_autolock.py::test_autolock_cancels_ui ERROR      [ 32%]
Tue, 15 Apr 2025 08:48:58 GMT
tests/device_tests/test_autolock.py::test_autolock_ignores_initialize ERROR [ 32%]

romanz avatar Apr 15 '25 12:04 romanz