Comments (5)
Thanks for reporting @drach. I'll look into it.
There is also a chance that the problem lies into fullbench
rather than zstd
.
Since you provide the sample to reproduce the issue, investigation should find it.
from zstd.
I believe to have fixed this issue within latest update of "dev" branch 695a6cb.
The issue was within fullbench
, zstd
library looks unaffected (by this bug).
fullbench
improperly allocated space for the ZSTD_decodeSeqHeaders
test, which was extended by one cell in recent versions of FSE.
Since the issue is not specific to your sample, I'm surprised it has not show up earlier within Continuous Integration tests, as fullbench
is tested with asan
enabled. I suspect FSE dynamically downsizes reference sample statistics as they are generated from a small sample. Side effect : it doesn't test the limits of internal buffers.
If you witness some instability issues outside of fullbench
, it may be related to something else.
from zstd.
Indeed, fullbench
is fixed in "dev", thank you.
If you witness some instability issues outside of fullbench, it may be related to something else.
Agree, will check it closer.
from zstd.
In an existing quite a big iOS app the invocation of ZSTD_decompress (exactly this function, not its internals) may just crash after several dozens of successful calls, it looks like a problem in a corrupted stack.
I was wrong. We call ZSTD_decompress
in different threads, some of them are set up with a 128Kb stack size that turns to be small for a ZSTD context. I was careless to notice it at first because the same code and data worked normally with LZ4 and Zlib's DEFLATE.
from zstd.
Thanks for feedback @drach.
Which reminds me : the decompression context is quite large currently, and it's part of my todo list to tame it.
In the meantime, should you need to keep your stack at 128K per thread, I suggest creating a context per thread with ZSTD_createDCtx()
, and use ZSTD_decompressDCtx()
(which is not yet exposed unfortunately, but present within zstd_decompress.c
). It will avoid usage of the stack.
from zstd.
Related Issues (20)
- Provide Linux & Darwin (macOS) builds via GitHub Releases
- Disable auto vectorization of xxhash64, when AVX512 is present. HOT 5
- No check if Reserved of Symbol_Compression_Modes is 0 HOT 8
- Spec cleanup: Should fixup behavior when repeat1-1==0 be specified or changed to an error? HOT 3
- Strange tags make automation crazy HOT 1
- Modernize macros to use `do { } while (0)` instead of `{ }` HOT 9
- [question] Seek for insights on the suitable case for zstd dictionary compression HOT 5
- zstd not buildable with PAC/BTI becauseof `huf_decompress_amd64.S` HOT 4
- get a core dump on use ZSTD_compressCCtx (Unhandled exception access violation) HOT 3
- Adding a library to https://facebook.github.io/zstd/#other-languages HOT 1
- Allow files bigger than 2GiB for --patch-from option HOT 1
- Allow files bigger than 2GiB for --patch-from option HOT 2
- [Question] How to force single literal streams during compression HOT 1
- Export "selected" CMake target for zstd HOT 5
- [Question] Understanding of compression level with external sequence producer HOT 2
- zstd fails to process some filenames on Windows [we need a hero] HOT 3
- We need a ZStd JavaScript library HOT 1
- Compiler warnings present when integrated with Swift Package Manager
- will zstd get nvcomp acceleration or a gpu support like g-brotli? HOT 1
- How can I change the window size? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zstd.