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

* Re: bugs
  2005-09-14 22:19 bugs James Dickens
@ 2005-09-15  0:47 ` Frank Ch. Eigler
  0 siblings, 0 replies; 2+ messages in thread
From: Frank Ch. Eigler @ 2005-09-15  0:47 UTC (permalink / raw)
  To: systemtap

Hi -

jamesd.wi wrote:

> the following script makes stap segfault, it should exit cleanly on
> errors (yesterdays cvs)
>
> probe kernel.function("sys_*") {
>                 if(pid() = $target) log("here");
> [...]
> querying prologue-end of function 'sys_sched_yield'
> finding location for local 'target' near address c011cee5, module bias 0
> Segmentation fault

I cannot reproduce this with today's code, though did make a fix to a
potentially related region of code.  For segv reports, it is helpful
to run the program under a debugger to produce a stack traceback at
the moment of crash.  Please consider using bugzilla.


> todays cvs is broken
> [root@localhost src]# make

BTW there is no need to compile systemtap as root.

> [...]
> make[1]: Entering directory `/home/jamesd/src'
> if g++ -DHAVE_CONFIG_H -I. -I. -I. 
> [...]
> /usr/include/unistd.h:330: error: expected initializer before __wuv
> [...]

I don't see this problem either.  Maybe your source checkout was
botched.  A parse error in unistd.h is of course very strange.


- FChE

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