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: | CONFIRMED --- | ||
Severity: | normal | CC: | grozin, matoro_gentoo, 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
2024-02-09 22:55:27 UTC
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 |