-
-
Notifications
You must be signed in to change notification settings - Fork 698
Segmentation fault while loading JPEG #2761
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
Comments
Hi @kstanikviacbs, Thank for the detailed report. This will be a tough one to find :( I'll have a look at that bit of code again. |
Alpine uses musl as the standard C library, which provides a default thread stack size of 128k, see: It might be worth to increase this stack size by setting # Increase the minimum stack size to 2MB
export VIPS_MIN_STACK_SIZE=2m Note that I'm not sure if this would resolve this segfault, but I'm aware that libaom and Poppler would need this. |
Yes, it could be a stack overflow. Perhaps libvips should always try to set a 2mb minimum stack size, even if (this stack trace is obviously not overflowing, but an earlier overflow could have possibly corrupted the heap) |
Thanks both! Sorry to confuse you, but previous OS info was wrong, this is Arch Linux instead however I would still give that one a try and play a bit with As for setting 2mb minimum stack size attempt - that one sounds like a good improvement to me given that's not really obvious for majority of vips users. |
since musl users often don't know about this see #2761
8.13 ought to attempt to set a 2mb stack on startup. I'd still set |
I'll close. Please open a new issue is this is still a problem. |
Hey there! First of all - thanks for marvellous job you keep doing by maintaining and developing vips!
We face an issue with SEGFAULT that's difficult to reproduce, but happens once per thousands of requests, based on the backtrace from gdb this seems to happen while decoding JPEG file.
OS: Linux ba01b6d4e809 5.10.93-0-virt #1-Alpine SMP Thu
Vips: 8.12.2
Any ideas what might be wrong?
Thanks in advance for help!
The text was updated successfully, but these errors were encountered: