[Bug 1766754] Re: Linux kernel > 4.14 requires systemtap 3.2
Tyler Hicks
tyhicks at canonical.com
Wed Apr 25 20:39:26 UTC 2018
Here's the output from systemtap 3.1-3, under the Ubuntu
4.15.0-20.21-generic kernel, showing failure to build the module.
** Attachment added: "stap-bad.txt"
https://bugs.launchpad.net/ubuntu/+source/systemtap/+bug/1766754/+attachment/5127252/+files/stap-bad.txt
** Description changed:
[Impact]
systemtap cannot be used in Ubuntu 18.04 due to kernel ABI
incompatibilities with the 4.15 based kernel. The upstream kernel
changes are:
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7eeb6b893bd28c68b6d664de1d3120e49b855cdb
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d3a024abbc43827785
[Test Case]
Load an example systemtap script to verify that it can be built and used
with the Ubuntu 18.04 kernel.
+
+ $ sudo stap -v -e 'probe kernel.function("proc_dostring")
+ {printf("proc_dostring() called\n"); exit()}'
+
+ In another terminal, execute 'cat /proc/sys/kernel/hostname' and the
+ stap command should print "proc_dostring() called" and exit. See the
+ stap-bad.txt and stap-good.txt attachments for example output.
[Regression Potential]
Low regression potential since the package does not currently work as-
is.
[Original Bug Report]
Per https://sourceware.org/bugzilla/show_bug.cgi?id=22158 , Systemtap
3.1 is broken on kernel versions > 4.14. It looks like they're aware of
this in the debian package : https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=892995 . With Bionic Beaver about to ship with
kernel 4.15 and systemtap 3.1-3, systemtap will be unusable on the LTS
of Ubuntu.
$ lsb_release -rd
Description: Ubuntu Bionic Beaver (development branch)
Release: 18.04
$ uname -a
Linux appliance 4.15.0-19-generic #20-Ubuntu SMP Sun Apr 22 00:03:34 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ apt-cache policy systemtap
systemtap:
Installed: 3.1-3
Candidate: 3.1-3
Version table:
*** 3.1-3 500
500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
100 /var/lib/dpkg/status
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemtap in Ubuntu.
https://bugs.launchpad.net/bugs/1766754
Title:
Linux kernel > 4.14 requires systemtap 3.2
Status in systemtap package in Ubuntu:
New
Bug description:
[Impact]
systemtap cannot be used in Ubuntu 18.04 due to kernel ABI
incompatibilities with the 4.15 based kernel. The upstream kernel
changes are:
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7eeb6b893bd28c68b6d664de1d3120e49b855cdb
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d3a024abbc43827785
[Test Case]
Load an example systemtap script to verify that it can be built and
used with the Ubuntu 18.04 kernel.
$ sudo stap -v -e 'probe kernel.function("proc_dostring")
{printf("proc_dostring() called\n"); exit()}'
In another terminal, execute 'cat /proc/sys/kernel/hostname' and the
stap command should print "proc_dostring() called" and exit. See the
stap-bad.txt and stap-good.txt attachments for example output.
[Regression Potential]
Low regression potential since the package does not currently work as-
is.
[Original Bug Report]
Per https://sourceware.org/bugzilla/show_bug.cgi?id=22158 , Systemtap
3.1 is broken on kernel versions > 4.14. It looks like they're aware
of this in the debian package : https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=892995 . With Bionic Beaver about to ship with
kernel 4.15 and systemtap 3.1-3, systemtap will be unusable on the LTS
of Ubuntu.
$ lsb_release -rd
Description: Ubuntu Bionic Beaver (development branch)
Release: 18.04
$ uname -a
Linux appliance 4.15.0-19-generic #20-Ubuntu SMP Sun Apr 22 00:03:34 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ apt-cache policy systemtap
systemtap:
Installed: 3.1-3
Candidate: 3.1-3
Version table:
*** 3.1-3 500
500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
100 /var/lib/dpkg/status
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemtap/+bug/1766754/+subscriptions
More information about the foundations-bugs
mailing list