Summary: | sys-apps/sandbox-2.8+ broken on Sparc64 ("Bus error" in canonicalize_filename_mode()) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Denis Kaganovich <mahatma> |
Component: | Current packages | Assignee: | Sandbox Maintainers <sandbox> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | Sparc64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 371525 | ||
Attachments: | sanbox sparc fastfix |
Description
Denis Kaganovich
2015-11-12 19:14:36 UTC
Created attachment 416808 [details, diff]
sanbox sparc fastfix
Workaround
sorry, but we're not adding arch specific code like this OK, normal way to fix "portable" gnulib code (this is pointer manipulation/byteorder bug), I just post my fast solution. But anymore "~sparc" in KEYWORDS in this versions must be removed - else after installing 2.8 or 2.9 single way to emerge anything is FEATURES="-sandbox -usersandbox" sandbox was returning misaligning memory to 4 bytes (size_t). when the gnulib code went to add the file to the hashed state (record_file), it'd do a 64bit (st_dev) write to 4 byte aligned memory which would trigger the SIGBUS. fix is to make sure the internal malloc doesn't return unaligned memory. http://gitweb.gentoo.org/proj/sandbox.git/commit/?id=767becaac8ccf0a271fc7633fafe635bf8126f3e |