Bug#827441: systemtap: "print_stack_address" incompatible pointer type

2016-06-16 Thread Mark Wielaard
On Thu, 2016-06-16 at 09:30 +0200, Ph. Marek wrote:
> and I installed linux-image-4.6.0-1-amd64-dbg, but I don't quite see how 
> one of these could cause that error.
> [...]
> The problematic call in my stap file is "print_backtrace()" - if I comment 
> that out, I can compile, but that won't really help that much ;/
> And I'm fairly sure I had the print_backtrace() calls in last week, too..

For backtraces and 4.6.0 you will need this upstream commit:

commit 15de83a3b4b298ea8fa5f86083017d062393c0db
Author: David Smith 
Date:   Fri May 27 11:19:03 2016 -0500

Fix PR20158 by updating the runtime for the 4.6 kernel.

* buildrun.cxx (compile_pass): Added autoconf-stacktrace_ops-int-address.c
  compile test.
* stack.c: (print_stack_address): If STAPCONF_STACKTRACE_OPS_INT_ADDRESS
  is defined, the function returns a int instead of being a void
  function.
* runtime/linux/autoconf-stacktrace_ops-int-address.c: New autoconf-style
  test.

Which fixes this upstream issue:
https://sourceware.org/bugzilla/show_bug.cgi?id=20158



Bug#827441: systemtap: "print_stack_address" incompatible pointer type

2016-06-16 Thread Ph. Marek
Package: systemtap
Version: 3.0-5
Severity: normal


After being able to use systemtap the previous week, it doesn't work any more.

> Pass 3: translated to C into 
> "/tmp/stapaMwzDO/stap_36f2c7d21ee09cb86f5af7e74540dabf_241768_src.c" using 
> 108388virt/45416res/7988shr/37504data kb, in 500usr/60sys/565real ms.
> Running env -uARCH -uKBUILD_EXTMOD -uCROSS_COMPILE -uKBUILD_IMAGE 
> -uKCONFIG_CONFIG -uINSTALL_PATH 
> PATH=/usr/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
>  make -C /lib/modules/4.6.0-1-amd64/build M=/tmp/stapaMwzDO modules 
> ARCH=x86_64 CONFIG_DEBUG_INFO= --no-print-directory -j5
>   CC [M]  /tmp/stapaMwzDO/stap_36f2c7d21ee09cb86f5af7e74540dabf_241768_src.o
>   CC [M]  /tmp/stapaMwzDO/stap_36f2c7d21ee09cb86f5af7e74540dabf_241768_aux_0.o
> In file included from 
> /tmp/stapaMwzDO/stap_36f2c7d21ee09cb86f5af7e74540dabf_241768_src.c:4644:0:
> /usr/share/systemtap/runtime/stack.c:133:13: error: initialization from 
> incompatible pointer type [-Werror=incompatible-pointer-types]
>   .address = print_stack_address,
>  ^
> /usr/share/systemtap/runtime/stack.c:133:13: note: (near initialization for 
> ‘print_stack_ops.address’)
> cc1: all warnings being treated as errors


My today's "apt-get upgrade" gave me

  afl-doc cups-browsed cups-filters cups-filters-core-drivers gcj-5-jre-lib 
  graphviz libcdt5 libcgraph6 libcupsfilters1 libfontembed1 libgcj16 
  libgif7 libgvc6 libgvpr2 libmxml1 libpathplan4 libphonon4 libphonon4qt5-4 
  libphononexperimental4 libupower-glib3 libxdot4 moarvm phonon phonon4qt5 
  phonon4qt5-backend-null upower

and I installed linux-image-4.6.0-1-amd64-dbg, but I don't quite see how 
one of these could cause that error.
(Though I didn't use systemtap yesterday, AFAIR, so it might be some other 
update?)


The problematic call in my stap file is "print_backtrace()" - if I comment 
that out, I can compile, but that won't really help that much ;/
And I'm fairly sure I had the print_backtrace() calls in last week, too...



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages systemtap depends on:
ii  libavahi-client3   0.6.32~rc+dfsg-1
ii  libavahi-common3   0.6.32~rc+dfsg-1
ii  libc6  2.22-11
ii  libdw1 0.163-5.1
ii  libelf10.163-5.1
ii  libgcc11:6-20160109-1
ii  libnspr4   2:4.12-2
ii  libnspr4-0d2:4.12-2
ii  libnss32:3.23-2
ii  libnss3-1d 2:3.23-2
ii  libsqlite3-0   3.13.0-1
ii  libstdc++6 5.3.1-14
ii  make   4.1-9
ii  systemtap-common   3.0-5
ii  systemtap-runtime  3.0-5

systemtap recommends no packages.

Versions of packages systemtap suggests:
pn  systemtap-doc  
ii  vim-addon-manager  0.5.5

-- no debconf information