Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#55084 - [systemtap] doesn't work with linux 4.12

Attached to Project: Community Packages
Opened by Algunenano (Algunenano) - Wednesday, 09 August 2017, 14:48 GMT
Last edited by Christian Rebischke (Shibumi) - Saturday, 26 August 2017, 13:29 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Christian Rebischke (Shibumi)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
[systemtap] 3.1-4 doesn't work with our current kernel release (linux 4.12.4-1)

Additional info:
* Current systemtap stable: 3.1 (https://sourceware.org/systemtap/wiki/SystemTapReleases)
* Local packages:
community/systemtap 3.1-4
core/linux 4.12.4-1
core/linux-headers 4.12.4-1


Steps to reproduce:
$ stap /usr/share/systemtap/examples/general/helloworld.stp

Current output (full log attached as stap.log): Pass 4: compilation failed. [man error::pass4]
Expected output: "hello world"

It seems __set_task_state() was removed in 4.12[1] but I don't know when the issue with get_task_mm arised.

I've created a couple of patches (attached) to fix the issue locally, but my guess is that this is something that will need to be addressed upstream (probably checking KERNEL_VERSION but I don't know anything about kernel or systemtap development).


1 - https://lwn.net/Articles/715426/

This task depends upon

Closed by  Christian Rebischke (Shibumi)
Saturday, 26 August 2017, 13:29 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with 3.1-5
Comment by Algunenano (Algunenano) - Friday, 25 August 2017, 15:13 GMT
I decided to investigate further so I built the package from source (master/HEAD, currently 05785fe02) as it was working correctly, as the changes in the kernel have been addressed already upstream.

I've made some changes in the PKGBUILD to apply those changes, basically by building using git instead of the tar.gz and cherry-picking the needed commits.
Changes here: https://github.com/Algunenano/PKGBUILDs/commits/2386bde5593ccd3d1a6a0db7f937df5f4ad89d97/systemtap/PKGBUILD
Or if you just want the updated pkgbuild: https://raw.githubusercontent.com/Algunenano/PKGBUILDs/2386bde5593ccd3d1a6a0db7f937df5f4ad89d97/systemtap/PKGBUILD

Please let me know if you need anything else

Loading...