Search Issue Tracker


Fixed in 2021.3.23f1, 2022.2.12f1, 2023.1.0b15, 2023.2.0a9



Found in



Issue ID




[Linux] [blocked] StringBuilder marshalling causes runtime “free(): Invalid Pointer” abort signal crash on IL2CPP build



How to reproduce:
1. Open the user-attached project (
2. Build the Linux standalone player with IL2CPP and .Net Standard 2.1 Runtime enabled on Windows
3. Run two instances of the build
4. On the first instance press the "Start Host" button
5. On the second instance press the "Only Start Client" button
6. Observe the first instance crashing

Reproducible with: 2021.3.16f1, 2022.2.2f1
Not reproducible on: 2020.3.43f1, 2023.1.0a22 (built on Linux since Windows doesn't support Linux IL2CPP builds on this version)

Reproducible on: Linux Build
Not reproducible on: Windows Build

1. The builds fail when building on Linux except on 2023.1.0a22
2. Couldn't test to find the regressed version of the issue due to the long testing time and builds failing on Linux 2020.3, 2021.3, 2022.2 streams on Linux

  1. Resolution Note (fix version 2023.2.0a9):

    fixed il2cpp debug player build memory corruption

  2. Resolution Note (fix version 2023.1.0b15):

    Verified the fix has landed to 2023.1.0b15 with Windows 10 and Ubuntu 22.04

  3. Resolution Note (fix version 2022.2.12f1):

    hide the dynamic symbols from to avoid conflict with plugin and other .so.

  4. Resolution Note (fix version 2021.3.23f1):

    Verified the fix has landed to 2021.3.23f1 with Win10 and Rocky Linux 8.7

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.