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]

Re: [BUG] Systemtap git master HEAD fails on Fedora 17 x86_64 (kernel 3.6.7)


Hello!

On Mon, Nov 26, 2012 at 2:54 PM, agentzh wrote:
>     open("/lib/modules/3.6.7-4.fc17.x86_64/build/System.map",
> O_RDONLY) = -1 ENOENT (No such file or directory)
>     open("/boot/System.map-3.6.7-4.fc17.x86_64", O_RDONLY) = -1 EACCES
> (Permission denied)

Okay...from the strace output given by myself, it seems that it was
just because stap failed to read the file
/boot/System.map-3.6.7-4.fc17.x86_64:

    $ ls -lh /boot/System.map-3.6.7-4.fc17.x86_64
    -rw-------. 1 root root 2.4M Nov 20 11:43
/boot/System.map-3.6.7-4.fc17.x86_64

Because I'm using my own non-root account (belonging to the stapdev
and stapusr groups), stap fails to read this file. Fixing the file
permissions make stap work for me again:

    $ PATH=/opt/systemtap/bin:$PATH stap -v -e 'probe begin {
println("hello") exit() }'
    Pass 1: parsed user script and 91 library script(s) using
205804virt/25364res/2860shr/23128data kb, in 90usr/0sys/94real ms.
    Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0
global(s) using 206332virt/26152res/2980shr/23656data kb, in
0usr/0sys/2real ms.
    Pass 3: using cached
/home/agentzh/.systemtap/cache/02/stap_0243d4699068e62d2cf9e66a07758f6b_950.c
    Pass 4: using cached
/home/agentzh/.systemtap/cache/02/stap_0243d4699068e62d2cf9e66a07758f6b_950.ko
    Pass 5: starting run.
    hello
    Pass 5: run completed in 0usr/20sys/322real ms.

Maybe stap should give an error message here instead of just crashing silently?

Best regards,
-agentzh


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]