This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
bugs
- From: James Dickens <jamesd dot wi at gmail dot com>
- To: systemtap at sources dot redhat dot com
- Date: Wed, 14 Sep 2005 10:17:35 -0500
- Subject: bugs
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=GQMBF/lhteB75t0z5fm7OOL0eNeRpl9fo412jQz6NoZjOZX57dWduiC0lhOGm5hZsKuN0dqzrsfPfmDKRhmMcUILgdqKlTpVipstLXXnTPj7NYuhVopwePYpHttw6e/A1iWzskDkXCSExX75PJ/onndKniCoLE6dSkM3eyLnPTg=
- Reply-to: jamesd dot wi at gmail dot com
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