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/16378] New: in-kernel utrace problem with 2.6.32: implicit declaration of function 'do_each_thread' in task_finder.c


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

            Bug ID: 16378
           Summary: in-kernel utrace problem with 2.6.32: implicit
                    declaration of function 'do_each_thread' in
                    task_finder.c
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: fahadaliarshad at gmail dot com

Created attachment 7334
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7334&action=edit
description to reproduce the bug

Frank and David,

This bug was previously discussed at
https://sourceware.org/bugzilla/show_bug.cgi?id=11113
Please note that I have already tried the suggestions provided by David in the
above ticket.

As suggested by Frank, I have put (also attached) the procedure to reproduce
this bug (along-with my kernel source) here:
https://github.com/faarshad/linux-stable

Please see the Steps to reproduce at:
https://github.com/faarshad/linux-stable#steps-to-reproduce. 

Note that I used kernel/ptrace.c.rej file to resolve merge conflicts (in
kernel/ptrace.c) between OpenVZ and utrace patches.

I appreciate your help in getting systemtap working with OpenVZ patch applied
to 2.6.32 kernel.

Bug Manifestation:
==================

# stap -vvv -e 'probe begin { println("hello world") exit () }'
Systemtap translator/driver (version 2.4/0.148, commit release-2.4-0-gaa7b1e0)
Copyright (C) 2005-2013 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
enabled features: LIBSQLITE3 NSS BOOST_SHARED_PTR TR1_UNORDERED_MAP NLS LIBXML2
Created temporary directory "/tmp/stapJzlhnz"
Session arch: x86_64 release: 2.6.32.10-openvz-utrace
Parsed kernel "/lib/modules/2.6.32.10-openvz-utrace/build/.config", containing
3430 tuples
Parsed kernel /lib/modules/2.6.32.10-openvz-utrace/build/Module.symvers, which
contained 4550 vmlinux exports
Processing tapset "/usr/local/share/systemtap/tapset/linux/context.stpm"
Processing tapset "/usr/local/share/systemtap/tapset/linux/nfs_proc.stpm"
Searched for library macro files:
"/usr/local/share/systemtap/tapset/linux/*.stpm", found: 2, processed: 2
Processing tapset "/usr/local/share/systemtap/tapset/choose_defined.stpm"
Processing tapset "/usr/local/share/systemtap/tapset/macros.stpm"
Searched for library macro files: "/usr/local/share/systemtap/tapset/*.stpm",
found: 2, processed: 2
Processing tapset
"/usr/local/share/systemtap/tapset/linux/x86_64/aux_syscalls.stp"
Processing tapset
"/usr/local/share/systemtap/tapset/linux/x86_64/nd_syscalls.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/x86_64/syscalls.stp"
Searched: "/usr/local/share/systemtap/tapset/linux/x86_64/*.stp", found: 3,
processed: 3
Processing tapset "/usr/local/share/systemtap/tapset/linux/atomic.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/aux_syscalls.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/context-caller.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/context-envvar.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/context-symbols.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/context-unwind.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/context.stp"
Processing tapset
"/usr/local/share/systemtap/tapset/linux/conversions-guru.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/conversions.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/ctime.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/dentry.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/dev.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/endian.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/guru-delay.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/guru-signal.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/inet.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/inet_sock.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/ioblock.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/ioscheduler.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/ip.stp"
Processing tapset
"/usr/local/share/systemtap/tapset/linux/ipmib-filter-default.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/ipmib.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/irq.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/kprocess.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/kretprobe.stp"
Processing tapset
"/usr/local/share/systemtap/tapset/linux/linuxmib-filter-default.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/linuxmib.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/logging.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/memory.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/nd_syscalls.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/nd_syscalls2.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/netfilter.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/networking.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/nfs.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/nfs_proc.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/nfsd.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/nfsderrno.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/panic.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/perf.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/proc_mem.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/pstrace.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/rcu.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/rpc.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/scheduler.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/scsi.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/signal.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/socket.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/syscalls.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/syscalls2.stp"
Processing tapset
"/usr/local/share/systemtap/tapset/linux/syscalls_cfg_trunc.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/target_set.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/task.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/task_time.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/tcp.stp"
Processing tapset
"/usr/local/share/systemtap/tapset/linux/tcpmib-filter-default.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/tcpmib.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/timestamp.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/timestamp_gtod.stp"
Processing tapset
"/usr/local/share/systemtap/tapset/linux/timestamp_monotonic.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/tty.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/tzinfo.stp"
Processing tapset
"/usr/local/share/systemtap/tapset/linux/ucontext-symbols.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/ucontext-unwind.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/ucontext.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/udp.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/utrace.stp"
Processing tapset "/usr/local/share/systemtap/tapset/linux/vfs.stp"
Searched: "/usr/local/share/systemtap/tapset/linux/*.stp", found: 67,
processed: 67
Processing tapset "/usr/local/share/systemtap/tapset/x86_64/registers.stp"
Searched: "/usr/local/share/systemtap/tapset/x86_64/*.stp", found: 1,
processed: 1
Processing tapset "/usr/local/share/systemtap/tapset/ansi.stp"
Processing tapset "/usr/local/share/systemtap/tapset/argv.stp"
Processing tapset "/usr/local/share/systemtap/tapset/context.stp"
Processing tapset "/usr/local/share/systemtap/tapset/errno.stp"
Processing tapset "/usr/local/share/systemtap/tapset/indent-default.stp"
Processing tapset "/usr/local/share/systemtap/tapset/indent.stp"
Processing tapset "/usr/local/share/systemtap/tapset/logging.stp"
Processing tapset "/usr/local/share/systemtap/tapset/null.stp"
Processing tapset "/usr/local/share/systemtap/tapset/pn.stp"
Processing tapset "/usr/local/share/systemtap/tapset/queue_stats.stp"
Processing tapset "/usr/local/share/systemtap/tapset/random.stp"
Processing tapset "/usr/local/share/systemtap/tapset/registers.stp"
Processing tapset "/usr/local/share/systemtap/tapset/speculative.stp"
Processing tapset "/usr/local/share/systemtap/tapset/stap_staticmarkers.stp"
Processing tapset "/usr/local/share/systemtap/tapset/stopwatch.stp"
Processing tapset "/usr/local/share/systemtap/tapset/string.stp"
Processing tapset "/usr/local/share/systemtap/tapset/system.stp"
Processing tapset "/usr/local/share/systemtap/tapset/timers.stp"
Processing tapset "/usr/local/share/systemtap/tapset/tokenize.stp"
Processing tapset "/usr/local/share/systemtap/tapset/tzinfo.stp"
Processing tapset "/usr/local/share/systemtap/tapset/uconversions.stp"
Searched: "/usr/local/share/systemtap/tapset/*.stp", found: 21, processed: 21
Pass 1: parsed user script and 96 library script(s) using
70584virt/24720res/2400shr/22960data kb, in 320usr/30sys/362real ms.
Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s)
using 71112virt/25504res/2672shr/23488data kb, in 10usr/0sys/7real ms.
function recursion-analysis: max-nesting 0  non-recursive
adapt location:14max - 14/1tot =>[]
adapt derivation:15max - 15/1tot =>[]
adapt pp:8max - 8/1tot =>[]
adapt pn:8max - 8/1tot =>[]
Pass 3: translated to C into
"/tmp/stapJzlhnz/stap_4f300f816d3638b151004598c1d57494_970_src.c" using
71112virt/25820res/2964shr/23488data kb, in 0usr/0sys/1real 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/2.6.32.10-openvz-utrace/build M=/tmp/stapJzlhnz modules
ARCH=x86_64 CONFIG_DEBUG_INFO= V=1 -j5
make: Entering directory `/usr/src/linux-stable'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (        \
    echo;                                \
    echo "  ERROR: Kernel configuration is invalid.";        \
    echo "         include/linux/autoconf.h or include/config/auto.conf are
missing.";    \
    echo "         Run 'make oldconfig && make prepare' on kernel src to fix
it.";    \
    echo;                                \
    /bin/false)
mkdir -p /tmp/stapJzlhnz/.tmp_versions ; rm -f /tmp/stapJzlhnz/.tmp_versions/*
make -f scripts/Makefile.build obj=/tmp/stapJzlhnz
(cat /dev/null;   echo
kernel//tmp/stapJzlhnz/stap_4f300f816d3638b151004598c1d57494_970.ko;) >
/tmp/stapJzlhnz/modules.order
  gcc
-Wp,-MD,/tmp/stapJzlhnz/.stap_4f300f816d3638b151004598c1d57494_970_src.o.d 
-nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.4.5/include -Iinclude 
-I/usr/src/linux-stable/arch/x86/include -include include/linux/autoconf.h
-D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -Werror-implicit-function-declaration
-Wno-format-security -fno-delete-null-pointer-checks -Os -m64 -mtune=generic
-mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args
-fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe
-Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2
-mno-3dnow -Wframe-larger-than=2048 -fomit-frame-pointer
-Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow
-fno-dwarf2-cfi-asm -fconserve-stack -Iinclude2/asm/mach-default -include
/tmp/stapJzlhnz/stapconf_d8afcbe704c9d88a9b0e76e8e5de8760_759.h
-freorder-blocks -Wframe-larger-than=512 -Wno-unused -Werror
-I"/usr/local/share/systemtap/runtime"  -DMODULE -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(stap_4f300f816d3638b151004598c1d57494_970_src)" 
-D"KBUILD_MODNAME=KBUILD_STR(stap_4f300f816d3638b151004598c1d57494_970)"  -c -o
/tmp/stapJzlhnz/.tmp_stap_4f300f816d3638b151004598c1d57494_970_src.o
/tmp/stapJzlhnz/stap_4f300f816d3638b151004598c1d57494_970_src.c
In file included from /usr/local/share/systemtap/runtime/linux/runtime.h:192,
                 from /usr/local/share/systemtap/runtime/runtime.h:24,
                 from
/tmp/stapJzlhnz/stap_4f300f816d3638b151004598c1d57494_970_src.c:24:
/usr/local/share/systemtap/runtime/linux/task_finder.c: In function
'stap_utrace_detach_ops':
/usr/local/share/systemtap/runtime/linux/task_finder.c:388: error: implicit
declaration of function 'do_each_thread'
/usr/local/share/systemtap/runtime/linux/task_finder.c:388: error: expected ';'
before '{' token
/usr/local/share/systemtap/runtime/linux/task_finder.c: In function
'stap_start_task_finder':
/usr/local/share/systemtap/runtime/linux/task_finder.c:1590: error: expected
';' before '{' token
/usr/local/share/systemtap/runtime/linux/task_finder.c: In function
'stap_task_finder_post_init':
/usr/local/share/systemtap/runtime/linux/task_finder.c:1718: error: expected
';' before '{' token
make[1]: *** [/tmp/stapJzlhnz/stap_4f300f816d3638b151004598c1d57494_970_src.o]
Error 1
make: *** [_module_/tmp/stapJzlhnz] Error 2
make: Leaving directory `/usr/src/linux-stable'
Spawn waitpid result (0x200): 2
WARNING: kbuild exited with status: 2
Pass 4: compiled C into "stap_4f300f816d3638b151004598c1d57494_970.ko" in
4260usr/1130sys/5342real ms.
Pass 4: compilation failed.  [man error::pass4]
Running rm -rf /tmp/stapJzlhnz
Spawn waitpid result (0x0): 0
Removed temporary directory "/tmp/stapJzlhnz"

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