public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/15737] New: startup fails with vague message on missing symbols
@ 2013-07-12 21:10 b24warbaby at yahoo dot com
  2013-07-13  2:01 ` [Bug runtime/15737] " fche at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: b24warbaby at yahoo dot com @ 2013-07-12 21:10 UTC (permalink / raw)
  To: systemtap

http://sourceware.org/bugzilla/show_bug.cgi?id=15737

            Bug ID: 15737
           Summary: startup fails with vague message on missing symbols
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: b24warbaby at yahoo dot com

Hi

Should the error messages should 
indicate where stap  is trying to resolve the symbol name from ?

[root@ab763 ~]# ls  -l /boot/System.map-2.6.32-358.6.2.el6.x86_64
/lib/modules/2.6.32-358.6.2.el6.x86_64/build/System.map

-rw-r--r--. 1 root root 2407872 May 16 16:23
/boot/System.map-2.6.32-358.6.2.el6.x86_64

-rw-r--r--. 1 root root 2407872 May 16 16:24
/lib/modules/2.6.32-358.6.2.el6.x86_64/build/System.map

[root@ab763 ~]# rpm -qa | grep kern| egrep `uname -r` 
kernel-debug-devel-2.6.32-358.6.2.el6.x86_64
kernel-devel-2.6.32-358.6.2.el6.x86_64
kernel-2.6.32-358.6.2.el6.x86_64
kernel-headers-2.6.32-358.6.2.el6.x86_64



stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}'


Pass 1: parsed user script and 94 library script(s) using
201568virt/29960res/3036shr/27504data kb, in 380usr/40sys/506real ms.
semantic error: while resolving probe point: identifier 'kernel' at
/usr/share/systemtap/tapset/vfs.stp:752:18
        source: probe vfs.read = kernel.function("vfs_read")
                                 ^

semantic error: missing x86_64 kernel/module debuginfo under
'/lib/modules/2.6.32-358.6.2.el6.x86_64/build'
semantic error: while resolving probe point: identifier 'vfs' at <input>:1:7
        source: probe vfs.read {printf("read performed\n"); exit()}
                      ^

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug runtime/15737] startup fails with vague message on missing symbols
  2013-07-12 21:10 [Bug runtime/15737] New: startup fails with vague message on missing symbols b24warbaby at yahoo dot com
@ 2013-07-13  2:01 ` fche at redhat dot com
  2013-07-14 14:21 ` b24warbaby at yahoo dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: fche at redhat dot com @ 2013-07-13  2:01 UTC (permalink / raw)
  To: systemtap

http://sourceware.org/bugzilla/show_bug.cgi?id=15737

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |fche at redhat dot com
         Resolution|---                         |WORKSFORME

--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> ---
The missing package is kernel-debuginfo{-common}-2.6.32-358.6.2.el6.x86_64.
The stap-prep scropt would help you install it.

Or for your specific script, this may be enough:

  probe kprobe.function("vfs_read") { printf("read performed\n"); exit() }

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug runtime/15737] startup fails with vague message on missing symbols
  2013-07-12 21:10 [Bug runtime/15737] New: startup fails with vague message on missing symbols b24warbaby at yahoo dot com
  2013-07-13  2:01 ` [Bug runtime/15737] " fche at redhat dot com
