Title: test_dtrace should try to terminate SystemTap gracefully before SIGKILL · Issue #156722 · python/cpython · GitHub
Open Graph Title: test_dtrace should try to terminate SystemTap gracefully before SIGKILL · Issue #156722 · python/cpython
X Title: test_dtrace should try to terminate SystemTap gracefully before SIGKILL · Issue #156722 · python/cpython
Description: Bug report Bug description: While checking out gh-156701 where the systemtap compilation was taking more than 10 seconds (hence an increase to timeout is required) I noticed also that the buildbot that I was testing at had too many D-sta...
Open Graph Description: Bug report Bug description: While checking out gh-156701 where the systemtap compilation was taking more than 10 seconds (hence an increase to timeout is required) I noticed also that the buildbot ...
X Description: Bug report Bug description: While checking out gh-156701 where the systemtap compilation was taking more than 10 seconds (hence an increase to timeout is required) I noticed also that the buildbot ...
Opengraph URL: https://github.com/python/cpython/issues/156722
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_dtrace should try to terminate SystemTap gracefully before SIGKILL","articleBody":"# Bug report\n\n### Bug description:\n\nWhile checking out gh-156701 where the systemtap compilation was taking more than 10 seconds (hence an increase to timeout is required) I noticed also that the buildbot that I was testing at had too many D-state processes. That's possibly due to `TraceBackend.trace()` sending a SIGKILL immediately to the tracer process group when a timeout happens.\n\nThis prevents SystemTap and its children from performing normal cleanup. As mentioned in gh-156701 this left stap* temporary files behind, on the Fedora ppc64le buildbots, but also due repeated SystemTap timeouts, the buildbots had many orphaned staprun processes in Dstate, and the machines waited for them during shutdown.\n\nFrom the system tap documentation: https://sourceware.org/systemtap/man/stap.1.html#abnormal-termination\n\n```\nOne should avoid killing the stap process forcibly, for example with SIGKILL, because the stapio process (a child process of the stap process) and the loaded module may be left running on the system. If this happens, send SIGTERM or SIGINT to any remaining stapio processes, then use rmmod to unload the systemtap module.\n```\n\nIncreasing the usability timeout should fix the premature timeout https://github.com/python/cpython/pull/156720, but genuine timeout still needs to be handled properly with SIGTERM and then if that fails a SIGKILL.\n\n### CPython versions tested on:\n\nCPython main branch, 3.16, 3.15\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-156753\n* gh-157985\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/stratakis","@type":"Person","name":"stratakis"},"datePublished":"2026-08-31T15:38:26Z","url":"https://github.com/python/cpython/issues/156722"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:322d4060-52fd-84ae-4699-32ee64d6652b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8BD8:17FB7:3B6DFD4:4B3D99B:6B02368E |
| html-safe-nonce | 05bbe2c21ba33ffaeb8691d9a19f0322132cb81b96f9be990e8769d36c64c03c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkQ4OjE3RkI3OjNCNkRGRDQ6NEIzRDk5Qjo2QjAyMzY4RSIsInZpc2l0b3JfaWQiOiIzNDg2ODQ5ODk1MTc0OTExNjMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4c265250db26c33f716b6fa338c2164e6321342167f0cad80dd5e0fe91e6f4fe |
| hovercard-subject-tag | issue:5302007461 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/156722/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a5f66ff5f88b0041fb26bceba9790ac7a9446c72af64a25a4744d2b0002db255/python/cpython/issues/156722 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a5f66ff5f88b0041fb26bceba9790ac7a9446c72af64a25a4744d2b0002db255/python/cpython/issues/156722 |
| og:image:alt | Bug report Bug description: While checking out gh-156701 where the systemtap compilation was taking more than 10 seconds (hence an increase to timeout is required) I noticed also that the buildbot ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | stratakis |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width