This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/14057] ERROR: Your privilege credentials (stapsys) are insufficient to run this module (stapdev required).
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Thu, 03 May 2012 14:53:06 +0000
- Subject: [Bug runtime/14057] ERROR: Your privilege credentials (stapsys) are insufficient to run this module (stapdev required).
- Auto-submitted: auto-generated
- References: <bug-14057-6586@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14057
--- Comment #1 from Mark Wielaard <mjw at redhat dot com> 2012-05-03 14:53:06 UTC ---
While trying to collect some more data it did appear to work. Odd. I'll try to
figure out what the difference is between now and this morning.
[mark@rhel6-i686 ~]$ id
uid=500(mark) gid=500(mark) groups=500(mark),10(wheel)
context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[mark@rhel6-i686 ~]$ groups
mark wheel
[mark@rhel6-i686 ~]$ sudo id
uid=0(root) gid=0(root)
groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[mark@rhel6-i686 ~]$ sudo groups
root bin daemon sys adm disk wheel
[mark@rhel6-i686 ~]$ uname -a
Linux rhel6-i686.wildebeest.org 2.6.32-220.7.1.el6.i686 #1 SMP Fri Feb 10
15:21:44 EST 2012 i686 i686 i386 GNU/Linux
[mark@rhel6-i686 ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux Workstation release 6.2 (Santiago)
[mark@rhel6-i686 ~]$ stap -V
Systemtap translator/driver (version 1.6/0.152 non-git sources)
Copyright (C) 2005-2011 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
enabled features: AVAHI LIBRPM LIBSQLITE3 NSS BOOST_SHARED_PTR
TR1_UNORDERED_MAP NLS
[mark@rhel6-i686 ~]$ stap
/home/mark/src/systemtap/testsuite/systemtap.base/backtrace.stp
Warning: /usr/bin/staprun is not executable (Permission denied)
Warning: /usr/bin/staprun exited with status: 127
Pass 5: run failed. Try again with another '--vp 00001' option.
[mark@rhel6-i686 ~]$ sudo !!
sudo stap /home/mark/src/systemtap/testsuite/systemtap.base/backtrace.stp
begin
Systemtap probe: begin
timer.ms(100)
Systemtap probe: timer.ms(100)
end
Systemtap probe: end
[mark@rhel6-i686 ~]$ /home/mark/install/systemtap/bin/stap -V
Systemtap translator/driver (version 1.8/0.152 commit release-1.7-193-gfb6cf58
+ changes)
Copyright (C) 2005-2012 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
[mark@rhel6-i686 ~]$ /home/mark/install/systemtap/bin/stap
/home/mark/src/systemtap/testsuite/systemtap.base/backtrace.stp
You are trying to run systemtap as a normal user.
You should either be root, or be part of the group "stapusr" and possibly one
of the groups "stapsys" or "stapdev".
Systemtap translator/driver (version 1.8/0.152 commit release-1.7-193-gfb6cf58
+ changes)
Copyright (C) 2005-2012 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
Usage: stap [options] FILE Run script in file.
or: stap [options] - Run script on stdin.
or: stap [options] -e SCRIPT Run given script.
or: stap [options] -l PROBE List matching probes.
or: stap [options] -L PROBE List matching probes and local variables.
Options (in /home/mark/.systemtap/rc and on command line):
-- end of translator options, script options follow
-h --help show help
-V --version show version
-p NUM stop after pass NUM 1-5, instead of 5
(parse, elaborate, translate, compile, run)
-v add verbosity to all passes
--vp {N}+ add per-pass verbosity [00000]
-k keep temporary directory
-u unoptimized translation
-w suppress warnings
-W turn warnings into errors
-g guru mode
-P prologue-searching for function probes
-b bulk (percpu file) mode
-s NUM buffer size in megabytes, instead of 0
-I DIR look in DIR for additional .stp script files, in addition to
/home/mark/install/systemtap/share/systemtap/tapset
-D NM=VAL emit macro definition into generated C code
-B NM=VAL pass option to kbuild make
--modinfo NM=VAL
include a MODULE_INFO(NM,VAL) in the generated C code
-G VAR=VAL set global variable to value
-R DIR look in DIR for runtime, instead of
/home/mark/install/systemtap/share/systemtap/runtime
-r DIR cross-compile to kernel with given build tree; or else
-r RELEASE cross-compile to kernel /lib/modules/RELEASE/build, instead of
/lib/modules/2.6.32-220.7.1.el6.i686/build
-a ARCH cross-compile to given architecture, instead of i386
-m MODULE set probe module name, instead of
stap_9722
-o FILE send script output to file, instead of stdout. This supports
strftime(3) formats for FILE
-c CMD start the probes, run CMD, and exit when it finishes
-x PID sets target() to PID
-F run as on-file flight recorder with -o.
run as on-memory flight recorder without -o.
-S size[,n] set maximum of the size and the number of files.
-d OBJECT add unwind/symbol data for OBJECT file
--ldd add unwind/symbol data for all referenced object files.
--all-modules
add unwind/symbol data for all loaded kernel objects.
-t collect probe timing information
-q generate information on tapset coverage
--privilege=PRIVILEGE_LEVEL
check the script for constructs not allowed at the given
privilege level
--unprivileged
equivalent to --privilege=stapusr
--compatible=VERSION
suppress incompatible language/tapset changes beyond VERSION,
instead of 1.8
--check-version
displays warnings where a syntax element may be
version dependent
--skip-badvars
substitute zero for bad context $variables
--suppress-handler-errors
catch all runtime errors, quietly skip probe handlers
--use-server[=SERVER-SPEC]
specify systemtap compile-servers
--list-servers[=PROPERTIES]
report on the status of the specified compile-servers:
all,specified,online,trusted,signer,compatible
--trust-servers[=TRUST-SPEC]
add/revoke trust of specified compile-servers:
ssl,signer,all-users,revoke,no-prompt
--use-server-on-error[=yes/no]
retry compilation using a compile server upon compilation error
--remote=HOSTNAME
run pass 5 on the specified ssh host.
may be repeated for targeting multiple hosts.
--remote-prefix
prefix each line of remote output with a host index.
--tmpdir=NAME
specify name of temporary directory to be used.
--download-debuginfo[=OPTION]
automatically download debuginfo using ABRT.
yes,no,ask,<timeout value>
--dump-probe-types
show a list of available probe types.
--sysroot=DIR
specify sysroot directory where target files (executables,
libraries, etc.) are located.
--sysenv=VAR=VALUE
provide an alternate value for an environment variable
where the value on a remote system differs. Path
variables (e.g. PATH, LD_LIBRARY_PATH) are assumed to be
relative to the sysroot.
[mark@rhel6-i686 ~]$ sudo !!
sudo /home/mark/install/systemtap/bin/stap
/home/mark/src/systemtap/testsuite/systemtap.base/backtrace.stp
begin
0xf7e55000 [stap_352097cecd0a63eb7192a18c8b4c901_10378] (inexact)
0xc052a8d6 (inexact)
0xf7e5c370 [stap_352097cecd0a63eb7192a18c8b4c901_10378] (inexact)
0xc052a9f0 (inexact)
0xc052b441 (inexact)
0xc0830f34 (inexact)
timer.ms(100)
0xc0479fdd (inexact)
0xf7e5b730 [stap_352097cecd0a63eb7192a18c8b4c901_10378] (inexact)
0xc047a765 (inexact)
0xc047ab19 (inexact)
0xc042873e (inexact)
0xc08313c5 (inexact)
0xc04316f2 (inexact)
0xc04110dd (inexact)
0xc0408964 (inexact)
0xc082a700 (inexact)
end
0xc05ad377 (inexact)
0xc05a25fc (inexact)
0xc052a8d6 (inexact)
0xf7e5c370 [stap_352097cecd0a63eb7192a18c8b4c901_10378] (inexact)
0xc052a9f0 (inexact)
0xc052b441 (inexact)
0xc0830f34 (inexact)
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.