René's URL Explorer Experiment


Title: Abort in `_interpqueuesmodule` due to queue being created with negative `maxsize` · Issue #135698 · python/cpython · GitHub

Open Graph Title: Abort in `_interpqueuesmodule` due to queue being created with negative `maxsize` · Issue #135698 · python/cpython

X Title: Abort in `_interpqueuesmodule` due to queue being created with negative `maxsize` · Issue #135698 · python/cpython

Description: Crash report What happened? The interpreter will abort when running the following MRE, which creates a queue with maxsize=-1: import _interpqueues _interpqueues.create(-1, 1, 1) _interpqueues.is_full(1) Abort backtrace: python: ./Modules...

Open Graph Description: Crash report What happened? The interpreter will abort when running the following MRE, which creates a queue with maxsize=-1: import _interpqueues _interpqueues.create(-1, 1, 1) _interpqueues.is_fu...

X Description: Crash report What happened? The interpreter will abort when running the following MRE, which creates a queue with maxsize=-1: import _interpqueues _interpqueues.create(-1, 1, 1) _interpqueues.is_fu...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Abort in `_interpqueuesmodule` due to queue being created with negative `maxsize`","articleBody":"# Crash report\n\n### What happened?\n\nThe interpreter will abort when running the following MRE, which creates a queue with `maxsize=-1`:\n\n```python\nimport _interpqueues\n\n_interpqueues.create(-1, 1, 1)\n_interpqueues.is_full(1)\n```\n\nAbort backtrace:\n```shell\npython: ./Modules/_interpqueuesmodule.c:713: _queue_is_full: Assertion `queue->items.count \u003c= queue->items.maxsize' failed.\n\nProgram received signal SIGABRT, Aborted.\n\n#0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140737350575936) at ./nptl/pthread_kill.c:44\n#1  __pthread_kill_internal (signo=6, threadid=140737350575936) at ./nptl/pthread_kill.c:78\n#2  __GI___pthread_kill (threadid=140737350575936, signo=signo@entry=6) at ./nptl/pthread_kill.c:89\n#3  0x00007ffff7cdf476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26\n#4  0x00007ffff7cc57f3 in __GI_abort () at ./stdlib/abort.c:79\n#5  0x00007ffff7cc571b in __assert_fail_base (fmt=0x7ffff7e7a130 \"%s%s%s:%u: %s%sAssertion `%s' failed.\\n%n\",\n    assertion=0x7ffff79dc020 \"queue->items.count \u003c= queue->items.maxsize\", file=0x7ffff79dc000 \"./Modules/_interpqueuesmodule.c\", line=713,\n    function=\u003coptimized out>) at ./assert/assert.c:94\n#6  0x00007ffff7cd6e96 in __GI___assert_fail (assertion=assertion@entry=0x7ffff79dc020 \"queue->items.count \u003c= queue->items.maxsize\",\n    file=file@entry=0x7ffff79dc000 \"./Modules/_interpqueuesmodule.c\", line=line@entry=713,\n    function=function@entry=0x7ffff79dc980 \u003c__PRETTY_FUNCTION__.16> \"_queue_is_full\") at ./assert/assert.c:103\n#7  0x00007ffff79d7aed in _queue_is_full (queue=0x555555de5fa0, p_is_full=p_is_full@entry=0x7fffffffd33c) at ./Modules/_interpqueuesmodule.c:713\n#8  0x00007ffff79d7cde in queue_is_full (queues=queues@entry=0x7ffff79e05a8 \u003c_globals+8>, qid=qid@entry=1,\n    p_is_full=p_is_full@entry=0x7fffffffd33c) at ./Modules/_interpqueuesmodule.c:1248\n#9  0x00007ffff79da801 in queuesmod_is_full (self=0x7ffff7ac8590, args=args@entry=0x7ffff7a5bde0, kwds=kwds@entry=0x0)\n    at ./Modules/_interpqueuesmodule.c:1803\n#10 0x000055555570b67d in cfunction_call (func=0x7ffff7ac8ad0, args=0x7ffff7a5bde0, kwargs=0x0) at Objects/methodobject.c:565\n#11 0x0000555555689bf1 in _PyObject_MakeTpCall (tstate=tstate@entry=0x555555d6f7c0 \u003c_PyRuntime+331232>, callable=callable@entry=0x7ffff7ac8ad0,\n    args=args@entry=0x7fffffffd668, nargs=\u003coptimized out>, keywords=keywords@entry=0x0) at Objects/call.c:242\n#12 0x000055555568a012 in _PyObject_VectorcallTstate (tstate=0x555555d6f7c0 \u003c_PyRuntime+331232>, callable=0x7ffff7ac8ad0, args=0x7fffffffd668,\n    nargsf=\u003coptimized out>, kwnames=0x0) at ./Include/internal/pycore_call.h:167\n#13 0x000055555568a03e in PyObject_Vectorcall (callable=callable@entry=0x7ffff7ac8ad0, args=args@entry=0x7fffffffd668, nargsf=\u003coptimized out>,\n    kwnames=kwnames@entry=0x0) at Objects/call.c:327\n```\n\nFound using [fusil](https://github.com/devdanzin/fusil) by @vstinner.\n\n### CPython versions tested on:\n\nCPython main branch, 3.15, 3.14\n\n### Operating systems tested on:\n\nLinux\n\n### Output from running 'python -VV' on the command line:\n\nPython 3.15.0a0 (heads/main-dirty:b706ff003c5, Jun 14 2025, 23:08:39) [GCC 11.4.0]\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-135703\n* gh-135724\n* gh-135775\n* gh-135778\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/devdanzin","@type":"Person","name":"devdanzin"},"datePublished":"2025-06-19T02:33:16Z","url":"https://github.com/python/cpython/issues/135698"}

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:1d66ac21-87c8-b253-2e65-ee8efcdc02cc
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9642:3A8E64:1E1C55D:27BE582:6B023310
html-safe-nonce3084d1e2eb45852542ccb98718457e323bcd36793021b105b00f675f079abec5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjQyOjNBOEU2NDoxRTFDNTVEOjI3QkU1ODI6NkIwMjMzMTAiLCJ2aXNpdG9yX2lkIjoiNzA4NjI4NTkwOTQ3MzI0MzkyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaccb5346c18ec99e5481057a5da26fef1e2b93fc64438ec4e6127ddb9dde102608
hovercard-subject-tagissue:3158693719
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/135698/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ad31bbf3208b888a430db21ada5f9586c37c684fa1f19472845d3d6dc373b2b0/python/cpython/issues/135698
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ad31bbf3208b888a430db21ada5f9586c37c684fa1f19472845d3d6dc373b2b0/python/cpython/issues/135698
og:image:altCrash report What happened? The interpreter will abort when running the following MRE, which creates a queue with maxsize=-1: import _interpqueues _interpqueues.create(-1, 1, 1) _interpqueues.is_fu...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedevdanzin
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/135698#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F135698
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%2F135698
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/135698
Reloadhttps://github.com/python/cpython/issues/135698
Reloadhttps://github.com/python/cpython/issues/135698
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/135698
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/135698
Abort in _interpqueuesmodule due to queue being created with negative maxsizehttps://github.com/python/cpython/issues/135698#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 Jun 19, 2025https://github.com/python/cpython/issues/135698#issue-3158693719
fusilhttps://github.com/devdanzin/fusil
@vstinnerhttps://github.com/vstinner
gh-135698: Fix _interpqueues.create(): max_size >= 0 #135703https://github.com/python/cpython/pull/135703
gh-135698: Fix Cross-interpreter Queue.full() With Negative/Default max_size #135724https://github.com/python/cpython/pull/135724
[3.14] gh-135698: Fix Cross-interpreter Queue.full() With Negative/Default max_size (gh-135724) #135775https://github.com/python/cpython/pull/135775
[3.13] gh-135698: Fix Cross-interpreter Queue.full() With Negative/Default max_size #135778https://github.com/python/cpython/pull/135778
devdanzinhttps://github.com/devdanzin
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
on Jun 19, 2025https://github.com/python/cpython/issues/135698#event-18221280998
vstinnerhttps://github.com/vstinner
on Jun 19, 2025https://github.com/python/cpython/issues/135698#event-18226775808
pythongh-135698: Fix _interpqueues.create(): max_size >= 0https://github.com/vstinner/cpython/commit/fe8943898e689fccc562a907daea36d07d66dcec
pythongh-135698https://github.com/python/cpython/issues/135698
fe89438https://github.com/vstinner/cpython/commit/fe8943898e689fccc562a907daea36d07d66dcec
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Jun 19, 2025https://github.com/python/cpython/issues/135698#issuecomment-2987440756
#135703https://github.com/python/cpython/pull/135703
picnixzhttps://github.com/picnixz
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
on Jun 19, 2025https://github.com/python/cpython/issues/135698#event-18227261239
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
on Jun 20, 2025https://github.com/python/cpython/issues/135698#event-18253277575
gh-135698: Fix Cross-interpreter Queue.full() With Negative/Default m…https://github.com/python/cpython/commit/c5ea8e8e8fc725f39ed23ff6259b3cc157a0785f
gh-135698https://github.com/python/cpython/issues/135698
c5ea8e8https://github.com/python/cpython/commit/c5ea8e8e8fc725f39ed23ff6259b3cc157a0785f
miss-islingtonhttps://github.com/miss-islington
on Jun 20, 2025https://github.com/python/cpython/issues/135698#event-18253278621
pythongh-135698: Fix Cross-interpreter Queue.full() With Negative/Def…https://github.com/miss-islington/cpython/commit/22ad2f869e6cd83612fd69dc0e8cb7ddaad0da04
pythongh-135698https://github.com/python/cpython/issues/135698
22ad2f8https://github.com/miss-islington/cpython/commit/22ad2f869e6cd83612fd69dc0e8cb7ddaad0da04
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
on Jun 20, 2025https://github.com/python/cpython/issues/135698#event-18253510678
[3.14] gh-135698: Fix Cross-interpreter Queue.full() With Negative/De…https://github.com/python/cpython/commit/35b90e8bec9cb93d10a8d08ee8c5af3096da8937
gh-135698https://github.com/python/cpython/issues/135698
35b90e8https://github.com/python/cpython/commit/35b90e8bec9cb93d10a8d08ee8c5af3096da8937
pythongh-135698: Fix Cross-interpreter Queue.full() With Negative/Def…https://github.com/ericsnowcurrently/cpython/commit/efcecd93aaea089598722c013aa2f0523a7d2583
pythongh-135698https://github.com/python/cpython/issues/135698
efcecd9https://github.com/ericsnowcurrently/cpython/commit/efcecd93aaea089598722c013aa2f0523a7d2583
[3.13] gh-135698: Fix Cross-interpreter Queue.full() With Negative/De…https://github.com/python/cpython/commit/666795ae34ccb912127d47fd091dcf5513dff94c
gh-135698https://github.com/python/cpython/issues/135698
666795ahttps://github.com/python/cpython/commit/666795ae34ccb912127d47fd091dcf5513dff94c
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 23, 2025https://github.com/python/cpython/issues/135698#event-18280433294
Pranjal095https://github.com/Pranjal095
on Jul 12, 2025https://github.com/python/cpython/issues/135698#event-18600181551
pythongh-135698: Fix Cross-interpreter Queue.full() With Negative/Def…https://github.com/Pranjal095/cpython/commit/6096098ccb528ee84a2a09fe62a419ea6c4b536f
pythongh-135698https://github.com/python/cpython/issues/135698
6096098https://github.com/Pranjal095/cpython/commit/6096098ccb528ee84a2a09fe62a419ea6c4b536f
taegyunkimhttps://github.com/taegyunkim
on Aug 4, 2025https://github.com/python/cpython/issues/135698#event-18976840505
pythongh-135698: Fix Cross-interpreter Queue.full() With Negative/Def…https://github.com/taegyunkim/cpython/commit/725b6d33a3064982aac3efa50c95a6109aa0cf7a
pythongh-135698https://github.com/python/cpython/issues/135698
725b6d3https://github.com/taegyunkim/cpython/commit/725b6d33a3064982aac3efa50c95a6109aa0cf7a
Agent-Hellboyhttps://github.com/Agent-Hellboy
on Aug 19, 2025https://github.com/python/cpython/issues/135698#event-19221800731
pythongh-135698: Fix Cross-interpreter Queue.full() With Negative/Def…https://github.com/Agent-Hellboy/cpython/commit/7208004cf07d8c8ffc63f2b1f8336bbc6717fe32
pythongh-135698https://github.com/python/cpython/issues/135698
7208004https://github.com/Agent-Hellboy/cpython/commit/7208004cf07d8c8ffc63f2b1f8336bbc6717fe32
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/135698
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/135698
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.