-
Notifications
You must be signed in to change notification settings - Fork 5
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
Segmentation fault when encoding image #164
Comments
Thank you for the report 🙏 I took a look at the code and unfortunately I personally have no clue what is the root cause of the issue :/ |
I can provide a bit more info, currently writing a java port of https://github.com/getmango/Mango and encountering the JVM crash after some time while generating thumbnails. Restarting the process it then passes without crash, so it's not something about the content I assume.
...
|
Could it be that the wrapper can't handle empty buffers? |
Scratch that, also happening on Linux, just by far not as much
|
If this is any help for tracking the bug: I can still reproduce it with version 0.8.0. My first impression was that the segfault happens when there are multiple threads doing a WebP write in parallel. However it still occurs after I made sure there is only one conversion thread in my service. The segfaults seem to happen randomly. The same data that lead to a crash, just works fine on the next attempt. |
I've encountered a segmentation fault when encoding images with this plugin. I wasn't able to get the original image (the image was generated dynamically, in a Minecraft mod) but I was able to narrow down the error between these lines.
I didn't have the coredump. I've attached a zip file containing relevant logs and the JAR file in question. I extracted libwebp-imageio.so (x86_64 linux) and inspected it with
objdump -S ./libwebp-imageio.so
to find the relevant offset according to the stack trace:The offending instruction is moving contents of R13 (which is NULL) into ESI. I'm not entirely sure what this corresponds to in C.
FILE: files.zip
The text was updated successfully, but these errors were encountered: