systemtap 3.0 doesn't work with 4.10 kernel

Bug #1671133 reported by Ali
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemtap (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Installing systemtap on zesty results in a non-functional system tap:
$ stap -v -e 'probe oneshot { println("hello world") }'

Pass 1: parsed user script and 111 library scripts using 49620virt/38420res/5752shr/33072data kb, in 230usr/10sys/238real ms.
Pass 2: analyzed script: 1 probe, 1 function, 0 embeds, 0 globals using 50280virt/39452res/6008shr/33732data kb, in 0usr/0sys/7real ms.
Pass 3: translated to C into "/tmp/stap33SHdB/stap_b857718a445c9d5eb902617b6fc310fb_989_src.c" using 50416virt/40220res/6548shr/33868data kb, in 0usr/0sys/0real ms.
In file included from /usr/share/systemtap/runtime/linux/runtime.h:209:0,
                 from /usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stap33SHdB/stap_b857718a445c9d5eb902617b6fc310fb_989_src.c:25:
/usr/share/systemtap/runtime/linux/access_process_vm.h: In function ‘__access_process_vm_’:
/usr/share/systemtap/runtime/linux/access_process_vm.h:36:61: error: passing argument 6 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Werror=int-conversion]
       ret = get_user_pages_remote (tsk, mm, addr, 1, write, 1, &page, &vma);
...

Looking at the changelog for systemtap there are fixes in v3.1 for a 4.10 kernel. Compiling the upstream system tap results is functional:
$ ./stap -e 'probe oneshot { println("hello world") }'
hello world

Revision history for this message
Jeremy Bícha (jbicha) wrote :

This bug was fixed in the package systemtap - 3.1-2

---------------
systemtap (3.1-2) unstable; urgency=medium

  * Upload to Unstable
  * Fix kernel version detection for custom built kernels running
    on Debian (Closes: #856461)

 -- Ritesh Raj Sarraf <email address hidden> Wed, 08 Mar 2017 20:02:36 +0530

systemtap (3.1-1) experimental; urgency=medium

  [ Ritesh Raj Sarraf ]
  * New upstream version 3.1
  * Refresh patches, and drop some that are part of new release
  * Bump debhelper dependency to 9

 -- Ritesh Raj Sarraf <email address hidden> Thu, 02 Mar 2017 21:11:22 +0530

Changed in systemtap (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.