Title: `test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation` crashes intermittently · Issue #128806 · python/cpython · GitHub
Open Graph Title: `test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation` crashes intermittently · Issue #128806 · python/cpython
X Title: `test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation` crashes intermittently · Issue #128806 · python/cpython
Description: Crash report What happened? test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation crashes intermittently. I am able to reproduce the crash if I run test_free_threading forever, but haven't been able to further ...
Open Graph Description: Crash report What happened? test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation crashes intermittently. I am able to reproduce the crash if I run test_free_threading fo...
X Description: Crash report What happened? test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation crashes intermittently. I am able to reproduce the crash if I run test_free_threading fo...
Opengraph URL: https://github.com/python/cpython/issues/128806
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation` crashes intermittently ","articleBody":"# Crash report\n\n### What happened?\n\n`test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation` crashes intermittently. I am able to reproduce the crash if I run `test_free_threading` forever, but haven't been able to further minimize the reproducer. It typically takes around 50 iterations before crashing.\n\nThis assertion is failing:\n\nhttps://github.com/python/cpython/blob/b70a567575db37846beecbe8b40fb56b875274db/Python/instrumentation.c#L1249\n\nThis also happens intermittently on buildbots ([ex]( https://buildbot.python.org/#/builders/1606/builds/121)).\n\n## Reproducer\n\n```\n./python -m test test_free_threading -F\n```\n\nPython stack trace:\n\n```\npython: Python/instrumentation.c:1249: _Py_call_instrumentation_line: Assertion `debug_check_sanity(tstate->interp, code)' failed.\npython: Python/instrumentation.c:1249: _Py_call_instrumentation_line: Assertion `debug_check_sanity(tstate->interp, code)' failed.\nFatal Python error: Aborted\n\n\u003cCannot show all threads while the GIL is disabled>\nStack (most recent call first):\n File \"python: Python/instrumentation.c:1249: _Py_call_instrumentation_line: Assertion `debug_check_sanity(tstate->interp, code)' failed.\n/data/users/mpage/cpython/Lib/unittest/case.py\n```\n\nNative stack trace:\n\n```\n(gdb) bt\n#0 0x00007f923008bacc in __pthread_kill_implementation () from /lib64/libc.so.6\n#1 0x00007f923003e686 in raise () from /lib64/libc.so.6\n#2 0x00007f9230028833 in abort () from /lib64/libc.so.6\n#3 0x00007f923002875b in __assert_fail_base.cold () from /lib64/libc.so.6\n#4 0x00007f92300373c6 in __assert_fail () from /lib64/libc.so.6\n#5 0x00000000006e571e in _Py_call_instrumentation_line (tstate=tstate@entry=0xb54ae0, frame=frame@entry=0x7f922fe5f7f8, instr=instr@entry=0x20006051bd6, prev=0x20006051bea)\n at Python/instrumentation.c:1332\n#6 0x000000000066e4b5 in _PyEval_EvalFrameDefault (tstate=tstate@entry=0xb54ae0, frame=0x7f922fe5f7f8, frame@entry=0x7f922fe5f1c8, throwflag=throwflag@entry=0)\n at Python/generated_cases.c.h:4742\n#7 0x00000000006827be in _PyEval_EvalFrame (throwflag=0, frame=0x7f922fe5f1c8, tstate=0xb54ae0) at ./Include/internal/pycore_ceval.h:116\n#8 _PyEval_Vector (tstate=\u003coptimized out>, func=\u003coptimized out>, locals=locals@entry=0x0, args=0x7f91f4bff800, argcount=3, kwnames=\u003coptimized out>) at Python/ceval.c:1913\n#9 0x00000000004b5497 in _PyFunction_Vectorcall (func=\u003coptimized out>, stack=\u003coptimized out>, nargsf=\u003coptimized out>, kwnames=\u003coptimized out>) at Objects/call.c:413\n#10 0x00000000004b9636 in _PyObject_VectorcallTstate (tstate=0xb54ae0, callable=\u003cfunction at remote 0x2001e1b02b0>, args=0x7f91f4bff800, nargsf=3, kwnames=0x0)\n at ./Include/internal/pycore_call.h:167\n#11 0x00000000004ba02d in method_vectorcall (method=\u003coptimized out>, args=0x2000135f8d8, nargsf=\u003coptimized out>, kwnames=0x0) at Objects/classobject.c:94\n#12 0x00000000004b7c52 in _PyVectorcall_Call (tstate=tstate@entry=0xb54ae0, func=0x4b9f19 \u003cmethod_vectorcall>, callable=callable@entry=\u003cmethod at remote 0x2000135a1b0>,\n tuple=tuple@entry=(12, [\u003cfunction at remote 0x2001e1b25b0>, \u003cfunction at remote 0x2001e1b2310>, \u003cfunction at remote 0x2001e1b0fd0>, \u003cfunction at remote 0x2001e1be7f0>, \u003cfunction at remote 0x2001e1b3110>, \u003cfunction at remote 0x2001e1bae30>, \u003cfunction at remote 0x2001e1b41b0>, \u003cfunction at remote 0x2001e1b32d0>, \u003cfunction at remote 0x2001e1be710>, \u003cfunction at remote 0x2001e1b7010>, \u003cfunction at remote 0x2001e1b7a90>, \u003cfunction at remote 0x2001e1b1eb0>, \u003cfunction at remote 0x2001e1b4990>, \u003cfunction at remote 0x2001e1b9930>, \u003cfunction at remote 0x2001e1b6130>, \u003cfunction at remote 0x2001e1b4ed0>, \u003cfunction at remote 0x2001e1b69f0>, \u003cfunction at remote 0x2001e1b2f50>, \u003cfunction at remote 0x2001e1b80b0>, \u003cfunction at remote 0x2001e1b4610>, \u003cfunction at remote 0x2001e1b7d30>, \u003cfunction at remote 0x2001e1b87b0>, \u003cfunction at remote 0x2001e1b1350>, \u003cfunction at remote 0x2001e1b5a30>, \u003cfunction at remote 0x2001e1b1510>, \u003cfunction at remote 0x2001e1b0710>, \u003cfunction at remote 0x2001e1b5170>, \u003cfunction at remote 0x2001e1b2770>, \u003cfunction ...(truncated), kwargs=kwargs@entry={}) at ./Include/object.h:783\n#13 0x00000000004b7fbe in _PyObject_Call (tstate=0xb54ae0, callable=callable@entry=\u003cmethod at remote 0x2000135a1b0>,\n args=(12, [\u003cfunction at remote 0x2001e1b25b0>, \u003cfunction at remote 0x2001e1b2310>, \u003cfunction at remote 0x2001e1b0fd0>, \u003cfunction at remote 0x2001e1be7f0>, \u003cfunction at remote 0x2001e1b3110>, \u003cfunction at remote 0x2001e1bae30>, \u003cfunction at remote 0x2001e1b41b0>, \u003cfunction at remote 0x2001e1b32d0>, \u003cfunction at remote 0x2001e1be710>, \u003cfunction at remote 0x2001e1b7010>, \u003cfunction at remote 0x2001e1b7a90>, \u003cfunction at remote 0x2001e1b1eb0>, \u003cfunction at remote 0x2001e1b4990>, \u003cfunction at remote 0x2001e1b9930>, \u003cfunction at remote 0x2001e1b6130>, \u003cfunction at remote 0x2001e1b4ed0>, \u003cfunction at remote 0x2001e1b69f0>, \u003cfunction at remote 0x2001e1b2f50>, \u003cfunction at remote 0x2001e1b80b0>, \u003cfunction at remote 0x2001e1b4610>, \u003cfunction at remote 0x2001e1b7d30>, \u003cfunction at remote 0x2001e1b87b0>, \u003cfunction at remote 0x2001e1b1350>, \u003cfunction at remote 0x2001e1b5a30>, \u003cfunction at remote 0x2001e1b1510>, \u003cfunction at remote 0x2001e1b0710>, \u003cfunction at remote 0x2001e1b5170>, \u003cfunction at remote 0x2001e1b2770>, \u003cfunction ...(truncated), kwargs={}) at Objects/call.c:348\n#14 0x00000000004b8015 in PyObject_Call (callable=callable@entry=\u003cmethod at remote 0x2000135a1b0>, args=\u003coptimized out>, kwargs=\u003coptimized out>) at Objects/call.c:373\n#15 0x000000000065ede4 in _PyEval_EvalFrameDefault (tstate=tstate@entry=0xb54ae0, frame=0x7f922fe5f138, frame@entry=0x7f922fe5f020, throwflag=throwflag@entry=0)\n at Python/generated_cases.c.h:1778\n#16 0x00000000006827be in _PyEval_EvalFrame (throwflag=0, frame=0x7f922fe5f020, tstate=0xb54ae0) at ./Include/internal/pycore_ceval.h:116\n#17 _PyEval_Vector (tstate=\u003coptimized out>, func=\u003coptimized out>, locals=locals@entry=0x0, args=0x7f91f4bffd08, argcount=1, kwnames=\u003coptimized out>) at Python/ceval.c:1913\n#18 0x00000000004b5497 in _PyFunction_Vectorcall (func=\u003coptimized out>, stack=\u003coptimized out>, nargsf=\u003coptimized out>, kwnames=\u003coptimized out>) at Objects/call.c:413\n#19 0x00000000004ba1ab in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=1, args=0x7f91f4bffd08, callable=\u003cfunction at remote 0x20000a5a810>, tstate=0xb54ae0)\n at ./Include/internal/pycore_call.h:167\n#20 method_vectorcall (method=\u003coptimized out>, args=\u003coptimized out>, nargsf=\u003coptimized out>, kwnames=0x0) at Objects/classobject.c:72\n#21 0x00000000004b7c52 in _PyVectorcall_Call (tstate=tstate@entry=0xb54ae0, func=0x4b9f19 \u003cmethod_vectorcall>, callable=callable@entry=\u003cmethod at remote 0x2000135e5f0>, tuple=tuple@entry=(),\n kwargs=kwargs@entry=0x0) at ./Include/object.h:783\n#22 0x00000000004b7fbe in _PyObject_Call (tstate=0xb54ae0, callable=\u003cmethod at remote 0x2000135e5f0>, args=(), kwargs=0x0) at Objects/call.c:348\n#23 0x00000000004b8015 in PyObject_Call (callable=\u003coptimized out>, args=\u003coptimized out>, kwargs=\u003coptimized out>) at Objects/call.c:373\n#24 0x00000000007b91bf in thread_run (boot_raw=boot_raw@entry=0xb4a2f0) at ./Modules/_threadmodule.c:346\n#25 0x00000000007281ef in pythread_wrapper (arg=\u003coptimized out>) at Python/thread_pthread.h:242\n#26 0x00007f9230089d82 in start_thread () from /lib64/libc.so.6\n#27 0x00007f923010ee20 in clone3 () from /lib64/libc.so.6\n(gdb)\n```\n\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n### Output from running 'python -VV' on the command line:\n\nPython 3.14.0a3+ experimental free-threading build (heads/main:5e65a1acc0b, Jan 12 2025, 08:39:41) [GCC 11.5.0 20240719 (Red Hat 11.5.0-2)]","author":{"url":"https://github.com/mpage","@type":"Person","name":"mpage"},"datePublished":"2025-01-14T00:50:53Z","url":"https://github.com/python/cpython/issues/128806"}
| 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:c6a7fb4a-ef03-9f70-039d-4f7895f98a60 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF46:B53AF:36AC6D1:48BFB6A:6B020B52 |
| html-safe-nonce | ad34e18c795d93a91487e08b189a6795afd28dcf74a5f7b4b2351bdbf0bbe76b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjQ2OkI1M0FGOjM2QUM2RDE6NDhCRkI2QTo2QjAyMEI1MiIsInZpc2l0b3JfaWQiOiI5MzIzNDIzODg0OTAzNzM5NzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | de6e940d80377dc7fa0e7c099b1c43912a87523e2524cdaaf62b98543892dee6 |
| hovercard-subject-tag | issue:2785851744 |
| 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/128806/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d23370e01bc9f2e5eb09ff1786304ad2f38a74b0b65bde91cdbf8d7ca8fdd263/python/cpython/issues/128806 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d23370e01bc9f2e5eb09ff1786304ad2f38a74b0b65bde91cdbf8d7ca8fdd263/python/cpython/issues/128806 |
| og:image:alt | Crash report What happened? test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation crashes intermittently. I am able to reproduce the crash if I run test_free_threading fo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mpage |
| 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