systemtap does not work on xenial, struct module changes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemtap (Ubuntu) |
Fix Released
|
High
|
Dan Streetman | ||
Xenial |
Fix Released
|
High
|
Dan Streetman |
Bug Description
[Impact]
Attempting to use systemtap on xenial with the 4.4 kernel results in:
ubuntu@xenial:~$ sudo stap test.stap
In file included from /usr/share/
/usr/share/
/usr/share/
/usr/share/
(unsigned long) (THIS_MODULE-
/usr/share/
(unsigned long) (THIS_MODULE-
/usr/share/
scripts/
make[1]: *** [/tmp/stapxvNfg
Makefile:1396: recipe for target '_module_
make: *** [_module_
WARNING: kbuild exited with status: 2
Pass 4: compilation failed. [man error::pass4]
Tip: /usr/share/
[Test Case]
on a xenial system with the 4.4 kernel installed, and systemtap and kernel dbgsyms installed, simply create a dummy stap script and try to run it, e.g.:
$ cat test.stap
#!/usr/bin/stap
probe begin {
println("hello")
}
$ sudo stap test.stap
the above compilation failure will result.
[Regression Potential]
The commit updates stap to use the kernel module header correctly based on a small test program, so there should be no regression, but possible regression is breaking stap on the xenial 4.3 kernel.
[Other Info]
this requires upstream stap commit
3f040971e7efb4d
tags: | added: bot-stop-nagging |
Changed in systemtap (Ubuntu): | |
assignee: | nobody → Dan Streetman (ddstreet) |
status: | New → In Progress |
description: | updated |
tags: |
added: sts-sru removed: bot-stop-nagging |
Changed in systemtap (Ubuntu): | |
importance: | Undecided → High |
tags: | added: xenial |
tags: | removed: sts-sru |
Upstream commit 3f040971e7e should fix this.
(Also, we plan to have a systemtap 3.0 release shortly, with this and other fixes.)