bugs
James Dickens
jamesd.wi@gmail.com
Wed Sep 14 22:19:00 GMT 2005
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
More information about the Systemtap
mailing list