Search Issue Tracker

Fixed

Fixed in 2021.3.42f1, 2022.3.40f1, 6000.0.17f1, 7000.0.0a1

Votes

3

Found in

2022.3.29f1

6000.0.2f1

7000.0.0a1

Issue ID

UUM-72446

Regression

No

[Linux] Crash on libc_free when closing Stream Reader which reads file content from a zip file

--

-

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 ()

Comments (1)

  1. encoded_reality

    Jul 02, 2024 10:31

    Looks like zlib-ng v2.1.6 bug [1]. Should be fixed in zlib-ng v2.1.7.

    [1] https://github.com/zlib-ng/zlib-ng/issues/1708

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.