public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/11853] New: staprun errors do not appear on xterm
@ 2010-07-29 10:21 andi-bz at firstfloor dot org
  2010-07-29 12:18 ` [Bug translator/11853] " fche at redhat dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: andi-bz at firstfloor dot org @ 2010-07-29 10:21 UTC (permalink / raw)
  To: systemtap

With stap 1.3

By mistake I tried to do a probe without being root.

This just gives a useless error message:
Pass 5: run failed.  Try again with another '--vp 00001' option.

Even with -vvvvvvvvvv and the suggest --vp option it doesn't get
better, it doesn't say anywhere that I'm not root.

It looks like this gets printed internally according to strace by
one of the children:
13352 execve("/bin/sh", ["sh", "-c", "/pkg/systemtap-1.3/bin/staprun -"...], [/*
82 vars */]) = 0
...
13352 write(2, "ERROR: The effective user ID of "..., 141) = 141
13352 exit_group(1)                     = ?

but that never appeared on my xterm. It should.

-- 
           Summary: staprun errors do not appear on xterm
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: andi-bz at firstfloor dot org
  GCC host triplet: x86_64-linux


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

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

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

* [Bug translator/11853] staprun errors do not appear on xterm
  2010-07-29 10:21 [Bug translator/11853] New: staprun errors do not appear on xterm andi-bz at firstfloor dot org
@ 2010-07-29 12:18 ` fche at redhat dot com
  2010-07-29 14:46 ` andi-bz at firstfloor dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: fche at redhat dot com @ 2010-07-29 12:18 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2010-07-29 12:18 -------
Andi, could you check whether something closes stderr in
your strace log?  I can't reproduce this by hand.  Are
you in stapdev/stapusr?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


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

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

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

* [Bug translator/11853] staprun errors do not appear on xterm
  2010-07-29 10:21 [Bug translator/11853] New: staprun errors do not appear on xterm andi-bz at firstfloor dot org
  2010-07-29 12:18 ` [Bug translator/11853] " fche at redhat dot com
@ 2010-07-29 14:46 ` andi-bz at firstfloor dot org
  2010-07-29 15:05 ` fche at redhat dot com
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: andi-bz at firstfloor dot org @ 2010-07-29 14:46 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From andi-bz at firstfloor dot org  2010-07-29 14:46 -------
Created an attachment (id=4886)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4886&action=view)
strace log

I don't see any close(2) before the euid error output, there's only one 
afterwards, but it's in a different process.

Attaching the full log.


-- 


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

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

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

* [Bug translator/11853] staprun errors do not appear on xterm
  2010-07-29 10:21 [Bug translator/11853] New: staprun errors do not appear on xterm andi-bz at firstfloor dot org
  2010-07-29 12:18 ` [Bug translator/11853] " fche at redhat dot com
  2010-07-29 14:46 ` andi-bz at firstfloor dot org
@ 2010-07-29 15:05 ` fche at redhat dot com
  2010-07-29 15:21 ` andi-bz at firstfloor dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: fche at redhat dot com @ 2010-07-29 15:05 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2010-07-29 15:05 -------
OK, that log includes lots of messages printed to stderr, both
from the stap process, and the fork/exec'd staprun.  What subset
of those messages did you see on your xterm?  (There appears to
be no misuse of O_CLOEXEC.)

-- 


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

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

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

* [Bug translator/11853] staprun errors do not appear on xterm
  2010-07-29 10:21 [Bug translator/11853] New: staprun errors do not appear on xterm andi-bz at firstfloor dot org
                   ` (2 preceding siblings ...)
  2010-07-29 15:05 ` fche at redhat dot com
@ 2010-07-29 15:21 ` andi-bz at firstfloor dot org
  2010-07-29 15:36 ` fche at redhat dot com
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: andi-bz at firstfloor dot org @ 2010-07-29 15:21 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From andi-bz at firstfloor dot org  2010-07-29 15:21 -------
% stap chdir.stp 
Pass 5: run failed.  Try again with another '--vp 00001' option.
% 


-- 


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

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

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

