René's URL Explorer Experiment


Title: `test_perf_profiler` fails under Windows Subsystem for Linux · Issue #134986 · python/cpython · GitHub

Open Graph Title: `test_perf_profiler` fails under Windows Subsystem for Linux · Issue #134986 · python/cpython

X Title: `test_perf_profiler` fails under Windows Subsystem for Linux · Issue #134986 · python/cpython

Description: Bug report The culprit is that for some reason calling perf from the WSL raises a PermissionError, rather than FileNotFoundError or CalledProcessError when perf is not available. Example output: $ which perf # not present $ ./python -m t...

Open Graph Description: Bug report The culprit is that for some reason calling perf from the WSL raises a PermissionError, rather than FileNotFoundError or CalledProcessError when perf is not available. Example output: $ ...

X Description: Bug report The culprit is that for some reason calling perf from the WSL raises a PermissionError, rather than FileNotFoundError or CalledProcessError when perf is not available. Example output: $ ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`test_perf_profiler` fails under Windows Subsystem for Linux","articleBody":"# Bug report\n\nThe culprit is that for some reason calling `perf` from the WSL raises a `PermissionError`, rather than `FileNotFoundError` or `CalledProcessError` when `perf` is not available.\n\nExample output:\n\n```\n$ which perf # not present\n$ ./python -m test test_perf_profiler -v\n== CPython 3.15.0a0 (heads/main:3704171415c, May 31 2025, 12:20:03) [Clang 20.1.6 (++20250528122018+47addd4540b4-1~exp1~20250528002033.124)]\n== Linux-6.6.87.1-microsoft-standard-WSL2-x86_64-with-glibc2.39 little-endian\n== Python build: debug\n== cwd: /home/emma/cpython/build/test_python_worker_7822æ\n== CPU count: 32\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: 1838771651\n0:00:00 load avg: 0.65 Run 1 test sequentially in a single process\n0:00:00 load avg: 0.65 [1/1] test_perf_profiler\ntest test_perf_profiler crashed -- Traceback (most recent call last):\n  File \"/home/emma/cpython/Lib/test/libregrtest/single.py\", line 210, in _runtest_env_changed_exc\n    _load_run_test(result, runtests)\n    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^\n  File \"/home/emma/cpython/Lib/test/libregrtest/single.py\", line 155, in _load_run_test\n    test_mod = importlib.import_module(module_name)\n  File \"/home/emma/cpython/Lib/importlib/__init__.py\", line 88, in import_module\n    return _bootstrap._gcd_import(name[level:], package, level)\n           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"\u003cfrozen importlib._bootstrap>\", line 1398, in _gcd_import\n  File \"\u003cfrozen importlib._bootstrap>\", line 1371, in _find_and_load\n  File \"\u003cfrozen importlib._bootstrap>\", line 1342, in _find_and_load_unlocked\n  File \"\u003cfrozen importlib._bootstrap>\", line 938, in _load_unlocked\n  File \"\u003cfrozen importlib._bootstrap_external>\", line 762, in exec_module\n  File \"\u003cfrozen importlib._bootstrap>\", line 491, in _call_with_frames_removed\n  File \"/home/emma/cpython/Lib/test/test_perf_profiler.py\", line 522, in \u003cmodule>\n    _is_perf_version_at_least(6, 6), \"perf command may not work due to a perf bug\"\n    ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^\n  File \"/home/emma/cpython/Lib/test/test_perf_profiler.py\", line 510, in _is_perf_version_at_least\n    output = subprocess.check_output([\"perf\", \"--version\"], text=True)\n  File \"/home/emma/cpython/Lib/subprocess.py\", line 472, in check_output\n    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,\n           ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n               **kwargs).stdout\n               ^^^^^^^^^\n  File \"/home/emma/cpython/Lib/subprocess.py\", line 554, in run\n    with Popen(*popenargs, **kwargs) as process:\n         ~~~~~^^^^^^^^^^^^^^^^^^^^^^\n  File \"/home/emma/cpython/Lib/subprocess.py\", line 1038, in __init__\n    self._execute_child(args, executable, preexec_fn, close_fds,\n    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                        pass_fds, cwd, env,\n                        ^^^^^^^^^^^^^^^^^^^\n    ...\u003c5 lines>...\n                        gid, gids, uid, umask,\n                        ^^^^^^^^^^^^^^^^^^^^^^\n                        start_new_session, process_group)\n                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/home/emma/cpython/Lib/subprocess.py\", line 1970, in _execute_child\n    raise child_exception_type(errno_num, err_msg, err_filename)\nPermissionError: [Errno 13] Permission denied: 'perf'\n\n0:00:00 load avg: 0.65 [1/1/1] test_perf_profiler failed (uncaught exception)\n\n== Tests result: FAILURE ==\n\n1 test failed:\n    test_perf_profiler\n\nTotal duration: 270 ms\nTotal tests: run=0\nTotal test files: run=1/1 failed=1\nResult: FAILURE\n```\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-134987\n* gh-135841\n* gh-135842\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/emmatyping","@type":"Person","name":"emmatyping"},"datePublished":"2025-05-31T19:36:21Z","url":"https://github.com/python/cpython/issues/134986"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c0d3d84e-0018-cad4-e36b-b93f68c5afcb
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB682:22DB35:4719512:5A81E5A:6B023339
html-safe-noncee9c6110d17d5eecb5824003be1d344acfdd5dd7a175258c9910f350d9c30ee99
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjgyOjIyREIzNTo0NzE5NTEyOjVBODFFNUE6NkIwMjMzMzkiLCJ2aXNpdG9yX2lkIjoiMzI3OTMxODQ0MTIzMTc5MDkwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac96dab101297565d3e35c91d6bb45f2a3d70ad15c4f0638892379062ca6171ef2
hovercard-subject-tagissue:3105947049
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/134986/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cc8e14ec6db90b71bd0898d30ed01c4ce78c21187695012a0a83cbaf900de186/python/cpython/issues/134986
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cc8e14ec6db90b71bd0898d30ed01c4ce78c21187695012a0a83cbaf900de186/python/cpython/issues/134986
og:image:altBug report The culprit is that for some reason calling perf from the WSL raises a PermissionError, rather than FileNotFoundError or CalledProcessError when perf is not available. Example output: $ ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameemmatyping
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/134986#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F134986
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F134986
Sign uphttps://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/134986
Reloadhttps://github.com/python/cpython/issues/134986
Reloadhttps://github.com/python/cpython/issues/134986
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/134986
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/134986
test_perf_profiler fails under Windows Subsystem for Linuxhttps://github.com/python/cpython/issues/134986#top
https://github.com/emmatyping
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/emmatyping
emmatypinghttps://github.com/emmatyping
on May 31, 2025https://github.com/python/cpython/issues/134986#issue-3105947049
gh-134986: Catch PermissionError when trying to call perf in tests #134987https://github.com/python/cpython/pull/134987
[3.14] gh-134986: Catch PermissionError when trying to call perf in tests (GH-134987) #135841https://github.com/python/cpython/pull/135841
[3.13] gh-134986: Catch PermissionError when trying to call perf in tests (GH-134987) #135842https://github.com/python/cpython/pull/135842
emmatypinghttps://github.com/emmatyping
on May 31, 2025https://github.com/python/cpython/issues/134986#event-17904302679
emmatypinghttps://github.com/emmatyping
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
on May 31, 2025https://github.com/python/cpython/issues/134986#event-17904302733
vstinnerhttps://github.com/vstinner
on Jun 23, 2025https://github.com/python/cpython/issues/134986#event-18270653610
gh-134986: Catch PermissionError when trying to call perf in tests (#…https://github.com/python/cpython/commit/6ab842fce50a6125797bcddfc4a4b2622aa6c6a9
gh-134986https://github.com/python/cpython/issues/134986
#…https://github.com/python/cpython/pull/134987
6ab842fhttps://github.com/python/cpython/commit/6ab842fce50a6125797bcddfc4a4b2622aa6c6a9
miss-islingtonhttps://github.com/miss-islington
on Jun 23, 2025https://github.com/python/cpython/issues/134986#event-18270655902
pythongh-134986: Catch PermissionError when trying to call perf in te…https://github.com/miss-islington/cpython/commit/8b165758684cecb7b804c7b67e717f1601c63621
pythongh-134986https://github.com/python/cpython/issues/134986
8b16575https://github.com/miss-islington/cpython/commit/8b165758684cecb7b804c7b67e717f1601c63621
pythongh-134986: Catch PermissionError when trying to call perf in te…https://github.com/miss-islington/cpython/commit/0c5f46d7c6c7cd4f82920e10a3c21dcf02c62c74
pythongh-134986https://github.com/python/cpython/issues/134986
0c5f46dhttps://github.com/miss-islington/cpython/commit/0c5f46d7c6c7cd4f82920e10a3c21dcf02c62c74
vstinnerhttps://github.com/vstinner
on Jun 23, 2025https://github.com/python/cpython/issues/134986#event-18271118665
[3.13] gh-134986: Catch PermissionError when trying to call perf in t…https://github.com/python/cpython/commit/3e81d56a1bfd2cc0afc01f1d9c126d286c4943ec
gh-134986https://github.com/python/cpython/issues/134986
3e81d56https://github.com/python/cpython/commit/3e81d56a1bfd2cc0afc01f1d9c126d286c4943ec
[3.14] gh-134986: Catch PermissionError when trying to call perf in t…https://github.com/python/cpython/commit/85fbf80ca214bdf2e1eb36691bc0e54335c7a09f
gh-134986https://github.com/python/cpython/issues/134986
85fbf80https://github.com/python/cpython/commit/85fbf80ca214bdf2e1eb36691bc0e54335c7a09f
AndPuQinghttps://github.com/AndPuQing
on Jul 11, 2025https://github.com/python/cpython/issues/134986#event-18584719338
pythongh-134986: Catch PermissionError when trying to call perf in te…https://github.com/AndPuQing/cpython/commit/0cc0aeed497a47cb5b392294dafcb3c8c5119a7b
pythongh-134986https://github.com/python/cpython/issues/134986
0cc0aeehttps://github.com/AndPuQing/cpython/commit/0cc0aeed497a47cb5b392294dafcb3c8c5119a7b
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
on Jul 11, 2025https://github.com/python/cpython/issues/134986#issuecomment-3062214514
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Jul 11, 2025https://github.com/python/cpython/issues/134986#issuecomment-3062570658
vstinnerhttps://github.com/vstinner
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 11, 2025https://github.com/python/cpython/issues/134986#event-18587766824
Pranjal095https://github.com/Pranjal095
on Jul 12, 2025https://github.com/python/cpython/issues/134986#event-18600181663
pythongh-134986: Catch PermissionError when trying to call perf in te…https://github.com/Pranjal095/cpython/commit/fa5ce576a592587b8379b93297a8cc8c0b6dfdf5
pythongh-134986https://github.com/python/cpython/issues/134986
fa5ce57https://github.com/Pranjal095/cpython/commit/fa5ce576a592587b8379b93297a8cc8c0b6dfdf5
taegyunkimhttps://github.com/taegyunkim
on Aug 4, 2025https://github.com/python/cpython/issues/134986#event-18976841223
pythongh-134986: Catch PermissionError when trying to call perf in te…https://github.com/taegyunkim/cpython/commit/de0bb3609fde8301c0ac50c45c1c9ab9775d22d2
pythongh-134986https://github.com/python/cpython/issues/134986
de0bb36https://github.com/taegyunkim/cpython/commit/de0bb3609fde8301c0ac50c45c1c9ab9775d22d2
Agent-Hellboyhttps://github.com/Agent-Hellboy
on Aug 19, 2025https://github.com/python/cpython/issues/134986#event-19221801357
pythongh-134986: Catch PermissionError when trying to call perf in te…https://github.com/Agent-Hellboy/cpython/commit/5e9cbf56c4518de8275c7a92dd31027c4f06780e
pythongh-134986https://github.com/python/cpython/issues/134986
5e9cbf5https://github.com/Agent-Hellboy/cpython/commit/5e9cbf56c4518de8275c7a92dd31027c4f06780e
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/134986
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/134986
emmatypinghttps://github.com/emmatyping
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%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.