Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we control the stack size of zstd? #225

Open
ritchie46 opened this issue Apr 21, 2023 · 1 comment
Open

Can we control the stack size of zstd? #225

ritchie46 opened this issue Apr 21, 2023 · 1 comment

Comments

@ritchie46
Copy link

Thanks maintaining this library. We use this downstream in polars and arrow2. Now we get a segfault triggered by a stack overflow during zstd decompression of large parquet files.

Is there a way for us to set a stack size parameters?

Stack trace can be found here; pola-rs/polars#7237 (comment)

@gyscos
Copy link
Owner

gyscos commented Jul 22, 2023

Hi,

Not that I know of. This might be a question for https://github.com/facebook/zstd.

It does sound surprising though. I wouldn't expect the zstd lib to have a stack usage that grows that much with the size of the input.

(Just to be clear, you're not decoding into a stack-allocated array, are you?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants