sejda-pdf / webp-imageio

Java ImageIO WebP support
Apache License 2.0
198 stars 74 forks source link

Segfault when processing a WebP image from an archive. #29

Open mcpierce opened 2 years ago

mcpierce commented 2 years ago

I'm reporting this bug on behalf of a user of my app for a bug they found that's ultimately occurring by webp-imageio. I'm sharing the log file they provided that shows the source of the bug.

hs_err_pid12.log

gotson commented 2 years ago

Most likely because the container is running on Alpine, which uses musl instead of libc.

The included binary in this lib is only compiled for libc, not musl.

Switching to a Ubuntu or Debian base image should work.

mcpierce commented 2 years ago

@gotson I think you're right, there. I see the following in the segfault from the logs they shared:

7f16c4821000-7f16c4836000 r--p 00000000 00:19 427                        /lib/ld-musl-x86_64.so.1
7f16c4836000-7f16c487e000 r-xp 00015000 00:19 427                        /lib/ld-musl-x86_64.so.1
7f16c487e000-7f16c48b4000 r--p 0005d000 00:19 427                        /lib/ld-musl-x86_64.so.1
7f16c48b4000-7f16c48b5000 r--p 00092000 00:19 427                        /lib/ld-musl-x86_64.so.1
7f16c48b5000-7f16c48b6000 rw-p 00093000 00:19 427                        /lib/ld-musl-x86_64.so.1