[Bug runtime/31597] New: Systemtap not extracting all the data sent to the print data in the buffers before shutdown
wcohen at redhat dot com
sourceware-bugzilla@sourceware.org
Tue Apr 2 19:13:29 GMT 2024
https://sourceware.org/bugzilla/show_bug.cgi?id=31597
Bug ID: 31597
Summary: Systemtap not extracting all the data sent to the
print data in the buffers before shutdown
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: runtime
Assignee: systemtap at sourceware dot org
Reporter: wcohen at redhat dot com
Target Milestone: ---
When reviewing the tests results for the syscall.exp tests different runs of
the same tests would have different tests fail. The syscall.exp tests should
be deterministics, but they are not. Note even those the second and third run
have same number of passes there are difference in which specific tests passed.
Four different runs of:
sudo make installcheck RUNTESTFLAGS=syscall.exp
=== systemtap Summary ===
# of expected passes 302
# of unexpected failures 38
# of untested testcases 1
# of unsupported tests 4
=== systemtap Summary ===
# of expected passes 299
# of unexpected failures 41
# of untested testcases 1
# of unsupported tests 4
=== systemtap Summary ===
# of expected passes 299
# of unexpected failures 41
# of untested testcases 1
# of unsupported tests 4
=== systemtap Summary ===
# of expected passes 295
# of unexpected failures 45
# of untested testcases 1
# of unsupported tests 4
One of the things that this test does is use the -c option to shut down the
systemtap instrumentation when the user-space command completes. However, it
appears that the shutdown sometimes happens too quickly and some of the print
output saved in the buffer has not been read out of the buffers, causing the
output to be truncated and the test to fail. To test this hypothesis I put
"sleep(1);" before the "stop_threads = 1;" in close_relayfs() and
kill_relayfs() functions in staprun/relay.c. I compared the systemtap.sum
output for the delayed shutdown. The only changes were the additional PASS in
the version with the failure. There were no FAIL: in the delayed version where
the previous 4 runs has PASS:.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Systemtap
mailing list