You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I've been trying to use minizip for unzipping, I've compiled and set it up locally on my machine, but while trying to run the example (i.e. minizip.c), I'm getting a segmentation fault on the call to mz_stream_open.
I'm building the example file like this: clang -Wall -g minizip.c -o example -L. -lz -lminizip
And then running the executable like so: ./example -l file.zipOR./example -x file.zip
And it's failing on line 700, I get a segmentation fault on the call to mz_stream_open()
I've got the library compiled statically and available in the current folder.
Let me know if this is any help.
Activity
nmoinvaz commentedon Jan 22, 2018
Do you have more information such as what line it is occurring on? What command line arguments you are using..
umberto-sonnino commentedon Jan 22, 2018
I'm building the example file like this:
clang -Wall -g minizip.c -o example -L. -lz -lminizipAnd then running the executable like so:
./example -l file.zipOR./example -x file.zipAnd it's failing on line 700, I get a segmentation fault on the call to
mz_stream_open()I've got the library compiled statically and available in the current folder.
Let me know if this is any help.
nmoinvaz commentedon Jan 22, 2018
Have you tried building the executable with cmake?
Fixed segmentation fault when trying to close posix stream. #225
nmoinvaz commentedon Jan 30, 2018
I have committed a fix for it to the dev branch. Thank you for reporting.