* [Bug translator/11853] staprun errors do not appear on xterm
  2010-07-29 10:21 [Bug translator/11853] New: staprun errors do not appear on xterm andi-bz at firstfloor dot org
                   ` (3 preceding siblings ...)
  2010-07-29 15:21 ` andi-bz at firstfloor dot org
@ 2010-07-29 15:36 ` fche at redhat dot com
  2010-07-29 15:52 ` andi-bz at firstfloor dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: fche at redhat dot com @ 2010-07-29 15:36 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2010-07-29 15:36 -------
(In reply to comment #4)
> % stap chdir.stp 
> Pass 5: run failed.  Try again with another '--vp 00001' option.
> % 

That's not from the run that generated the strace logs though.

Also, try running staprun by hand (stap -p4 -mfoo foo.stp; staprun foo.ko).


-- 


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

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

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

* [Bug translator/11853] staprun errors do not appear on xterm
  2010-07-29 10:21 [Bug translator/11853] New: staprun errors do not appear on xterm andi-bz at firstfloor dot org
                   ` (4 preceding siblings ...)
  2010-07-29 15:36 ` fche at redhat dot com
@ 2010-07-29 15:52 ` andi-bz at firstfloor dot org
  2010-07-29 17:38 ` fche at redhat dot com
  2010-07-29 18:27 ` andi-bz at firstfloor dot org
  7 siblings, 0 replies; 9+ messages in thread
From: andi-bz at firstfloor dot org @ 2010-07-29 15:52 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From andi-bz at firstfloor dot org  2010-07-29 15:52 -------
Created an attachment (id=4887)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4887&action=view)
script

Here's a full typescript with no error.

But the error should appear without any special options anyways.


-- 


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

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

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

* [Bug translator/11853] staprun errors do not appear on xterm
  2010-07-29 10:21 [Bug translator/11853] New: staprun errors do not appear on xterm andi-bz at firstfloor dot org
                   ` (5 preceding siblings ...)
  2010-07-29 15:52 ` andi-bz at firstfloor dot org
@ 2010-07-29 17:38 ` fche at redhat dot com
  2010-07-29 18:27 ` andi-bz at firstfloor dot org
  7 siblings, 0 replies; 9+ messages in thread
From: fche at redhat dot com @ 2010-07-29 17:38 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2010-07-29 17:37 -------
I can't figure this one out yet.  It certainly seems like the
various processes are sending the messages out.

One thing that's clear though is that the strace is not quite pure,
possibly complicated by staprun's setuid nature.  The typescript
traffic includes attempts to load the module (the "inserting module"
parts) that don't show up in the strace.  Maybe another syscall
tracing widget is needed.  Does older systemtap work on this
kernel?

I get the sense that some security widget is killing staprun and
perhaps its stderr channel.  Does dmesg help?


-- 


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

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

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

* [Bug translator/11853] staprun errors do not appear on xterm
  2010-07-29 10:21 [Bug translator/11853] New: staprun errors do not appear on xterm andi-bz at firstfloor dot org
                   ` (6 preceding siblings ...)
  2010-07-29 17:38 ` fche at redhat dot com
@ 2010-07-29 18:27 ` andi-bz at firstfloor dot org
  7 siblings, 0 replies; 9+ messages in thread
From: andi-bz at firstfloor dot org @ 2010-07-29 18:27 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From andi-bz at firstfloor dot org  2010-07-29 18:27 -------
There's nothing in dmesg and I don't run any security modules like selinux or
similar.

It might be that strace affects the output. I can try again with the other
syscall tracer.


-- 


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

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

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

end of thread, other threads:[~2010-07-29 18:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-29 10:21 [Bug translator/11853] New: staprun errors do not appear on xterm andi-bz at firstfloor dot org
2010-07-29 12:18 ` [Bug translator/11853] " fche at redhat dot com
2010-07-29 14:46 ` andi-bz at firstfloor dot org
2010-07-29 15:05 ` fche at redhat dot com
2010-07-29 15:21 ` andi-bz at firstfloor dot org
2010-07-29 15:36 ` fche at redhat dot com
2010-07-29 15:52 ` andi-bz at firstfloor dot org
2010-07-29 17:38 ` fche at redhat dot com
2010-07-29 18:27 ` andi-bz at firstfloor dot org

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