ISST-LTE: pVM: systemtap doesn't work

Bug #1568689 reported by bugproxy on 2016-04-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu
Undecided
Unassigned

Bug Description

---Problem Description---
When trying to run a systemtap script on 16.04 system, it failed:

% sudo stap-prep
% echo $?
0
% cat hello-world.stp
probe begin
{
        print ("hello world\n")
        exit ()
}
% sudo stap hello-world.stp
In file included from /usr/share/systemtap/runtime/print.c:17:0,
                 from /usr/share/systemtap/runtime/runtime_context.h:22,
                 from /tmp/stapw1yMsZ/stap_ae4b6091c8f7cbb8e04c712b8dbc0cc5_938_src.c:55:
/usr/share/systemtap/runtime/linux/print.c: In function ?_stp_print_kernel_info?:
/usr/share/systemtap/runtime/linux/print.c:242:20: error: ?struct module? has no member named ?module_core?
         THIS_MODULE->module_core,
                    ^
/usr/share/systemtap/runtime/linux/print.c:243:37: error: ?struct module? has no member named ?core_size?
         (unsigned long) (THIS_MODULE->core_size - THIS_MODULE->core_text_size)/1024,
                                     ^
/usr/share/systemtap/runtime/linux/print.c:243:62: error: ?struct module? has no member named ?core_text_size?
         (unsigned long) (THIS_MODULE->core_size - THIS_MODULE->core_text_size)/1024,
                                                              ^
/usr/share/systemtap/runtime/linux/print.c:244:44: error: ?struct module? has no member named ?core_text_size?
                (unsigned long) (THIS_MODULE->core_text_size)/1024,
                                            ^
scripts/Makefile.build:258: recipe for target '/tmp/stapw1yMsZ/stap_ae4b6091c8f7cbb8e04c712b8dbc0cc5_938_src.o' failed
make[1]: *** [/tmp/stapw1yMsZ/stap_ae4b6091c8f7cbb8e04c712b8dbc0cc5_938_src.o] Error 1
Makefile:1396: recipe for target '_module_/tmp/stapw1yMsZ' failed
make: *** [_module_/tmp/stapw1yMsZ] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compilation failed. [man error::pass4]
Tip: /usr/share/doc/systemtap/README.Debian should help you get started.

---uname output---
Linux pinelp3 4.4.0-9-generic #24-Ubuntu SMP Mon Feb 29 19:28:28 UTC 2016 ppc64le ppc64le ppc64le GNU/Linux

Machine Type = CHRP IBM,8408-E8E lpar
 ---Debugger---
A debugger was configured, however the system did not enter into the debugger

---Steps to Reproduce---
 1. install systemtap
2. install linux-image-4.4.0-9-generic-dbgsym and linux-headers-4.4.0-9-generic
3. run 'stap hello-world.stp'

Userspace tool common name: stap

The userspace tool has the following bit modes: 64-bit

Userspace rpm: systemtap 2.9-2ubuntu1

Userspace tool obtained from project website: na

== Comment: #3 - Ping Tian Han - 2016-03-08 01:07:56 ==
I have tested with upstream systemtap-3.0-22001, it works just fine.

== Comment: #5 - Naveen N. Rao - 2016-03-08 08:32:25 ==
This is due to systemtap 2.9 not supporting v4.4 kernel. Since systemtap 3.0 is not out yet, at the least, we will need to backport commits 3f040971e7efb4d323fcb63d83b4337f355c60db, 2736131dfe0aa562d62ffa7f12886e544b7f0eb0 and perhaps dfb5f085c90cad2f3c61dfb9b17d82006cb02c24 for this to work.

== Comment: #9 - Hemant K. Shaw - 2016-04-05 09:34:13 ==
There is another problem with systemtap 2.9/0.165, Debian version 2.9-2ubuntu2.

# ./stap --all-modules -e 'probe timer.profile {print_stack(backtrace()); exit()}'
In file included from /home/ubuntu/stap/share/systemtap/runtime/transport/control.c:14:0,
                 from /home/ubuntu/stap/share/systemtap/runtime/transport/transport.c:76,
                 from /home/ubuntu/stap/share/systemtap/runtime/linux/print.c:17,
                 from /home/ubuntu/stap/share/systemtap/runtime/print.c:17,
                 from /home/ubuntu/stap/share/systemtap/runtime/runtime_context.h:22,
                 from /tmp/stapBSi1Rw/stap_6c706d9945fa6d3cbd10db339742aa70_3670_src.c:170:
/home/ubuntu/stap/share/systemtap/runtime/transport/symbols.c: In function ?_stp_module_update_self?:
/home/ubuntu/stap/share/systemtap/runtime/transport/symbols.c:243:44: error: ?struct module? has no member named ?symtab?
    if (attr->address == (unsigned long) mod->symtab)
                                            ^
/home/ubuntu/stap/share/systemtap/runtime/transport/symbols.c:245:9: error: ?struct module? has no member named ?num_symtab?
      mod->num_symtab * sizeof(mod->symtab[0]);
         ^
/home/ubuntu/stap/share/systemtap/runtime/transport/symbols.c:245:34: error: ?struct module? has no member named ?symtab?
      mod->num_symtab * sizeof(mod->symtab[0]);
                                  ^
scripts/Makefile.build:258: recipe for target '/tmp/stapBSi1Rw/stap_6c706d9945fa6d3cbd10db339742aa70_3670_src.o' failed
make[1]: *** [/tmp/stapBSi1Rw/stap_6c706d9945fa6d3cbd10db339742aa70_3670_src.o] Error 1
Makefile:1396: recipe for target '_module_/tmp/stapBSi1Rw' failed
make: *** [_module_/tmp/stapBSi1Rw] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compilation failed. [man error::pass4]
Tip: /usr/share/doc/systemtap/README.Debian should help you get started.

Commit 64ffc49b5deb57e19e94f67f9878f5c03e617775 from systemtap upstream fixes this issue :

# stap --all-modules -e 'probe timer.profile {print_stack(backtrace()); exit()}'
 0xc00000000008642c : plpar_hcall_norets+0x1c/0x28 [kernel]
 0x0 : 0x0

bugproxy (bugproxy) on 2016-04-11
tags: added: architecture-ppc64le bugnameltc-138369 severity-high targetmilestone-inin1604
Changed in ubuntu:
assignee: nobody → Taco Screen team (taco-screen-team)

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/FindRightPackage. 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/1568689/+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.]

tags: added: bot-comment
Changed in ubuntu:
assignee: Taco Screen team (taco-screen-team) → nobody
Manoj Iyer (manjo) wrote :

systemtap is a universe package and not supported.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers