Reproduction steps:
1. Open the attached “ZipCrashProject”
2. Edit “Assets/NewBehaviourScript.cs” script, so that the project path to the zip file matches your system’s path
3. Open the “Assets/Scenes/SampleScene.unity”
4. Attach the “Assets/NewBehaviourScript.cs” script to any GameObject in the scene
5. Enter the Play Mode
Expected results: File content is logged to the Console
Actual results: Unity Editor crashes
Reproduced with: 2022.3.29f1, 6000.0.2f1
Couldn’t test with: 2021.3.28f1 (error “No usable version of libssl was found”)
Reproduced on: Fedora 40
Not reproduced on: Ubuntu 22.04, Ubuntu 24.04, Windows 10
First lines of the stack trace:
#0 0x007f0a8cb70710 in __sigaction
#1 0x007f0a8cbd6d75 in libc_free
#2 0x007f0a90d42bdd in inflateEnd
#3 0x007f09d4218eff in CloseZStream
#4 0x00000040c90a52 in (wrapper managed-to-native) System.IO.Compression.DeflateStreamNative:CloseZStream (intptr)
#5 0x00000040c90987 in System.IO.Compression.DeflateStreamNative/SafeDeflateStreamHandle:ReleaseHandle ()