René's URL Explorer Experiment


Title: Segfault from running `os.pathconf(-1, 1)` · Issue #145335 · python/cpython · GitHub

Open Graph Title: Segfault from running `os.pathconf(-1, 1)` · Issue #145335 · python/cpython

X Title: Segfault from running `os.pathconf(-1, 1)` · Issue #145335 · python/cpython

Description: Crash report What happened? The following code will segfault on Python 3.13, 3.14 and main (3.15). import os os.pathconf(-1, 1) Backtrace Program received signal SIGSEGV, Segmentation fault. #0 __pathconf (file=0x0, name=name@entry=1) at...

Open Graph Description: Crash report What happened? The following code will segfault on Python 3.13, 3.14 and main (3.15). import os os.pathconf(-1, 1) Backtrace Program received signal SIGSEGV, Segmentation fault. #0 __p...

X Description: Crash report What happened? The following code will segfault on Python 3.13, 3.14 and main (3.15). import os os.pathconf(-1, 1) Backtrace Program received signal SIGSEGV, Segmentation fault. #0 __p...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Segfault from running `os.pathconf(-1, 1)`","articleBody":"# Crash report\n\n### What happened?\n\nThe following code will segfault on Python 3.13, 3.14 and main (3.15).\n\n```python\nimport os\nos.pathconf(-1, 1)\n```\n\n\u003cdetails\u003e\u003csummary\u003eBacktrace\u003c/summary\u003e\n\u003cp\u003e\n\n\n```\nProgram received signal SIGSEGV, Segmentation fault.\n\n#0  __pathconf (file=0x0, name=name@entry=1) at ../sysdeps/unix/sysv/linux/pathconf.c:58\n#1  0x00005555561fd98d in os_pathconf_impl (module=0x7ccff6fecd20, path=0x7bfff5d00040, name=1) at ./Modules/posixmodule.c:14335\n#2  os_pathconf (module=\u003coptimized out\u003e, args=0x7bfff5dfff28, nargs=\u003coptimized out\u003e, kwnames=\u003coptimized out\u003e) at ./Modules/clinic/posixmodule.c.h:10539\n#3  0x0000555555bfa45c in cfunction_vectorcall_FASTCALL_KEYWORDS (func=func@entry=0x7c7ff7065bc0, args=args@entry=0x7bfff5dfff28, nargsf=nargsf@entry=9223372036854775810,\n    kwnames=kwnames@entry=0x0) at Objects/methodobject.c:465\n#4  0x0000555555ad5f80 in _PyObject_VectorcallTstate (tstate=0x555556a159c8 \u003c_PyRuntime+360584\u003e, callable=0x7c7ff7065bc0, args=0x7bfff5dfff28, nargsf=9223372036854775810, kwnames=0x0)\n    at ./Include/internal/pycore_call.h:136\n#5  0x0000555555e7399d in _Py_VectorCallInstrumentation_StackRefSteal (callable=..., arguments=\u003coptimized out\u003e, total_args=2, kwnames=..., call_instrumentation=\u003coptimized out\u003e,\n    frame=\u003coptimized out\u003e, this_instr=\u003coptimized out\u003e, tstate=\u003coptimized out\u003e) at Python/ceval.c:769\n#6  0x0000555555eaf560 in _PyEval_EvalFrameDefault (tstate=\u003coptimized out\u003e, frame=\u003coptimized out\u003e, throwflag=\u003coptimized out\u003e) at Python/generated_cases.c.h:1817\n#7  0x0000555555e72838 in _PyEval_EvalFrame (tstate=0x555556a159c8 \u003c_PyRuntime+360584\u003e, frame=0x7e8ff6fe5220, throwflag=0) at ./Include/internal/pycore_ceval.h:118\n#8  _PyEval_Vector (tstate=\u003coptimized out\u003e, func=\u003coptimized out\u003e, locals=\u003coptimized out\u003e, args=\u003coptimized out\u003e, argcount=\u003coptimized out\u003e, kwnames=0x0) at Python/ceval.c:2132\n#9  0x0000555555e72255 in PyEval_EvalCode (co=\u003coptimized out\u003e, globals=\u003coptimized out\u003e, locals=0x7c7ff70893c0) at Python/ceval.c:680\n#10 0x000055555613d66f in run_eval_code_obj (tstate=tstate@entry=0x555556a159c8 \u003c_PyRuntime+360584\u003e, co=co@entry=0x7d1ff7019650, globals=globals@entry=0x7c7ff70893c0,\n    locals=locals@entry=0x7c7ff70893c0) at Python/pythonrun.c:1366\n#11 0x000055555613c83c in run_mod (mod=\u003coptimized out\u003e, filename=\u003coptimized out\u003e, globals=\u003coptimized out\u003e, locals=\u003coptimized out\u003e, flags=\u003coptimized out\u003e, arena=\u003coptimized out\u003e,\n    interactive_src=\u003coptimized out\u003e, generate_new_source=\u003coptimized out\u003e) at Python/pythonrun.c:1469\n#12 0x0000555556136e3d in pyrun_file (fp=fp@entry=0x7d4ff6fef800, filename=filename@entry=0x7ccff6ffbbf0, start=start@entry=257, globals=globals@entry=0x7c7ff70893c0,\n    locals=locals@entry=0x7c7ff70893c0, closeit=closeit@entry=1, flags=0x7bfff5e1eb10) at Python/pythonrun.c:1294\n#13 0x000055555613499d in _PyRun_SimpleFileObject (fp=\u003coptimized out\u003e, filename=\u003coptimized out\u003e, closeit=\u003coptimized out\u003e, flags=\u003coptimized out\u003e) at Python/pythonrun.c:518\n#14 0x0000555556133d0e in _PyRun_AnyFileObject (fp=fp@entry=0x7d4ff6fef800, filename=filename@entry=0x7ccff6ffbbf0, closeit=closeit@entry=1, flags=flags@entry=0x7bfff5e1eb10)\n    at Python/pythonrun.c:81\n#15 0x00005555561b215b in pymain_run_file_obj (program_name=0x7caff7027bc0, filename=0x7ccff6ffbbf0, skip_source_first_line=0) at Modules/main.c:410\n#16 pymain_run_file (config=0x5555569e0a48 \u003c_PyRuntime+143624\u003e) at Modules/main.c:429\n#17 0x00005555561b0224 in pymain_run_python (exitcode=0x7bfff5e1e700) at Modules/main.c:691\n#18 Py_RunMain () at Modules/main.c:772\n#19 0x00005555561b1127 in pymain_main (args=\u003coptimized out\u003e) at Modules/main.c:802\n#20 0x00005555561b1298 in Py_BytesMain (argc=\u003coptimized out\u003e, argv=0x7fffffffdb48) at Modules/main.c:826\n#21 0x00007ffff7c2a575 in __libc_start_call_main (main=main@entry=0x55555590bc40 \u003cmain\u003e, argc=argc@entry=2, argv=argv@entry=0x7fffffffdb48) at ../sysdeps/nptl/libc_start_call_main.h:58\n#22 0x00007ffff7c2a628 in __libc_start_main_impl (main=0x55555590bc40 \u003cmain\u003e, argc=2, argv=0x7fffffffdb48, init=\u003coptimized out\u003e, fini=\u003coptimized out\u003e, rtld_fini=\u003coptimized out\u003e,\n    stack_end=0x7fffffffdb38) at ../csu/libc-start.c:360\n#23 0x00005555558224f5 in _start ()\n```\n\n\u003c/p\u003e\n\u003c/details\u003e\n\n\nFound using [fusil](https://github.com/devdanzin/fusil) by @vstinner.\n\n\n### CPython versions tested on:\n\nCPython main branch, 3.14, 3.13\n\n### Operating systems tested on:\n\nLinux\n\n### Output from running 'python -VV' on the command line:\n\nPython 3.15.0a6+ (heads/main-dirty:5e61a16c105, Feb 24 2026, 19:33:58) [Clang 21.1.2 (2ubuntu6)]\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-145341\n* gh-145390\n* gh-145432\n* gh-145433\n* gh-145439\n* gh-145528\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/devdanzin","@type":"Person","name":"devdanzin"},"datePublished":"2026-02-27T23:17:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/145335/cpython/issues/145335"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0cb867bd-a084-93f7-16aa-cdcc9057b45c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idABCA:3CE956:87DB53:B94666:6A52AAEC
html-safe-nonce212001e7ce121761185828ba551549dc50f7438aba71f2a69b68b9092bab4e64
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkNBOjNDRTk1Njo4N0RCNTM6Qjk0NjY2OjZBNTJBQUVDIiwidmlzaXRvcl9pZCI6Ijg4MDA2Mjc5Mjk2MzU3OTM2NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaccdd32c29c758845b326dcd3444a95ff4e3bc2f76b0cc2d191925446d8efc88ff
hovercard-subject-tagissue:4003261608
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/145335/issue_layout
twitter:imagehttps://opengraph.githubassets.com/db05aa5b7cfce33002c668db060b284a7f91e74b714aed42a70a1b8258628232/python/cpython/issues/145335
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/db05aa5b7cfce33002c668db060b284a7f91e74b714aed42a70a1b8258628232/python/cpython/issues/145335
og:image:altCrash report What happened? The following code will segfault on Python 3.13, 3.14 and main (3.15). import os os.pathconf(-1, 1) Backtrace Program received signal SIGSEGV, Segmentation fault. #0 __p...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedevdanzin
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
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/145335#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F145335
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%2F145335
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/145335
Reloadhttps://github.com/python/cpython/issues/145335
Reloadhttps://github.com/python/cpython/issues/145335
Please reload this pagehttps://github.com/python/cpython/issues/145335
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/145335
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
Segfault from running os.pathconf(-1, 1)https://github.com/python/cpython/issues/145335#top
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%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/devdanzin
devdanzinhttps://github.com/devdanzin
on Feb 27, 2026https://github.com/python/cpython/issues/145335#issue-4003261608
fusilhttps://github.com/devdanzin/fusil
@vstinnerhttps://github.com/vstinner
gh-145335: validate file descriptor in os.fpathconf and os.pathconf #145341https://github.com/python/cpython/pull/145341
gh-145335: Fix crash when passing -1 as fd in os.pathconf #145390https://github.com/python/cpython/pull/145390
[3.13] gh-145335: Fix crash when passing -1 as fd in os.pathconf (GH-145390) #145432https://github.com/python/cpython/pull/145432
[3.14] gh-145335: Fix crash when passing -1 as fd in os.pathconf (GH-145390) #145433https://github.com/python/cpython/pull/145433
gh-145335: Fix os functions when passing fd -1 as path #145439https://github.com/python/cpython/pull/145439
gh-145335: Skip Emscripten for os.execve test #145528https://github.com/python/cpython/pull/145528
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%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.