public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* bugs
@ 2005-09-14 22:19 James Dickens
  2005-09-15  0:47 ` bugs Frank Ch. Eigler
  0 siblings, 1 reply; 2+ messages in thread
From: James Dickens @ 2005-09-14 22:19 UTC (permalink / raw)
  To: systemtap

the following script makes stap segfault, it should exit cleanly on
errors (yesterdays cvs)

probe kernel.function("sys_*") {
                if(pid() = $target) log("here");
                log(syscall_name() .
                   "arg0 =" . string(arg0() ) . " " .
                   "arg1 =" . string(arg1() ) . " " .
                   "arg2 =" .  string(arg2() ) );
        }

output:
semantic error: unable to find local 'target' near pc 0xc011cc71:
identifier '$target' at st4.stp:4:14
querying prologue-end of function 'sys_sched_setaffinity'
semantic error: unable to find local 'target' near pc 0xc011ce23:
identifier '$target' at st4.stp:4:14
querying prologue-end of function 'sys_sched_getaffinity'
semantic error: unable to find local 'target' near pc 0xc011ce94:
identifier '$target' at st4.stp:4:14
querying prologue-end of function 'sys_sched_yield'
finding location for local 'target' near address c011cee5, module bias 0
Segmentation fault



todays cvs is broken

[root@localhost src]# make
make  all-am
make[1]: Entering directory `/home/jamesd/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I. 
-DPKGLIBDIR='"/usr/local/libexec/systemtap"'
-DPKGDATADIR='"/usr/local/share/systemtap"'  -Werror -Wall -g -O2 -MT
stap-main.o -MD -MP -MF ".deps/stap-main.Tpo" -c -o stap-main.o `test
-f 'main.cxx' || echo './'`main.cxx; \
then mv -f ".deps/stap-main.Tpo" ".deps/stap-main.Po"; else rm -f
".deps/stap-main.Tpo"; exit 1; fi
/usr/include/unistd.h:330: error: expected initializer before __wuv
make[1]: *** [stap-main.o] Error 1
make[1]: Leaving directory `/home/jamesd/src'
make: *** [all] Error 2
[root@localhost src]#

fedora FC4

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

end of thread, other threads:[~2005-09-15  0:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-14 22:19 bugs James Dickens
2005-09-15  0:47 ` bugs Frank Ch. Eigler

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