Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936480 - app-arch/lz4-1.10.0-r1 fails tests: freestanding FAIL 0.11s killed by signal 11 SIGSEGV
Summary: app-arch/lz4-1.10.0-r1 fails tests: freestanding FAIL 0.11s killed by signal ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michał Górny
URL:
Whiteboard:
Keywords: PullRequest, TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-07-22 07:37 UTC by Agostino Sarubbo
Modified: 2024-07-23 14:13 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,111.74 KB, text/plain)
2024-07-22 07:37 UTC, Agostino Sarubbo
Details
1-testlog.txt.xz (1-testlog.txt.xz,61.50 KB, application/x-xz)
2024-07-22 07:37 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-07-22 07:37:35 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-arch/lz4-1.10.0-r1 fails tests.
Discovered on: amd64 (internal ref: ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Comment 1 Agostino Sarubbo gentoo-dev 2024-07-22 07:37:37 UTC
Created attachment 898097 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-07-22 07:37:38 UTC
Created attachment 898098 [details]
1-testlog.txt.xz

1-testlog.txt (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 3 Agostino Sarubbo gentoo-dev 2024-07-22 07:38:18 UTC
dmesg also reports:

[Mon Jul 22 09:32:42 2024] traps: freestanding[7757] general protection fault ip:6080d5fc05ce sp:7ffdd1e55078 error:0 in freestanding[6080d5fa1000+22000]
Comment 4 Holger Hoffstätte 2024-07-22 20:01:16 UTC
Two different issues here:

- enabling >=O2 crashes with a misaligned stack on function entry, see the upstream bug. Thanks Arsen for finding this!

- building the tests with clang fails on Gentoo because we enable the stack protector in /etc/clang/gentoo-hardened.cfg, so maybe for that we can do 

  tc-is-clang && append-flags -fno-stack-protector

in the ebuild.
Comment 5 Larry the Git Cow gentoo-dev 2024-07-23 14:13:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=461b33118c1d8b038088b5d8552f2fa8658bc5af

commit 461b33118c1d8b038088b5d8552f2fa8658bc5af
Author:     Holger Hoffstätte <holger@applied-asynchrony.com>
AuthorDate: 2024-07-22 22:48:18 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-07-23 14:13:40 +0000

    app-arch/lz4: fix test failures
    
    Add patches for proper stack alignment in the freestanding test
    and to disable stack protector for the same test to allow building
    with clang.
    
    Bug: https://github.com/lz4/lz4/issues/1466
    Closes: https://bugs.gentoo.org/936480
    Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
    Closes: https://github.com/gentoo/gentoo/pull/37681
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 .../lz4/files/1.10.0-fix-freestanding-test.patch   | 42 ++++++++++++++++++++++
 app-arch/lz4/lz4-1.10.0-r1.ebuild                  |  4 +++
 2 files changed, 46 insertions(+)