René's URL Explorer Experiment


Title: SegFault before Python shutdown · Issue #1683 · pythonnet/pythonnet · GitHub

Open Graph Title: SegFault before Python shutdown · Issue #1683 · pythonnet/pythonnet

X Title: SegFault before Python shutdown · Issue #1683 · pythonnet/pythonnet

Description: Environment Pythonnet version: 3.0.0.dev1 Python version: 3.9.9 Operating System: Kali Linux .NET Runtime: mono-complete:amd64/kali-rolling 6.8.0.105+dfsg-3.2 uptodate mono-devel:all/kali-rolling 6.8.0.105+dfsg-3.2 Details This example c...

Open Graph Description: Environment Pythonnet version: 3.0.0.dev1 Python version: 3.9.9 Operating System: Kali Linux .NET Runtime: mono-complete:amd64/kali-rolling 6.8.0.105+dfsg-3.2 uptodate mono-devel:all/kali-rolling 6...

X Description: Environment Pythonnet version: 3.0.0.dev1 Python version: 3.9.9 Operating System: Kali Linux .NET Runtime: mono-complete:amd64/kali-rolling 6.8.0.105+dfsg-3.2 uptodate mono-devel:all/kali-rolling 6...

Opengraph URL: https://github.com/pythonnet/pythonnet/issues/1683

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SegFault before Python shutdown","articleBody":"### Environment\r\n\r\n-   Pythonnet version: 3.0.0.dev1\r\n-   Python version: 3.9.9\r\n-   Operating System: Kali Linux\r\n-   .NET Runtime: \r\nmono-complete:amd64/kali-rolling 6.8.0.105+dfsg-3.2 uptodate\r\nmono-devel:all/kali-rolling 6.8.0.105+dfsg-3.2\r\n\r\n### Details\r\n\r\nThis example causes segfault before python shutdown:\r\n\r\n```\r\nimport clr\r\nfrom System import IntPtr\r\na = clr.GetClrType(IntPtr)\r\n```\r\nActually no matter what type is imported (IntPtr, Console, etc.) - crashing anyway. However, crash happen exactly after the program finished its executing and only when NO debugging.\r\n\r\n```\r\ngef➤  bt\r\n\r\n#0  0x0000000040071c50 in ?? ()\r\n#1  0x0000000000508a13 in _Py_Dealloc (op=\u003coptimized out\u003e) at ../Objects/object.c:2209\r\n#2  _Py_DECREF (op=\u003coptimized out\u003e) at ../Include/object.h:430\r\n#3  _Py_XDECREF (op=\u003coptimized out\u003e) at ../Include/object.h:497\r\n#4  free_keys_object (keys=0x11ac070) at ../Objects/dictobject.c:598\r\n#5  0x0000000000508824 in dictkeys_decref (dk=\u003coptimized out\u003e) at ../Objects/dictobject.c:333\r\n#6  dict_dealloc (mp=0x7ffff78671c0) at ../Objects/dictobject.c:2026\r\n#7  0x00000000005a9f60 in _Py_DECREF (op=\u003coptimized out\u003e) at ../Include/object.h:430\r\n#8  _Py_XDECREF (op=\u003coptimized out\u003e) at ../Include/object.h:497\r\n#9  module_dealloc (m=0x7ffff7863cc0) at ../Objects/moduleobject.c:677\r\n#10 0x00000000004f9749 in _Py_Dealloc (op=\u003coptimized out\u003e) at ../Objects/object.c:2209\r\n#11 _Py_DECREF (op=\u003coptimized out\u003e) at ../Include/object.h:430\r\n#12 _Py_XDECREF (op=\u003coptimized out\u003e) at ../Include/object.h:497\r\n#13 insertdict (mp=\u003coptimized out\u003e, key='__main__', hash=\u003coptimized out\u003e, value=\u003coptimized out\u003e) at ../Objects/dictobject.c:1123\r\n#14 0x00000000006294a0 in _PyImport_Cleanup (tstate=0x94e6e0) at ../Python/import.c:526\r\n#15 0x000000000062732f in Py_FinalizeEx () at ../Python/pylifecycle.c:1426\r\n#16 0x000000000061e0c0 in Py_RunMain () at ../Modules/main.c:679\r\n#17 0x0000000000606199 in Py_BytesMain (argc=\u003coptimized out\u003e, argv=\u003coptimized out\u003e) at ../Modules/main.c:731\r\n#18 0x00007ffff7c427ed in __libc_start_main (main=0x606160 \u003cmain\u003e, argc=0x2, argv=0x7fffffffde18, init=\u003coptimized out\u003e, fini=\u003coptimized out\u003e, rtld_fini=\u003coptimized out\u003e, stack_end=0x7fffffffde08) at ../csu/libc-start.c:332\r\n#19 0x000000000060609a in _start ()\r\n\r\ngef➤  xinfo 0x0000000040071c50\r\n[*] Cannot reach 0x40071c50 in memory space\r\n\r\ngef➤  xinfo 0x0000000000508a13\r\nPage: 0x000000000041f000  →  0x0000000000690000 (size=0x271000)\r\nPermissions: r-x\r\nPathname: /usr/bin/python3.9\r\nOffset (from page): 0xe9a13\r\nInode: 6816263\r\nSegment: .text (0x0000000000420e70-0x000000000068fe11)\r\nOffset (from segment): 0xe7ba3\r\nSymbol: free_keys_object.lto_priv+115\r\n```\r\n\r\nIf we add at the end of the script this line, then everything works like a charm:\r\n```\r\nEnvironment.Exit(0)\r\n```\r\n\r\nAlso works well if we clear variable at the end:\r\n```\r\na = None\r\n```","author":{"url":"https://github.com/AndyWatterman","@type":"Person","name":"AndyWatterman"},"datePublished":"2022-01-28T06:16:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/1683/pythonnet/issues/1683"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b2271335-af9e-8996-f035-22918a1521c8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id87A2:34DEC:2BD34E1:3D8EFC3:6971075D
html-safe-nonce022059b633cb4a9c8fcc60729830c2826591353e6da17c9201c1091e1a43f82f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0EyOjM0REVDOjJCRDM0RTE6M0Q4RUZDMzo2OTcxMDc1RCIsInZpc2l0b3JfaWQiOiI4Nzg3NzU5MjU0MTE5NDUwNDYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac981473e60bfdbed03d4b57d22db63ac2ce34dcd1ad4b37e67fec9015169d5972
hovercard-subject-tagissue:1117041268
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/pythonnet/pythonnet/1683/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b4bb4cbd86fcc59e358e3a81e97041d0cf8e1f12e17fc2b709970317da62acf5/pythonnet/pythonnet/issues/1683
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b4bb4cbd86fcc59e358e3a81e97041d0cf8e1f12e17fc2b709970317da62acf5/pythonnet/pythonnet/issues/1683
og:image:altEnvironment Pythonnet version: 3.0.0.dev1 Python version: 3.9.9 Operating System: Kali Linux .NET Runtime: mono-complete:amd64/kali-rolling 6.8.0.105+dfsg-3.2 uptodate mono-devel:all/kali-rolling 6...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAndyWatterman
hostnamegithub.com
expected-hostnamegithub.com
None6d0e7b0d5e294a53c55f49e80755e785182080c6e6a48c9ed353bedddaee69f4
turbo-cache-controlno-preview
go-importgithub.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git
octolytics-dimension-user_id6050430
octolytics-dimension-user_loginpythonnet
octolytics-dimension-repository_id14748123
octolytics-dimension-repository_nwopythonnet/pythonnet
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id14748123
octolytics-dimension-repository_network_root_nwopythonnet/pythonnet
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
release6d5a3a396bc74e65fd3ef897b0a99a6e489debaa
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/pythonnet/pythonnet/issues/1683#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpythonnet%2Fpythonnet%2Fissues%2F1683
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%2Fpythonnet%2Fpythonnet%2Fissues%2F1683
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=pythonnet%2Fpythonnet
Reloadhttps://github.com/pythonnet/pythonnet/issues/1683
Reloadhttps://github.com/pythonnet/pythonnet/issues/1683
Reloadhttps://github.com/pythonnet/pythonnet/issues/1683
pythonnet https://github.com/pythonnet
pythonnethttps://github.com/pythonnet/pythonnet
Notifications https://github.com/login?return_to=%2Fpythonnet%2Fpythonnet
Fork 770 https://github.com/login?return_to=%2Fpythonnet%2Fpythonnet
Star 5.4k https://github.com/login?return_to=%2Fpythonnet%2Fpythonnet
Code https://github.com/pythonnet/pythonnet
Issues 155 https://github.com/pythonnet/pythonnet/issues
Pull requests 18 https://github.com/pythonnet/pythonnet/pulls
Discussions https://github.com/pythonnet/pythonnet/discussions
Actions https://github.com/pythonnet/pythonnet/actions
Projects 0 https://github.com/pythonnet/pythonnet/projects
Wiki https://github.com/pythonnet/pythonnet/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/pythonnet/pythonnet/security
Please reload this pagehttps://github.com/pythonnet/pythonnet/issues/1683
Insights https://github.com/pythonnet/pythonnet/pulse
Code https://github.com/pythonnet/pythonnet
Issues https://github.com/pythonnet/pythonnet/issues
Pull requests https://github.com/pythonnet/pythonnet/pulls
Discussions https://github.com/pythonnet/pythonnet/discussions
Actions https://github.com/pythonnet/pythonnet/actions
Projects https://github.com/pythonnet/pythonnet/projects
Wiki https://github.com/pythonnet/pythonnet/wiki
Security https://github.com/pythonnet/pythonnet/security
Insights https://github.com/pythonnet/pythonnet/pulse
New issuehttps://github.com/login?return_to=https://github.com/pythonnet/pythonnet/issues/1683
New issuehttps://github.com/login?return_to=https://github.com/pythonnet/pythonnet/issues/1683
SegFault before Python shutdownhttps://github.com/pythonnet/pythonnet/issues/1683#top
3.0.0https://github.com/pythonnet/pythonnet/milestone/6
https://github.com/AndyWatterman
https://github.com/AndyWatterman
AndyWattermanhttps://github.com/AndyWatterman
on Jan 28, 2022https://github.com/pythonnet/pythonnet/issues/1683#issue-1117041268
3.0.0https://github.com/pythonnet/pythonnet/milestone/6
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.