Summary: | media-libs/exempi: unaligned access causes dev-python/python-xmp-toolkit-2.0.2 to fails tests on sparc (test_file_to_dict (test.test_core_unit.UtilsTestCase.test_file_to_dict) ... Bus error) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | matoro <matoro_gentoo> |
Component: | Current packages | Assignee: | Freedesktop bugs <freedesktop-bugs> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | grozin, matoro_gentoo, mgorny, sparc |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | Sparc64 | ||
OS: | Linux | ||
URL: | https://gitlab.freedesktop.org/libopenraw/exempi/-/merge_requests/8 | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=653240 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 371525, 922855 | ||
Attachments: |
build.log and emerge --info
gdb context and complete backtrace UBSAN run |
Description
matoro
![]() Created attachment 884643 [details]
build.log and emerge --info
Created attachment 884644 [details]
gdb context and complete backtrace
Culprit code is actually in media-libs/exempi. In fact they have aligned/unaligned routines, but the aligned ones are gated behind a check for Solaris, rather than a generic sparc check.
This is wrong as unaligned access is UB on all platforms.
Created attachment 884645 [details]
UBSAN run
Have opened an upstream PR to fix this https://gitlab.freedesktop.org/libopenraw/exempi/-/merge_requests/8 Will dekeyword it. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42c8de509fad0101dec2446d51000bcc9d1ba6c1 commit 42c8de509fad0101dec2446d51000bcc9d1ba6c1 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-06-05 16:10:19 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-06-05 16:10:46 +0000 media-libs/exempi: Dekeyword on big endian arches Remove keywords for big endian architectures, the package is broken on big endian architectures according to upstream. We did not notice this before because of insufficient test coverage. Bug: https://bugs.gentoo.org/924191 See-Also: https://gitlab.freedesktop.org/libopenraw/exempi/-/merge_requests/8#note_2277243 Signed-off-by: Michał Górny <mgorny@gentoo.org> media-libs/exempi/exempi-2.6.2.ebuild | 2 +- media-libs/exempi/exempi-2.6.3-r1.ebuild | 2 +- media-libs/exempi/exempi-2.6.3.ebuild | 2 +- media-libs/exempi/exempi-2.6.4.ebuild | 2 +- media-libs/exempi/exempi-2.6.5.ebuild | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) |