zstd icon indicating copy to clipboard operation
zstd copied to clipboard

ZSTD_decompressStream crashed on Ubuntu after v1.5.6

Open yanshouwang opened this issue 4 months ago • 1 comments

Describe the bug I have written a flutter plugin with libzstd. It's works fine on Android, iOS, macOS and Windows with v1.5.7. But the example app crashed when I runing it on Ubuntu. After some debug, I can confirm the crash happened after the ZSTD_decompressStream is called, this crash happened with v1.5.6 and v1.5.7, can be fixed with v1.5.5

To Reproduce Steps to reproduce the behavior:

  1. Clone this repo: https://github.com/yanshouwang/zstd
  2. Run the example in zstd on Ubuntu, the app crashed without any output
  3. Change the GIT_TAG in zstd_native/src/cmake/zstd.cmake to v1.5.5, run the example and the crash will gone.

Expected behavior ZSTD_decompressStream should work on Ubuntu with the latest version.

Screenshots and charts

Image

Crashed with v1.5.6 and v1.5.7

Image

Works fine with v1.5.5

Desktop (please complete the following information):

  • OS: Ubuntu
  • Version 24.04.3 LTS
  • Compiler [e.g. gcc]
  • Flags [e.g. O2]
  • Other relevant hardware specs [e.g. Dual-core]
  • Build system CMake

Additional context Add any other context about the problem here.

yanshouwang avatar Aug 22 '25 13:08 yanshouwang

This my mobile gaming not fasting. Please change in fasting phone i fasting networds 5G activities.