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

deflateInit2 causing unknown crashes #41

Open
tesiawu opened this issue May 12, 2021 · 3 comments
Open

deflateInit2 causing unknown crashes #41

tesiawu opened this issue May 12, 2021 · 3 comments

Comments

@tesiawu
Copy link

tesiawu commented May 12, 2021

We've experienced a few crashes that point to the deflateInit2 method when the gzippedDataWithCompressionLevel method in NSData+GZIP is called. Has there been any documentation of a crash like this before?

@nicklockwood
Copy link
Owner

@tesiawu AFAIK you're the first to report such a crash

@tesiawu
Copy link
Author

tesiawu commented Jul 28, 2021

Hey @nicklockwood, could you take a look into the deflateInit2 method? From what I've gathered, it seems like the method crashes regardless of the value being passed in. It also seems like there are a lot more crashes that are popping up recently. Were there any recent changes related to this method?

@tesiawu
Copy link
Author

tesiawu commented Jul 30, 2021

Sorry, I realized I didn't put the any context! This is what the stacktrace shows for us just before the crashes:

at libsystem_platform.dylib.OSAtomicAnd32Barrier$VARIANT$mp + 0(UNKNOWN_FILE.c:1) at libz.1.dylib.deflateInit2_ + 324(UNKNOWN_FILE.c:1)

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