Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 724382 - dev-util/bpftrace segfaults if llvm 10 is installed (PATCH)
Summary: dev-util/bpftrace segfaults if llvm 10 is installed (PATCH)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-05-21 02:27 UTC by Alexandre Ferreira
Modified: 2020-05-28 20:26 UTC (History)
1 user (show)

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


Attachments
Ebuild patch (bpftrace-0.10.0.ebuild.patch,616 bytes, patch)
2020-05-21 02:27 UTC, Alexandre Ferreira
Details | Diff
patch for bpftrace for llvm 9 (bpftrace-0.10.0-llvm-multi.patch,2.66 KB, patch)
2020-05-21 02:27 UTC, Alexandre Ferreira
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Ferreira 2020-05-21 02:27:05 UTC
Created attachment 640600 [details, diff]
Ebuild patch

Bpftrace get llvm 10 libraries but adds libbcc that is compiled only with llvm 9 and then segfaults.

The following patches allow bpftrace to be compiled with llvm 9 and does not fail if other llvm versions exists.
Comment 1 Alexandre Ferreira 2020-05-21 02:27:47 UTC
Created attachment 640602 [details, diff]
patch for bpftrace for llvm 9
Comment 2 Larry the Git Cow gentoo-dev 2020-05-28 20:26:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c58230e0fc74178013f49bf1adc9f856e9ea247

commit 0c58230e0fc74178013f49bf1adc9f856e9ea247
Author:     Patrick McLean <patrick.mclean@sony.com>
AuthorDate: 2020-05-28 20:26:30 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2020-05-28 20:26:48 +0000

    dev-util/bpftrace-0.10.0-r1: Bump, patch llvm-10 segfault (bug #724382)
    
    Closes: https://bugs.gentoo.org/724382
    Copyright: Sony Interactive Entertainment Inc.
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 ...ace-0.10.0.ebuild => bpftrace-0.10.0-r1.ebuild} |  3 ++
 .../files/bpftrace-0.10.0-llvm-multi.patch         | 60 ++++++++++++++++++++++
 2 files changed, 63 insertions(+)