Reproduction steps:
1. Open the attached “Test Project” project
2. Open the “Scenes/DamageTest” Scene
3. Enter and exit the Play Mode
Expected result: Unity exits the Play Mode
Actual result: Unity Crashes
Reproducible with: 2021.3.28f1, 2022.3.4f1, 2023.1.3f1, 2023.2.0a23
Reproducible on: Ubuntu 22.04
Not reproducible on: Windows 10
First lines of the stack trace:
#0 0x007f93ffd8cab0 in __sigaction
#1 0x007f923c4a4aa1 in runtime.raise.abi0
#2 0x007f923c4724ad in runtime.fatalpanic
#3 0x007f923c471b9b in runtime.gopanic
#4 0x007f923c4883fd in runtime.sigpanic
#5 0x007f923c57c204 in _cgoexp_9ada0be7d2df_SendLeaveMessage