* [Bug testsuite/4466] New: system_func (0,1,1) fails on ppc64.
@ 2007-05-07 12:50 srinivasa at in dot ibm dot com
2007-05-07 13:46 ` [Bug testsuite/4466] " fche at redhat dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: srinivasa at in dot ibm dot com @ 2007-05-07 12:50 UTC (permalink / raw)
To: systemtap
My environment is kernel-2.6.21-rc7, systemtap-20070505, elfutils-0.125
Systemtap.samples/system_func.stp probes sys_open and prints "sys_open". But
system_func.stp taking some time to print "sys_open" and hence system_func.exp
which greps "sys_open" is failing.
==================================================================
Running
/home/systemtap/tmp/stap_testing_200705070516/src/testsuite/systemtap.samples/system_func.e
xp ...
cat: __xyzzy123ABC__: No such file or directory
root
Waititing for processes to exit
DONE
FAIL: system_func (0,1,1)
testcase
/home/systemtap/tmp/stap_testing_200705070516/src/testsuite/systemtap.samples/system_func.
exp completed in 6 seconds
================================================
I have added extra 10 secs timer to wait for "sys_open" message. This fixes the
problem.
=======================================
#! stap
# test the system() function
probe kernel.function("sys_open") {
# very inefficient. Testing only. DO NOT DO THIS
msg="echo sys_open"
system(msg)
}
probe begin {
# should succeed
system("whoami")
# should fail
system("cat __xyzzy123ABC__")
}
probe timer.ms(10000)
{
exit()
}
probe end {
# should succeed
system("echo DONE")
}
============================
--
Summary: system_func (0,1,1) fails on ppc64.
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: testsuite
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: srinivasa at in dot ibm dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=4466
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug testsuite/4466] system_func (0,1,1) fails on ppc64.
2007-05-07 12:50 [Bug testsuite/4466] New: system_func (0,1,1) fails on ppc64 srinivasa at in dot ibm dot com
@ 2007-05-07 13:46 ` fche at redhat dot com
2007-05-29 4:48 ` srinivasa at in dot ibm dot com
2007-09-17 17:53 ` hunt at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: fche at redhat dot com @ 2007-05-07 13:46 UTC (permalink / raw)
To: systemtap
------- Additional Comments From fche at redhat dot com 2007-05-07 14:46 -------
This is an example of a common race between "begin" and other probes.
Or at least, there used to be a race. Now, begin probes are strictly
done first, and kprobes etc. are only registered afterward.
What could work here even better is an added timer probe that is bound
to run while the kprobes are active, and thus trigger sys_open soon:
probe timer.ms(500) { system ("cat DOESNOTEXIST") }
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4466
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug testsuite/4466] system_func (0,1,1) fails on ppc64.
2007-05-07 12:50 [Bug testsuite/4466] New: system_func (0,1,1) fails on ppc64 srinivasa at in dot ibm dot com
2007-05-07 13:46 ` [Bug testsuite/4466] " fche at redhat dot com
@ 2007-05-29 4:48 ` srinivasa at in dot ibm dot com
2007-09-17 17:53 ` hunt at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: srinivasa at in dot ibm dot com @ 2007-05-29 4:48 UTC (permalink / raw)
To: systemtap
------- Additional Comments From srinivasa at in dot ibm dot com 2007-05-29 04:48 -------
Bug is getting reproduced on systemtap-20070526 build.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://sourceware.org/bugzilla/show_bug.cgi?id=4466
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug testsuite/4466] system_func (0,1,1) fails on ppc64.
2007-05-07 12:50 [Bug testsuite/4466] New: system_func (0,1,1) fails on ppc64 srinivasa at in dot ibm dot com
2007-05-07 13:46 ` [Bug testsuite/4466] " fche at redhat dot com
2007-05-29 4:48 ` srinivasa at in dot ibm dot com
@ 2007-09-17 17:53 ` hunt at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: hunt at redhat dot com @ 2007-09-17 17:53 UTC (permalink / raw)
To: systemtap
------- Additional Comments From hunt at redhat dot com 2007-09-17 17:06 -------
Looks like there is still a race. Checked in some additional fixes.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=4466
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-09-17 17:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-07 12:50 [Bug testsuite/4466] New: system_func (0,1,1) fails on ppc64 srinivasa at in dot ibm dot com
2007-05-07 13:46 ` [Bug testsuite/4466] " fche at redhat dot com
2007-05-29 4:48 ` srinivasa at in dot ibm dot com
2007-09-17 17:53 ` hunt at redhat dot com
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).