ubuntu-14.04.04: fail to run systemtap test suites
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
elfutils (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
systemtap (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
---Problem Description---
ubuntu-14.04.04: fail to run systemtap test suites
---uname output---
Linux u140404 4.2.0-21-generic #25~14.04.1-Ubuntu SMP Thu Dec 3 13:55:42 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux
Machine Type = power8
As per launchpad feature systemtap now supported and enabled on 14.04.04
- https:/
Here are the steps followed to test systemtap -
1. Get 14.04.04 guest VM
2. apt-get update; apt-get install dpkg-dev; apt-get build-dep systemtap
3. setup repo
codename=
sudo tee /etc/apt/
deb http://
deb http://
deb http://
deb http://
EOF
4. apt-key adv --keyserver keyserver.
5. apt-get update
6. devel packages
apt-get install linux-image-`uname -r`-dbgsym
apt-get install linux-headers-
7. Install required dependencies
- dejagnu, elfutils-*
8. apt-get source systemtap
9. appy systemtap fixes
see BZ - https:/
root@u140404:
total 32
drwxr-xr-x 2 root root 4096 Jan 7 03:36 ./
drwx------ 8 root root 4096 Jan 7 03:55 ../
-rw-r--r-- 1 root root 6763 Jan 7 03:36 systemtap-1
-rw-r--r-- 1 root root 3094 Jan 7 03:35 systemtap-
-rw-r--r-- 1 root root 3472 Jan 7 03:36 systemtap-2
-rw-r--r-- 1 root root 5864 Jan 7 03:36 systemtap-3
cd /root/systemtap-2.3
apply above patch in below order
patch -p1 < /root/patch/
patch -p1 < /root/patch/
patch -p1 < /root/patch/
patch -p1 < /root/patch/
10. ./configure; make -j10; make install
11. make check -------
root@u140404:
/bin/bash ./git_version.sh -k -s . -o git_version.h
make check-recursive
make[1]: Entering directory `/root/
Making check in .
make[2]: Entering directory `/root/
CXX stap-session.o
CXXLD stap
make check-local
make[3]: Entering directory `/root/
SRCDIR=`cd .; pwd`; \
PWD=`pwd`; \
make -C testsuite check SYSTEMTAP_
make[4]: Entering directory `/root/
Run "make check" or "make installcheck".
make check-DEJAGNU check-local
make[5]: Entering directory `/root/
srcdir='.'; export srcdir; \
EXPECT=expect; export EXPECT; \
if /bin/bash -c ""env XDG_DATA_DIRS= SYSTEMTAP_SYNC=1 LANG=C SYSTEMTAP_
exit_status=0; l='systemtap'; for tool in $l; do \
if "env XDG_DATA_DIRS= SYSTEMTAP_SYNC=1 LANG=C SYSTEMTAP_
then :; else exit_status=1; fi; \
done; \
else echo "WARNING: could not find '"env XDG_DATA_DIRS= SYSTEMTAP_SYNC=1 LANG=C SYSTEMTAP_
fi; \
exit $exit_status
/bin/bash: line 4: env XDG_DATA_DIRS= SYSTEMTAP_SYNC=1 LANG=C SYSTEMTAP_
make[5]: *** [check-DEJAGNU] Error 1
make[5]: Leaving directory `/root/
make[4]: *** [check-am] Error 2
make[4]: Leaving directory `/root/
make[3]: *** [check-local] Error 2
make[3]: Leaving directory `/root/
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/root/
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/root/
make: *** [check] Error 2
root@u140404:
Manually ran cmd instead of make check -
cd testsuite
root@u140404:
env XDG_DATA_DIRS= SYSTEMTAP_SYNC=1 LANG=C SYSTEMTAP_
root@u140404:
WARNING: No tool specified
Test Run By root on Thu Jan 21 13:56:33 2016
Native configuration is powerpc64le-
=== tests ===
Schedule of variations:
unix
Running target unix
Using /usr/share/
Using /usr/share/
Using ./config/unix.exp as tool-and-
kernel location: /boot/vmlinux-
kernel version: 4.2.0-21-generic
systemtap location: /root/systemtap
systemtap version: version 2.3/0.158, Debian version 2.3-1ubuntu1.2 (trusty
gcc location: /usr/bin/gcc
gcc version: gcc (Ubuntu 4.8.4-2ubuntu1~
**** failed systemtap kernel-devel smoke test:
In file included from /root/systemtap
/root/systemtap
/root/systemtap
dentry = vma->vm_
/root/systemtap
/root/systemtap
tsk_euid = task_euid(tsk);
^
/root/systemtap
/root/systemtap
/root/systemtap
/root/systemtap
tsk_euid = task_euid(tsk);
^
In file included from /root/systemtap
/root/systemtap
/root/systemtap
preempt_
^
In file included from include/
/root/systemtap
include/
#define current_euid() (current_
/root/systemtap
uid_t euid = current_euid();
^
In file included from /root/systemtap
/root/systemtap
/root/systemtap
_stp_uid = current_uid();
^
/root/systemtap
_stp_gid = current_gid();
^
cc1: all warnings being treated as errors
make[1]: *** [/tmp/stapoLzh9
make: *** [_module_
WARNING: kbuild exited with status: 2
Pass 4: compilation failed. [man error::pass4]
Tip: /usr/share/
**** aborting testing.
root@u140404:
== Comment: #2 - Kalpana Shetty <email address hidden> - 2016-01-21 13:59:42 ==
few other cmds as well failing -
root@u140404:~# stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}'
Pass 1: parsed user script and 95 library script(s) using 42752virt/
WARNING: cannot find module kernel debuginfo: No DWARF information found [man warning::debuginfo]
semantic error: while resolving probe point: identifier 'kernel' at /usr/local/
source: probe vfs.read = kernel.
semantic error: no match
semantic error: while resolving probe point: identifier 'vfs' at <input>:1:7
source: probe vfs.read {printf("read performed\n"); exit()}
Pass 2: analyzed script: 0 probe(s), 0 function(s), 0 embed(s), 0 global(s) using 65536virt/
Pass 2: analysis failed. [man error::pass2]
Tip: /usr/share/
root@u140404:~#
root@u140404:~# stap -e 'probe oneshot { println("hello world") }'
semantic error: while resolving probe point: identifier 'oneshot' at <input>:1:7
source: probe oneshot { println("hello world") }
semantic error: probe point mismatch (alternatives: __nd_syscall __nfs __scheduler __signal __tcpmib __vm _linuxmib _nd_syscall _signal _sunrpc _syscall _vfs begin begin(number) end end(number) error error(number) generic ioblock ioblock_trace ioscheduler ioscheduler_trace ipmib irq_handler kernel kprobe kprocess linuxmib module(string) nd_syscall netdev netfilter never nfs nfsd perf process process(number) process(string) procfs procfs(string) scheduler scsi signal socket softirq stap staprun sunrpc syscall tcp tcpmib timer tty udp vfs vm workqueue): identifier 'oneshot' at :1:7
source: probe oneshot { println("hello world") }
Pass 2: analysis failed. [man error::pass2]
Tip: /usr/share/
== Comment: #4 - Hemant K. Shaw <email address hidden> - 2016-01-22 06:50:17 ==
This fails on x86 as well. Here is the o/p of a simple kprobe test :
The systemtap version is :
Systemtap translator/driver (version 2.3/0.158, Debian version 2.3-1ubuntu1.3 (trusty))
$ sudo stap -ve 'probe kernel.
Pass 1: parsed user script and 95 library script(s) using 26904virt/
Pass 2: analyzed script: 1 probe(s), 0 function(s), 0 embed(s), 0 global(s) using 268420virt/
Pass 3: translated to C into "/tmp/stapwvyY7
In file included from /usr/share/
/usr/share/
/usr/share/
dentry = vma->vm_
/usr/share/
/usr/share/
tsk_euid = task_euid(tsk);
^
/usr/share/
/usr/share/
/usr/share/
/usr/share/
tsk_euid = task_euid(tsk);
^
In file included from /usr/share/
/usr/share/
/usr/share/
preempt_
^
In file included from include/
/usr/share/
include/
#define current_euid() (current_
/usr/share/
uid_t euid = current_euid();
^
In file included from /usr/share/
/usr/share/
/usr/share/
_stp_uid = current_uid();
^
/usr/share/
_stp_gid = current_gid();
^
cc1: all warnings being treated as errors
make[1]: *** [/tmp/stapwvyY7
make: *** [_module_
WARNING: kbuild exited with status: 2
Pass 4: compiled C into "stap_96747bc38
Pass 4: compilation failed. [man error::pass4]
Tip: /usr/share/
Kernel version :
4.2.0-26-generic #31~14.04.1-Ubuntu SMP Wed Jan 20 14:26:00 UTC 2016 i686 i686 i686 GNU/Linux
It looks like there is a mismatch between the kernel and the systemtap version. Need to upgrade systemtap. For ubuntu 14.04.03, systemtap 2.3 worked because it has a older kernel and older systemtap. Its no more the case now. The systemtap version needs to be upgraded.
tags: | added: architecture-all bugnameltc-135915 severity-critical targetmilestone-inin14044 |
Changed in ubuntu: | |
assignee: | nobody → Taco Screen team (taco-screen-team) |
affects: | ubuntu → systemtap (Ubuntu) |
tags: |
added: severity-high removed: severity-critical |
tags: |
added: severity-critical removed: severity-high |
tags: |
added: severity-high removed: severity-critical |
Changed in systemtap (Ubuntu): | |
assignee: | Taco Screen team (taco-screen-team) → nobody |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/1537125/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]