@ 2013-07-14 14:21 ` b24warbaby at yahoo dot com
  2013-07-14 14:35 ` fche at redhat dot com
  2013-07-14 17:32 ` b24warbaby at yahoo dot com
  3 siblings, 0 replies; 5+ messages in thread
From: b24warbaby at yahoo dot com @ 2013-07-14 14:21 UTC (permalink / raw)
  To: systemtap

http://sourceware.org/bugzilla/show_bug.cgi?id=15737

b24warbaby <b24warbaby at yahoo dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |---

--- Comment #2 from b24warbaby <b24warbaby at yahoo dot com> ---

stap-prep fails:


No Match for argument kernel-debuginfo-2.6.32-358.6.2.el6.x86_64
Nothing to download
problem downloading rpm(s) kernel-debuginfo-2.6.32-358.6.2.el6.x86_64
[root@ab763 clc]#

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug runtime/15737] startup fails with vague message on missing symbols
  2013-07-12 21:10 [Bug runtime/15737] New: startup fails with vague message on missing symbols b24warbaby at yahoo dot com
  2013-07-13  2:01 ` [Bug runtime/15737] " fche at redhat dot com
  2013-07-14 14:21 ` b24warbaby at yahoo dot com
@ 2013-07-14 14:35 ` fche at redhat dot com
  2013-07-14 17:32 ` b24warbaby at yahoo dot com
  3 siblings, 0 replies; 5+ messages in thread
From: fche at redhat dot com @ 2013-07-14 14:35 UTC (permalink / raw)
  To: systemtap

http://sourceware.org/bugzilla/show_bug.cgi?id=15737

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Frank Ch. Eigler <fche at redhat dot com> ---
(This is not a systemtap bug.)

> No Match for argument kernel-debuginfo-2.6.32-358.6.2.el6.x86_64
> Nothing to download
> problem downloading rpm(s) kernel-debuginfo-2.6.32-358.6.2.el6.x86_64

See:

https://rhn.redhat.com/rhn/software/packages/details/Overview.do?pid=765773
https://rhn.redhat.com/rhn/software/packages/details/Overview.do?pid=765805

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug runtime/15737] startup fails with vague message on missing symbols
  2013-07-12 21:10 [Bug runtime/15737] New: startup fails with vague message on missing symbols b24warbaby at yahoo dot com
                   ` (2 preceding siblings ...)
  2013-07-14 14:35 ` fche at redhat dot com
@ 2013-07-14 17:32 ` b24warbaby at yahoo dot com
  3 siblings, 0 replies; 5+ messages in thread
From: b24warbaby at yahoo dot com @ 2013-07-14 17:32 UTC (permalink / raw)
  To: systemtap

http://sourceware.org/bugzilla/show_bug.cgi?id=15737

--- Comment #4 from b24warbaby <b24warbaby at yahoo dot com> ---


manual searchiing of centos turned up the correct rpms:

( too bad the yum steps can't resolve these ).


[root@ab763 ~]# rpm -qa | grep kernel | grep `uname -r`

kernel-debug-devel-2.6.32-358.6.2.el6.x86_64
kernel-debuginfo-2.6.32-358.6.2.el6.x86_64
kernel-devel-2.6.32-358.6.2.el6.x86_64
kernel-2.6.32-358.6.2.el6.x86_64
kernel-debug-2.6.32-358.6.2.el6.x86_64
kernel-debuginfo-common-x86_64-2.6.32-358.6.2.el6.x86_64
[root@ab763 ~]# 
[root@ab763 ~]# 
[root@ab763 ~]# 
[root@ab763 ~]# stap -v -e 'probe vfs.read {printf("read performed\n");
exit()}'
Pass 1: parsed user script and 97 library script(s) using
205468virt/33668res/3036shr/31404data kb, in 230usr/20sys/261real ms.
Pass 2: analyzed script: 1 probe(s), 1 function(s), 3 embed(s), 0 global(s)
using 435504virt/133340res/8236shr/123392data kb, in 1730usr/900sys/5384real
ms.
Pass 3: translated to C into
"/tmp/stapr1g23g/stap_e6efc94189771dcdd7458435d2302673_1499_src.c" using
425676virt/129208res/6584shr/123392data kb, in 0usr/10sys/8real ms.
Pass 4: compiled C into "stap_e6efc94189771dcdd7458435d2302673_1499.ko" in
7060usr/1420sys/13674real ms.
Pass 5: starting run.
read performed
Pass 5: run completed in 20usr/50sys/528real ms.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-07-14 17:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-12 21:10 [Bug runtime/15737] New: startup fails with vague message on missing symbols b24warbaby at yahoo dot com
2013-07-13  2:01 ` [Bug runtime/15737] " fche at redhat dot com
2013-07-14 14:21 ` b24warbaby at yahoo dot com
2013-07-14 14:35 ` fche at redhat dot com
2013-07-14 17:32 ` b24warbaby at yahoo dot com

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).