Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 893552 - media-libs/libjpeg-turbo-2.1.5: crashes with illegal opcode (SIGILL) in www-client/chromium [PATCH]
Summary: media-libs/libjpeg-turbo-2.1.5: crashes with illegal opcode (SIGILL) in www-c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Codec Project
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2023-02-07 22:08 UTC by Matt Whitlock
Modified: 2023-02-09 01:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Whitlock 2023-02-07 22:08:03 UTC
Due to a change in the way that the SIMD support flags are initialized in libjpeg-turbo 2.1.5, some applications (e.g., libvips, Chromium) crash with an illegal opcode error (SIGILL) because they call decoding functions in a different thread than that which initialized the library.

Example kernel log message accompanying a crash in Chromium:

traps: CompositorTileW[11830] trap invalid opcode ip:7f2468e0193e sp:7f241ff55060 error:0 in libjpeg.so.62.3.0[7f2468def000+5f000]


Upstream has pushed a patch to fix this issue:

https://github.com/libjpeg-turbo/libjpeg-turbo/commit/d743a2c12e889f7605a56f5144ae2e3899c9dd4f.patch

It would be good to add this patch as a revbump to the Gentoo ebuild.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-07 22:30:05 UTC
Sure. Fancy doing a PR?
Comment 2 Matt Whitlock 2023-02-08 00:31:33 UTC
Okay, sure. Stand by.
Comment 3 Matt Whitlock 2023-02-08 00:46:37 UTC
https://github.com/gentoo/gentoo/pull/29473
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-08 00:52:42 UTC
Thanks!
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-08 01:05:48 UTC
 35 commit 0d7aaed3e9ca8dfda55d24bdb1c6f8d81251873f
 36 Author: Matt Whitlock <gentoo@mattwhitlock.name>
 37 Date:   Tue Feb 7 19:44:18 2023 -0500
 38
 39     media-libs/libjpeg-turbo: add patch to avoid SIGILL for 2.1.5
 40
 41     See: https://github.com/libjpeg-turbo/libjpeg-turbo/issues/649
 42     Signed-off-by: Matt Whitlock <gentoo@mattwhitlock.name>
 43     Closes: https://github.com/gentoo/gentoo/pull/29473
 44     Signed-off-by: Sam James <sam@gentoo.org>
Comment 6 Larry the Git Cow gentoo-dev 2023-02-09 01:59:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fd20b57bf481919243b099f0d3179ea38ce23ce

commit 4fd20b57bf481919243b099f0d3179ea38ce23ce
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-09 01:47:32 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-09 01:47:32 +0000

    media-libs/libjpeg-turbo: add 2.1.5.1, drop 2.1.5-r1
    
    Closes: https://bugs.gentoo.org/893552
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/libjpeg-turbo/Manifest                  |   2 +-
 ...-initialize-simd_support-before-every-use.patch | 437 ---------------------
 ....1.5-r1.ebuild => libjpeg-turbo-2.1.5.1.ebuild} |   4 -
 3 files changed, 1 insertion(+), 442 deletions(-)