mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-20 21:38:26 +00:00
9244522721
In a very weird situation, our declaration of `shutdown()` shadows a function `shutdown(int, int)` from sys/socket, which _just happens_ to be called by libxcb when closing the sdl window. This calls `main_clean_exit` which calls into micropython and causes at best an uncaught NLR and at worst an outright segfault because by that time the micropython environment doesn't exist anymore. I didn't think this sort of thing would be possible but here we are?? Fixed by removing `__shutdown()` and replacing `shutdown` with `trezor_shutdown` |
||
---|---|---|
.. | ||
boardloader | ||
bootloader | ||
bootloader_ci | ||
extmod | ||
firmware | ||
prodtest | ||
reflash | ||
rust | ||
segger | ||
trezorhal | ||
unix | ||
vendorheader |