public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "nylon7717 at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sourceware.org
Subject: [Bug runtime/28378] New: [Systemtap] runtime error: Kernel function symbol table missing [man warning::symbols]
Date: Thu, 23 Sep 2021 09:29:05 +0000	[thread overview]
Message-ID: <bug-28378-6586@http.sourceware.org/bugzilla/> (raw)

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

            Bug ID: 28378
           Summary: [Systemtap] runtime error: Kernel function symbol
                    table missing [man warning::symbols]
           Product: systemtap
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: nylon7717 at gmail dot com
  Target Milestone: ---

I use systemtap in Ubuntu-18.04


# git clone git://sourceware.org/git/systemtap.git 
# cd systemtap
# ./configure && make
# sudo make install
# sudo apt install linux-headers-$(uname -r)
# sudo apt install kernel-package
# sudo apt-get install linux-image-$(uname -r)-generic-dbgsym

## test
# sudo stap -e 'probe begin { printf("Hello, World!\n"); exit() }'
Hello, World!
# stap -L 'process("/lib/x86_64-linux-gnu/libc.so.6").function("malloc")'
process("/lib/x86_64-linux-gnu/libc-2.27.so").function("__libc_malloc@/build/glibc-S9d2JN/glibc-2.27/malloc/malloc.c:3037")
$bytes:size_t

## run my stap script
# stap -p4 -r $(uname -r) tracer.stp -m tracer -v -g --suppress-time-limits
WARNING: Kernel function symbol table missing [man warning::symbols]
Pass 1: parsed user script and 481 library scripts using
129828virt/93224res/5884shr/87548data kb, in 190usr/20sys/212real ms.
semantic error: while resolving probe point: identifier 'process' at
tracer.stp:1194:7
        source: probe
process("/lib/x86_64-linux-gnu/libc.so.6").function("getenv").return {
                      ^

semantic error: process return probes not available [man error::inode-uprobes]

semantic error: while resolving probe point: identifier 'process' at :1203:7
        source: probe
process("/lib/x86_64-linux-gnu/libc.so.6").function("unsetenv").return {
                      ^

semantic error: while resolving probe point: identifier 'process' at :1212:7
        source: probe
process("/lib/x86_64-linux-gnu/libc.so.6").function("setenv").return {
                      ^

semantic error: while resolving probe point: identifier 'process' at :1222:7
        source: probe
process("/lib/x86_64-linux-gnu/libc.so.6").function("putenv").return {
                      ^

semantic error: while resolving probe point: identifier 'process' at :1231:7
        source: probe
process("/lib/x86_64-linux-gnu/libc.so.6").function("getaddrinfo").return {
                      ^

semantic error: while resolving probe point: identifier 'process' at :1238:7
        source: probe
process("/lib/x86_64-linux-gnu/libc.so.6").function("getnameinfo").return {
                      ^

semantic error: while resolving probe point: identifier 'process' at :1245:7
        source: probe
process("/lib/x86_64-linux-gnu/libc.so.6").function("gethostbyname").return {
                      ^

semantic error: while resolving probe point: identifier 'process' at :1251:7
        source: probe
process("/lib64/libc.so.6").function("__strstr_sse42").return {
                      ^

semantic error: while resolving probe point: identifier 'process' at :1257:7
        source: probe
process("/lib64/libc.so.6").function("__strcasestr_sse42").return {
                      ^

semantic error: while resolving probe point: identifier 'process' at :1263:7
        source: probe
process("/usr/lib/x86_64-linux-gnu/libcurl.so").function("curl_easy_perform").return
{
                      ^

semantic error: while resolving probe point: identifier 'process' at :1293:7
        source: probe process("/bin/bash").function("*_builtin").return {
                      ^

Pass 2: analyzed script: 988 probes, 921 functions, 107 embeds, 45 globals
using 443952virt/408624res/7420shr/401672data kb, in 2750usr/360sys/3490real
ms.
Pass 2: analysis failed.  [man error::pass2]


I can't find out any useful information in internet

I also try the other systemtap example, but didn't encounter the same
situation.

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

             reply	other threads:[~2021-09-23  9:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-23  9:29 nylon7717 at gmail dot com [this message]
2021-09-23 12:31 ` [Bug runtime/28378] semantic error: process return probes not available [man error::inode-uprobes] mark at klomp dot org
2021-09-24  2:51 ` nylon7717 at gmail dot com
2021-09-24  5:50 ` nylon7717 at gmail dot com
2021-09-24  8:06 ` mark at klomp dot org
2021-09-24  8:25 ` nylon7717 at gmail dot com
2021-09-24  8:46 ` mark at klomp dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-28378-6586@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=systemtap@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).