Public bug reported:

---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

** Affects: ubuntu
     Importance: Undecided
     Assignee: Taco Screen team (taco-screen-team)
         Status: New


** Tags: architecture-ppc64le bugnameltc-138369 severity-high 
targetmilestone-inin1604

** Tags added: architecture-ppc64le bugnameltc-138369 severity-high
targetmilestone-inin1604

** Changed in: ubuntu
     Assignee: (unassigned) => Taco Screen team (taco-screen-team)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1568689

Title:
  ISST-LTE: pVM: systemtap doesn't work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1568689/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to