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 translator/12729] New: stap error message needs improvement


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

           Summary: stap error message needs improvement
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap@sourceware.org
        ReportedBy: dsmith@redhat.com


Original attempt:

# stap -v -e 'probe begin { printf("hello\n") }'
Pass 1: parsed user script and 76 library script(s) using
150020virt/21580res/2040shr kb, in 90usr/0sys/99real ms.
Pass 2: analyzed script: 1 probe(s), 0 function(s), 0 embed(s), 0 global(s)
using 150556virt/22276res/2204shr kb, in 0usr/0sys/4real ms.
Pass 3: translated to C into
"/tmp/stapEq7Bvr/stap_12e49ab5f0b148f23233944cba45c6a2_649.c" using
150556virt/22440res/2360shr kb, in 0usr/0sys/0real ms.
Pass 4: compiled C into "stap_12e49ab5f0b148f23233944cba45c6a2_649.ko" in
2750usr/780sys/3600real ms.
Pass 5: starting run.
Pass 5: run completed in 0usr/0sys/0real ms.
Pass 5: run failed.  Try again with another '--vp 00001' option.

OK, so stap failed for some reason.  Let's take stap's suggestion and add
'--vp' (but bump it up to 5 because we *really* want to see what's going
wrong):

# stap -v --vp 00005 -e 'probe begin { printf("hello\n") }'
Pass 1: parsed user script and 76 library script(s) using
150020virt/21576res/2040shr kb, in 90usr/10sys/99real ms.
Pass 2: analyzed script: 1 probe(s), 0 function(s), 0 embed(s), 0 global(s)
using 150556virt/22268res/2204shr kb, in 0usr/0sys/4real ms.
Pass 3: using cached
/home/dsmith/.systemtap/cache/12/stap_12e49ab5f0b148f23233944cba45c6a2_649.c
Pass 4: using cached
/home/dsmith/.systemtap/cache/12/stap_12e49ab5f0b148f23233944cba45c6a2_649.ko
Pass 5: starting run.
Running /usr/local/bin/staprun -v -v
/tmp/stapfOABGl/stap_12e49ab5f0b148f23233944cba45c6a2_649.ko
Spawn waitpid result (0x7f00): 127
Pass 5: run completed in 0usr/0sys/0real ms.
Pass 5: run failed.  Try again with another '--vp 00001' option.
Running rm -rf /tmp/stapfOABGl
Spawn waitpid result (0x0): 0

Not much new information.  To find out what's wrong, let's run the staprun
command directly:

# /usr/local/bin/staprun -v -v
/tmp/stapfOABGl/stap_12e49ab5f0b148f23233944cba45c6a2_649.ko
bash: /usr/local/bin/staprun: Permission denied

Long story short, on this computer my account was only in the 'stapdev' group
and to use systemtap I'd need to be in both the 'stapdev' and 'stapusr' groups.

Systemtap needs a better error message here.  One possibility would be for the
stap executable to check for stapusr group membership before running staprun.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]