This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/20158] New: on kernel 4.6, print_backtrace() gets a compile error


https://sourceware.org/bugzilla/show_bug.cgi?id=20158

            Bug ID: 20158
           Summary: on kernel 4.6, print_backtrace() gets a compile error
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: dsmith at redhat dot com
  Target Milestone: ---

As reported on the mailing list
(<https://sourceware.org/ml/systemtap/2016-q2/msg00161.html>),
print_backtrace() gets a compile error on the 4.6 kernel.

====
# cat read_test.stp
probe kernel.function("vfs_read"){
    print("----------------START-------------------------\n")
    printf("In process [%s]\n", execname())
    printf("on CPU [%d]\n", cpu())
    print_backtrace()
    print("----------------END-------------------------\n")
    exit()
}
# stap -vp4 read_test.stp 
Pass 1: parsed user script and 113 library scripts using
237048virt/37840res/7352shr/30596data kb, in 190usr/50sys/257real ms.
Pass 2: analyzed script: 1 probe, 4 functions, 3 embeds, 0 globals using
281232virt/83460res/8800shr/74780data kb, in 3100usr/6110sys/8810real ms.
Pass 3: translated to C into
"/tmp/stapOeWEH0/stap_380f42732e4b697e83129600f3bdffe0_3238_src.c" using
281232virt/83588res/8928shr/74780data kb, in 770usr/1500sys/2297real ms.
In file included from
/tmp/stapOeWEH0/stap_380f42732e4b697e83129600f3bdffe0_3238_src.c:227:0:
/usr/local/share/systemtap/runtime/stack.c:133:13: error: initialization from
incompatible pointer type [-Werror=incompatible-pointer-types]
  .address = print_stack_address,
             ^~~~~~~~~~~~~~~~~~~
/usr/local/share/systemtap/runtime/stack.c:133:13: note: (near initialization
for âprint_stack_ops.addressâ)
cc1: all warnings being treated as errors
scripts/Makefile.build:291: recipe for target
'/tmp/stapOeWEH0/stap_380f42732e4b697e83129600f3bdffe0_3238_src.o' failed
make[1]: *** [/tmp/stapOeWEH0/stap_380f42732e4b697e83129600f3bdffe0_3238_src.o]
Error 1
Makefile:1432: recipe for target '_module_/tmp/stapOeWEH0' failed
make: *** [_module_/tmp/stapOeWEH0] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compiled C into "stap_380f42732e4b697e83129600f3bdffe0_3238.ko" in
29690usr/9500sys/37426real ms.
Pass 4: compilation failed.  [man error::pass4]
====

The runtime needs to be updated.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]