René's URL Explorer Experiment


Title: Segmentation fault during the test__xxsubinterpreters test · Issue #100981 · python/cpython · GitHub

Open Graph Title: Segmentation fault during the test__xxsubinterpreters test · Issue #100981 · python/cpython

X Title: Segmentation fault during the test__xxsubinterpreters test · Issue #100981 · python/cpython

Description: Crash report When running the testsuite one test is intermittently failing with a segmentation fault. The test in question is test=test__xxsubinterpreters and the crash seems to be GIL related. I am able to consistently reproduce the cra...

Open Graph Description: Crash report When running the testsuite one test is intermittently failing with a segmentation fault. The test in question is test=test__xxsubinterpreters and the crash seems to be GIL related. I a...

X Description: Crash report When running the testsuite one test is intermittently failing with a segmentation fault. The test in question is test=test__xxsubinterpreters and the crash seems to be GIL related. I a...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Segmentation fault during the test__xxsubinterpreters test","articleBody":"# Crash report\r\n\r\nWhen running the testsuite one test is intermittently failing with a segmentation fault.  The test in question is test=test__xxsubinterpreters and the crash seems to be GIL related.  I am able to consistently reproduce the crash on my environment where I am building Python inside a chroot (/proc, /sys, and /dev are \"mount --bind\"ed from the host system).\r\n\r\nOn a freshly built with GCC 12.2.0 Python 3.11 with the following configure options:\r\n```\r\nCFLAGS='-pipe -O2 -ggdb -fomit-frame-pointer'\r\nexport CFLAGS\r\nCXXFLAGS='-pipe -ggdb -O0'\r\nexport CXXFLAGS\r\nFFLAGS='-pipe -ggdb -O0 '\r\nexport FFLAGS\r\nFCFLAGS='-pipe -ggdb -O0 '\r\nexport FCFLAGS\r\nLDFLAGS=\r\nexport LDFLAGS\r\n/home/galaxy/rpm-work/BUILD/Python-3.11.1/configure \\\r\n       --enable-ipv6 \\\r\n       --with-computed-gotos \\\r\n       --with-dbmliborder=gdbm:ndbm:bdb \\\r\n       --with-system-expat \\\r\n       --without-system-ffi \\\r\n       --without-system-libmpdec \\\r\n       --enable-loadable-sqlite-extensions \\\r\n       --without-dtrace \\\r\n       --with-lto \\\r\n       --without-ensurepip \\\r\n       --with-pkg-config=yes \\\r\n       --without-static-libpython \\\r\n       --with-tzpath=/usr/share/zoneinfo \\\r\n       --with-openssl-rpath=no \\\r\n       --with-ssl-default-suites=openssl \\\r\n       --disable-optimizations \\\r\n       --with-pydebug\r\n```\r\n\r\nThis is the testsuite output with just the test in question:\r\n```\r\ngalaxy@apollo:~/rpm-work/BUILD/Python-3.11.1 $ LD_LIBRARY_PATH=/home/galaxy/rpm-work/BUILD/Python-3.11.1/build/debug build/debug/python -m test -j4 --slowest --timeout=1800 -W -F test__xxsubinterpreters\r\n0:00:00 load avg: 0.05 Run tests in parallel using 4 child processes (timeout: 30 min, worker timeout: 35 min)\r\n0:00:08 load avg: 0.65 [  1/1] test__xxsubinterpreters crashed (Exit code -11)\r\nFatal Python error: Segmentation fault\r\n\r\nThread 0x00007effcf9a2468 (most recent call first):\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/test/test__xxsubinterpreters.py\", line 283 in clean_up_interpreters\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/test/test__xxsubinterpreters.py\", line 299 in tearDown\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/unittest/case.py\", line 584 in _callTearDown\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/unittest/case.py\", line 626 in run\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/unittest/case.py\", line 678 in __call__\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/unittest/suite.py\", line 122 in run\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/unittest/suite.py\", line 84 in __call__\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/unittest/suite.py\", line 122 in run\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/unittest/suite.py\", line 84 in __call__\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/unittest/suite.py\", line 122 in run\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/unittest/suite.py\", line 84 in __call__\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/unittest/runner.py\", line 217 in run\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/test/support/__init__.py\", line 1095 in _run_suite\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/test/support/__init__.py\", line 1221 in run_unittest\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/test/libregrtest/runtest.py\", line 276 in _test_module\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/test/libregrtest/runtest.py\", line 312 in _runtest_inner2\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/test/libregrtest/runtest.py\", line 355 in _runtest_inner\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/test/libregrtest/runtest.py\", line 214 in _runtest\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/test/libregrtest/runtest.py\", line 260 in runtest\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/test/libregrtest/runtest_mp.py\", line 90 in run_tests_worker\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/test/libregrtest/main.py\", line 722 in _main\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/test/libregrtest/main.py\", line 701 in main\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/test/libregrtest/main.py\", line 763 in main\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/test/regrtest.py\", line 43 in _main\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/test/regrtest.py\", line 47 in \u003cmodule\u003e\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/runpy.py\", line 88 in _run_code\r\n  File \"/home/galaxy/rpm-work/BUILD/Python-3.11.1/Lib/runpy.py\", line 198 in _run_module_as_main\r\n\r\nExtension modules: _testcapi, _xxsubinterpreters (total: 2)\r\nKill \u003cTestWorkerProcess #2 running test=test__xxsubinterpreters pid=1282561 time=8.8 sec\u003e process group\r\nKill \u003cTestWorkerProcess #3 running test=test__xxsubinterpreters pid=1282560 time=8.8 sec\u003e process group\r\nKill \u003cTestWorkerProcess #4 running test=test__xxsubinterpreters pid=1282564 time=8.8 sec\u003e process group\r\n\r\n== Tests result: FAILURE ==\r\n\r\n10 slowest tests:\r\n\r\n1 test failed:\r\n    test__xxsubinterpreters\r\n\r\nTotal duration: 9.0 sec\r\nTests result: FAILURE\r\ngalaxy@apollo:~/rpm-work/BUILD/Python-3.11.1 $\r\n```\r\n\r\n# Error messages\r\n\r\nI acquired a core dump and under gdb it looks as follows:\r\n```\r\nReading symbols from python...\r\n[New LWP 1282606]\r\n[New LWP 1282563]\r\n[New LWP 1282568]\r\nCore was generated by `/home/galaxy/rpm-work/BUILD/Python-3.11.1/build/debug/python -u -m test.regrtes'.\r\nProgram terminated with signal SIGSEGV, Segmentation fault.\r\n#0  0x00007effcf93b6a5 in __syscall4 (n=14, a1=2, a2=139637136696304, a3=0, a4=8)\r\n    at ./arch/x86_64/syscall_arch.h:38\r\n38\t\t__asm__ __volatile__ (\"syscall\" : \"=a\"(ret) : \"a\"(n), \"D\"(a1), \"S\"(a2),\r\n[Current thread is 1 (LWP 1282606)]\r\n(gdb) info threads\r\n  Id   Target Id         Frame\r\n* 1    LWP 1282606       0x00007effcf93b6a5 in __syscall4 (n=14, a1=2, a2=139637136696304, a3=0, a4=8)\r\n    at ./arch/x86_64/syscall_arch.h:38\r\n  2    LWP 1282563       0x00007effcf545221 in validate_list (head=0x7effce211d10,\r\n    flags=collecting_clear_unreachable_clear)\r\n    at /home/galaxy/rpm-work/BUILD/Python-3.11.1/Modules/gcmodule.c:397\r\n  3    LWP 1282568       __cp_end () at src/thread/x86_64/syscall_cp.s:29\r\n(gdb) bt\r\n#0  0x00007effcf93b6a5 in __syscall4 (n=14, a1=2, a2=139637136696304, a3=0, a4=8)\r\n    at ./arch/x86_64/syscall_arch.h:38\r\n#1  0x00007effcf93b74c in __restore_sigs (set=0x7effcdee23f0) at src/signal/block.c:43\r\n#2  0x00007effcf93ba59 in raise (sig=11) at src/signal/raise.c:11\r\n#3  0x00007effcf54a6fd in faulthandler_fatal_error (signum=11)\r\n    at /home/galaxy/rpm-work/BUILD/Python-3.11.1/Modules/faulthandler.c:385\r\n#4  \u003csignal handler called\u003e\r\n#5  0x00007effcf47e945 in drop_gil (ceval=0x7effcf855060 \u003c_PyRuntime+352\u003e, ceval2=0x7effce07a1c0,\r\n    tstate=0x7effce3ddaa0) at /home/galaxy/rpm-work/BUILD/Python-3.11.1/Python/ceval_gil.h:169\r\n#6  0x00007effcf47f3a3 in _PyEval_ReleaseLock (tstate=0x7effce3ddaa0)\r\n    at /home/galaxy/rpm-work/BUILD/Python-3.11.1/Python/ceval.c:448\r\n#7  0x00007effcf50d4ef in _PyThreadState_DeleteCurrent (tstate=0x7effce3ddaa0)\r\n    at /home/galaxy/rpm-work/BUILD/Python-3.11.1/Python/pystate.c:1126\r\n#8  0x00007effcf5c95df in thread_run (boot_raw=0x7effcdf8e750)\r\n    at /home/galaxy/rpm-work/BUILD/Python-3.11.1/Modules/_threadmodule.c:1098\r\n#9  0x00007effcf52cee7 in pythread_wrapper (arg=0x7effce3dd380)\r\n    at /home/galaxy/rpm-work/BUILD/Python-3.11.1/Python/thread_pthread.h:241\r\n#10 0x00007effcf957277 in start (p=0x7effcdee2b00) at src/thread/pthread_create.c:207\r\n#11 0x00007effcf95bffe in __clone () at src/thread/x86_64/clone.s:22\r\nBacktrace stopped: frame did not save the PC\r\n(gdb)\r\n```\r\n\r\n# Your environment\r\n\r\n- CPython versions tested on: 3.11.1 (3.10 works and I cannot trigger the crash doing the exactly same steps)\r\n- Operating system and architecture: ALT Linux x86_64 (kernel 5.15.50, glibc 2.35.0.6) -\u003e chroot with musl 1.2.3\r\n- The host machine is Intel(R) Core(TM) i3 CPU 530  @ 2.93GHz with 8GB of RAM\r\n","author":{"url":"https://github.com/galaxy4public","@type":"Person","name":"galaxy4public"},"datePublished":"2023-01-12T11:39:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/100981/cpython/issues/100981"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:40f82db9-a369-0760-d58a-9b37589f8013
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id995C:E3F0D:2C03D79:397BBAF:696B723A
html-safe-nonceeee55d22106cdf368e7910af3778ff8deb09ca90a51a46532d3681366cc86a09
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTVDOkUzRjBEOjJDMDNENzk6Mzk3QkJBRjo2OTZCNzIzQSIsInZpc2l0b3JfaWQiOiIzODk2ODY4MDM3NTI3ODI3MDAyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb790a9268d1d262a5e17930656975487a304c195e36cd06f2a9114244a2dc043
hovercard-subject-tagissue:1530565551
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/100981/issue_layout
twitter:imagehttps://opengraph.githubassets.com/58f4bee5cb737f84056a4c72cce38521008bf149beb48c9acd3ab5ac443461e3/python/cpython/issues/100981
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/58f4bee5cb737f84056a4c72cce38521008bf149beb48c9acd3ab5ac443461e3/python/cpython/issues/100981
og:image:altCrash report When running the testsuite one test is intermittently failing with a segmentation fault. The test in question is test=test__xxsubinterpreters and the crash seems to be GIL related. I a...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegalaxy4public
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
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
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/100981#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F100981
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2F100981
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/100981
Reloadhttps://github.com/python/cpython/issues/100981
Reloadhttps://github.com/python/cpython/issues/100981
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/100981
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k 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.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/issues/100981
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 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/100981
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/100981
Segmentation fault during the test__xxsubinterpreters testhttps://github.com/python/cpython/issues/100981#top
OS-unsupportedhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-unsupported%22
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
topic-subinterpretershttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-subinterpreters%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/galaxy4public
https://github.com/galaxy4public
galaxy4publichttps://github.com/galaxy4public
on Jan 12, 2023https://github.com/python/cpython/issues/100981#issue-1530565551
OS-unsupportedhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-unsupported%22
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
topic-subinterpretershttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-subinterpreters%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
Subinterpretershttps://github.com/orgs/python/projects/3
Unsupported platformshttps://github.com/orgs/python/projects/27
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.