René's URL Explorer Experiment


Title: test_perf_profiler cores periodically on macOS/aarch64 · Issue #149156 · python/cpython · GitHub

Open Graph Title: test_perf_profiler cores periodically on macOS/aarch64 · Issue #149156 · python/cpython

X Title: test_perf_profiler cores periodically on macOS/aarch64 · Issue #149156 · python/cpython

Description: Crash report What happened? When running test_perf_profiler, the subprocess fails with what appears to be a bad memory access. This doesn't happen every time, maybe 1 in 5 runs. I can't tell if it's load related (It doesn't seem to be fr...

Open Graph Description: Crash report What happened? When running test_perf_profiler, the subprocess fails with what appears to be a bad memory access. This doesn't happen every time, maybe 1 in 5 runs. I can't tell if it'...

X Description: Crash report What happened? When running test_perf_profiler, the subprocess fails with what appears to be a bad memory access. This doesn't happen every time, maybe 1 in 5 runs. I can't tel...

Opengraph URL: https://github.com/python/cpython/issues/149156

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_perf_profiler cores periodically on macOS/aarch64","articleBody":"# Crash report\n\n### What happened?\n\nWhen running `test_perf_profiler`, the subprocess fails with what appears to be a bad memory access. \n\nThis doesn't happen every time, maybe 1 in 5 runs. I can't tell if it's load related (It doesn't seem to be from my extremely unscientific testing), but it does happen when running only this test suite (ie test_perf_profiler), or all the Python tests in parallel.  I've also seen this happen on the MacOS build bots. \n\nThis build was configured as such -\n```\n/Volumes/devel/src/cpython-fixes/configure --with-assertions --with-pydebug --enable-safety --enable-slower-safety CC=`basename $CC`\n```\nNote that the build tree (and thus cwd when running the tests) is completely outside of the source tree (I doubt this makes a difference, but who knows).\n\n```python\n% ./python -m test test_perf_profiler --header\nRaised RLIMIT_NOFILE: 256 -\u003e 1024\n== CPython 3.15.0a8+ (heads/main:4a5d25c26c0, Apr 29 2026, 16:33:39) [Clang 22.1.4 ]\n== macOS-26.4.1-arm64-arm-64bit-Mach-O little-endian\n== Python build: debug\n== cwd: /Volumes/devel/build/cpython-fixes.debug/build/test_python_worker_55492æ\n== CPU count: 12\n== encodings: locale=UTF-8 FS=utf-8\n== resources: all test resources are disabled, use -u option to unskip tests\n\nUsing random seed: 1637940672\n0:00:00 load avg: 3.66 Run 1 test sequentially in a single process\n0:00:00 load avg: 3.66 [1/1] test_perf_profiler\ntest test_perf_profiler failed -- Traceback (most recent call last):\n  File \"/Volumes/devel/src/cpython-fixes/Lib/test/test_perf_profiler.py\", line 145, in test_trampoline_works_with_forks\n    self.assertEqual(process.returncode, 0)\n    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: 139 != 0\n\n0:00:02 load avg: 3.61 [1/1/1] test_perf_profiler failed (1 failure)\n\n== Tests result: FAILURE ==\n\n1 test failed:\n    test_perf_profiler\n\nTotal duration: 2.5 sec\nTotal tests: run=14 failures=1 skipped=5\nTotal test files: run=1/1 failed=1\nResult: FAILURE\n```\n\nI codesigned the python binary for coredumping so was able to obtain this stack trace -\n\n```\n% lldb --core /cores/core.55510 ./python\n(lldb) target create \"./python\" --core \"/cores/core.55510\"\nbt\nCore file '/cores/core.55510' (arm64) was loaded.\n(lldb) bt\n* thread #1, stop reason = ESR_EC_IABORT_EL0 (fault address: 0x10510f84c)\n  * frame #0: 0x000000010510f84c\n    frame #1: 0x000000010510f84c\n    frame #2: 0x0000000104a4f4d0 python`py_trampoline_evaluator(ts=0x0000000104d8a360, frame=0x0000000105104140, throw=0) at perf_trampoline.c:450:12\n    frame #3: 0x00000001049062e4 python`_PyEval_EvalFrame(tstate=0x0000000104d8a360, frame=0x0000000105104140, throwflag=0) at pycore_ceval.h:120:12\n    frame #4: 0x0000000104906208 python`_PyEval_Vector(tstate=0x0000000104d8a360, func=0x0000000109af9790, locals=0x0000000000000000, args=0x000000016b7f2a88, argcount=0, kwnames=0x0000000000000000) at ceval.c:2124:12\n    frame #5: 0x00000001046f158c python`_PyFunction_Vectorcall(func=0x0000000109af9790, stack=0x000000016b7f2a88, nargsf=9223372036854775808, kwnames=0x0000000000000000) at call.c:413:16\n    frame #6: 0x00000001046efd80 python`_PyObject_VectorcallTstate(tstate=0x0000000104d8a360, callable=0x0000000109af9790, args=0x000000016b7f2a88, nargsf=9223372036854775808, kwnames=0x0000000000000000) at pycore_call.h:144:11\n    frame #7: 0x00000001046f112c python`PyObject_Vectorcall(callable=0x0000000109af9790, args=0x000000016b7f2a88, nargsf=9223372036854775808, kwnames=0x0000000000000000) at call.c:327:12\n    frame #8: 0x0000000104906820 python`_Py_VectorCallInstrumentation_StackRefSteal(callable=(bits = 4457469840), arguments=0x0000000105104140, total_args=0, kwnames=(bits = 1), call_instrumentation=false, frame=0x00000001051040e0, this_instr=0x0000000109c1576e, tstate=0x0000000104d8a360) at ceval.c:775:11\n    frame #9: 0x000000010490e18c python`_PyEval_EvalFrameDefault(tstate=0x0000000104d8a360, frame=0x00000001051040e0, throwflag=0) at generated_cases.c.h:1846:35\n(lldb) ^D\n\n```\n\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nmacOS\n\n### Output from running 'python -VV' on the command line:\n\nPython 3.15.0a8+ (heads/main:4a5d25c26c0, Apr 29 2026, 16:33:39) [Clang 22.1.4 ]\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-150347\n* gh-150392\n* gh-150393\n* gh-150394\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/neek78","@type":"Person","name":"neek78"},"datePublished":"2026-04-29T14:44:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/149156/cpython/issues/149156"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e24f63b8-26b6-4cd1-dc70-20def9f213ca
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEB2E:29798E:53B853:708131:6A523501
html-safe-nonce9b18f097be2574ee95bd5cd25ab5d5127391abe75c660e450591e684036ce9bd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjJFOjI5Nzk4RTo1M0I4NTM6NzA4MTMxOjZBNTIzNTAxIiwidmlzaXRvcl9pZCI6Ijk0Mjk4MTUzNzg2NzExNzgyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacae39e909ec9bc99a0be0a1da6cd5527472d77f9b8fce4e626d4d3dbc0304f228
hovercard-subject-tagissue:4351442825
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/149156/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6c6a0b7cfca064d42e74b1506bd4155b806111aba611b7777ec278d023baa08d/python/cpython/issues/149156
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6c6a0b7cfca064d42e74b1506bd4155b806111aba611b7777ec278d023baa08d/python/cpython/issues/149156
og:image:altCrash report What happened? When running test_perf_profiler, the subprocess fails with what appears to be a bad memory access. This doesn't happen every time, maybe 1 in 5 runs. I can't tell if it'...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameneek78
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/149156#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F149156
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F149156
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/149156
Reloadhttps://github.com/python/cpython/issues/149156
Reloadhttps://github.com/python/cpython/issues/149156
Please reload this pagehttps://github.com/python/cpython/issues/149156
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/149156
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
test_perf_profiler cores periodically on macOS/aarch64https://github.com/python/cpython/issues/149156#top
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%22
https://github.com/neek78
neek78https://github.com/neek78
on Apr 29, 2026https://github.com/python/cpython/issues/149156#issue-4351442825
gh-149156: Fix perf trampoline crash after fork #150347https://github.com/python/cpython/pull/150347
[3.14] gh-149156: Fix perf trampoline crash after fork (GH-150347) #150392https://github.com/python/cpython/pull/150392
[3.13] gh-149156: Fix perf trampoline crash after fork (GH-150347) #150393https://github.com/python/cpython/pull/150393
[3.15] gh-149156: Fix perf trampoline crash after fork (GH-150347) #150394https://github.com/python/cpython/pull/150394
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.