Bug 2046015 - systemtap: FTBFS in Fedora Rawhide
Summary: systemtap: FTBFS in Fedora Rawhide
Alias: None
Product: Fedora
Classification: Fedora
Component: systemtap
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Frank Ch. Eigler
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Depends On: 2047316
Blocks: F36FTBFS PYTHON3.11
TreeView+ depends on / blocked
Reported: 2022-01-26 07:51 UTC by Tomáš Hrnčiar
Modified: 2022-01-27 21:04 UTC (History)
7 users (show)

Fixed In Version: systemtap-4.7~pre16433134g7d871ab5-1.fc36
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2022-01-27 21:04:41 UTC
Type: Bug

Attachments (Terms of Use)

Description Tomáš Hrnčiar 2022-01-26 07:51:06 UTC
Description of problem:
Package systemtap fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):

Steps to Reproduce:
koji build --scratch f36 systemtap-4.7~pre16395042gefae8a3d-2.fc36.src.rpm

Additional info:
This package is tracked by Koschei. See:

Comment 1 William Cohen 2022-01-26 14:05:58 UTC
This has been fixed in the upstream version of systemtap by:

commit 56c498d95c4749f15980da73b4933e7443b3f26c
Author: Jonathan Wakely <jwakely.gcc>
Date:   Tue Jan 18 15:52:18 2022 -0500

    gcc12 c++ compatibility tweak: use lambdas instead of ptr_fun<>
    Even while stap is a c++11 code base, such cleanups make code
    nicer to look at.

Comment 2 William Cohen 2022-01-26 15:37:21 UTC
Attempted a respin of the systemtap git sources for rawhide,  https://koji.fedoraproject.org/koji/taskinfo?taskID=81941041 . All the architectures built except armv7hl.  A number of errors of the form:

In file included from staptree.cxx:10:
staptree.h: In member function 'next_statement::~next_statement()':
staptree.h:841:8: error: pointer used after 'operator delete(void*, unsigned int)' [-Werror=use-after-free]
  841 | struct next_statement: public statement
      |        ^~~~~~~~~~~~~~
staptree.h:841:8: note: call to 'operator delete(void*, unsigned int)' here
staptree.h: In member function 'continue_statement::~continue_statement()':
staptree.h:834:8: error: pointer used after 'operator delete(void*, unsigned int)' [-Werror=use-after-free]
  834 | struct continue_statement: public statement
      |        ^~~~~~~~~~~~~~~~~~

Given that this is arch specific, it is looking like these use-after-free warning/errors may be a problem in gcc 12 rather than systemtap.

Comment 3 William Cohen 2022-01-27 21:04:41 UTC
Have work around in the current systemtap.spec file for 247316, so the SRPM builds for rawhide.

Note You need to log in before you can comment on or make changes to this bug.