René's URL Explorer Experiment


Title: Deadlock during classloading of org.xbill.DNS.NioTcpClient · Issue #315 · dnsjava/dnsjava · GitHub

Open Graph Title: Deadlock during classloading of org.xbill.DNS.NioTcpClient · Issue #315 · dnsjava/dnsjava

X Title: Deadlock during classloading of org.xbill.DNS.NioTcpClient · Issue #315 · dnsjava/dnsjava

Description: On version 3.5.3 in class org.xbill.DNS.NioTcpClient there is a possible deadlock situation as seen in the stacktrace below. This only happens if classloading timing is very unfortunate Assume a fully initialized org.xbill.DNS.Resolver o...

Open Graph Description: On version 3.5.3 in class org.xbill.DNS.NioTcpClient there is a possible deadlock situation as seen in the stacktrace below. This only happens if classloading timing is very unfortunate Assume a fu...

X Description: On version 3.5.3 in class org.xbill.DNS.NioTcpClient there is a possible deadlock situation as seen in the stacktrace below. This only happens if classloading timing is very unfortunate Assume a fu...

Opengraph URL: https://github.com/dnsjava/dnsjava/issues/315

X: @github

direct link

Domain: redirect.github.com

IPv4 address: 140.82.113.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Deadlock during classloading of org.xbill.DNS.NioTcpClient","articleBody":"On version 3.5.3 in class `org.xbill.DNS.NioTcpClient` there is a possible deadlock situation as seen in the stacktrace below.\r\n\r\nThis only happens if classloading timing is very unfortunate\r\n\r\n* Assume a fully initialized `org.xbill.DNS.Resolver` only issuing DNS queries via UDP\r\n* At some point condition `out.length > udpSize` evaluates to true in method `org.xbill.DNS.SimpleResolver#sendAsync(org.xbill.DNS.Message, boolean, java.util.concurrent.Executor)`\r\n  The next DNS request will use invoke `NioTcpClient.sendrecv` in `SimpleResolver`\r\n* The first ever Tcp based request will trigger class loading of `org.xbill.DNS.NioTcpClient`\r\n* Static constructor of `NioTcpClient` expects to be able to acquire a lock on class `org.xbill.DNS.NioClient`. However, in the case of a deadlock it will not get that lock.\r\n* If right before that, another thread acquired the lock on class `org.xbill.DNS.NioClient` it will need to wait on class initialization (which is waiting on the previously mentioned lock)\r\n\r\n\r\n# Stacktrace\r\n\r\n```\r\n\r\n\"dns-query-0\" #83 daemon prio=5 os_prio=0 cpu=3161.04ms elapsed=148678.94s tid=0x00007f4204732310 nid=0xf7 waiting for monitor entry  [0x00007f421dfe9000]\r\n   java.lang.Thread.State: BLOCKED (on object monitor)\r\n\tat org.xbill.DNS.NioClient.setTimeoutTask(NioClient.java:141)\r\n\t- waiting to lock \u003c0x00000000887809b8> (a java.lang.Class for org.xbill.DNS.NioClient)\r\n\tat org.xbill.DNS.NioTcpClient.\u003cclinit>(NioTcpClient.java:32)\r\n\tat org.xbill.DNS.SimpleResolver.sendAsync(SimpleResolver.java:371)\r\n\tat org.xbill.DNS.SimpleResolver.lambda$sendAsync$1(SimpleResolver.java:446)\r\n\tat org.xbill.DNS.SimpleResolver$$Lambda$2084/0x00007f4220b80a98.apply(Unknown Source)\r\n\tat java.util.concurrent.CompletableFuture$UniCompose.tryFire(java.base@17.0.10/CompletableFuture.java:1150)\r\n\tat java.util.concurrent.CompletableFuture$Completion.run(java.base@17.0.10/CompletableFuture.java:482)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@17.0.10/ThreadPoolExecutor.java:1136)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@17.0.10/ThreadPoolExecutor.java:635)\r\n\tat java.lang.Thread.run(java.base@17.0.10/Thread.java:840)\r\n\r\n\"dnsjava NIO selector\" #81 daemon prio=5 os_prio=0 cpu=13969.60ms elapsed=148678.96s tid=0x0000557c0c33cc60 nid=0xf6 in Object.wait()  [0x00007f421e0ef000]\r\n   java.lang.Thread.State: RUNNABLE\r\n\tat org.xbill.DNS.NioTcpClient$$Lambda$3208/0x00007f4220d82520.run(Unknown Source)\r\n\t- waiting on the Class initialization monitor for org.xbill.DNS.NioTcpClient\r\n\tat org.xbill.DNS.NioClient.runTasks(NioClient.java:163)\r\n\t- locked \u003c0x00000000887809b8> (a java.lang.Class for org.xbill.DNS.NioClient)\r\n\tat org.xbill.DNS.NioClient.runSelector(NioClient.java:128)\r\n\tat org.xbill.DNS.NioClient$$Lambda$2081/0x00007f4220b80220.run(Unknown Source)\r\n\tat java.lang.Thread.run(java.base@17.0.10/Thread.java:840)\r\n\r\n\r\n```\r\n\r\n\r\n# TLDR\r\n\r\nThere is a super rare deadlock while class-loading `org.xbill.DNS.NioTcpClient`. It can be avoided be manually pre-loading said class.\r\n\r\nAs far as I can see, the following commit on master may prevent that from happening. The offending static constructor has been removed\r\n\r\nhttps://github.com/dnsjava/dnsjava/commit/5da277075230e8a131edfefadfb119c0556fa904\r\n","author":{"url":"https://github.com/ganzm","@type":"Person","name":"ganzm"},"datePublished":"2024-03-04T15:34:17Z","url":"https://github.com/dnsjava/dnsjava/issues/315"}

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:8bbe3f96-7345-6a10-3017-6e2b07bad38b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB0BC:1325E:30C133:436DD9:6B060151
html-safe-nonce857d538fd22ad0b070017482977157cb8967b18d95e73514c3823d086deed318
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMEJDOjEzMjVFOjMwQzEzMzo0MzZERDk6NkIwNjAxNTEiLCJ2aXNpdG9yX2lkIjoiMzI5NjY5NDc0OTMzNTI1NzQyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac73f9083a0519f832510262e6edd919a5e612bd882aae2b743d6671b67592ac61
hovercard-subject-tagissue:2167132848
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/dnsjava/dnsjava/315/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c755d6ab86c892d9d544e5f67c9f1daa3674d282fe5a1ee56971de470da3a526/dnsjava/dnsjava/issues/315
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c755d6ab86c892d9d544e5f67c9f1daa3674d282fe5a1ee56971de470da3a526/dnsjava/dnsjava/issues/315
og:image:altOn version 3.5.3 in class org.xbill.DNS.NioTcpClient there is a possible deadlock situation as seen in the stacktrace below. This only happens if classloading timing is very unfortunate Assume a fu...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameganzm
hostnamegithub.com
expected-hostnamegithub.com
Nonec214754a6652274794ed4e054a7b71be999d69843f103ba54893001d45010ece
turbo-cache-controlno-preview
go-importgithub.com/dnsjava/dnsjava git https://github.com/dnsjava/dnsjava.git
octolytics-dimension-user_id6755615
octolytics-dimension-user_logindnsjava
octolytics-dimension-repository_id17084567
octolytics-dimension-repository_nwodnsjava/dnsjava
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id17084567
octolytics-dimension-repository_network_root_nwodnsjava/dnsjava
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
release7d164a4e71eb333b2b17fd5b17e18efb7855505c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://redirect.github.com/dnsjava/dnsjava/issues/315#start-of-content
https://redirect.github.com/
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdnsjava%2Fdnsjava%2Fissues%2F315
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://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdnsjava%2Fdnsjava%2Fissues%2F315
Sign uphttps://redirect.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=dnsjava%2Fdnsjava
Reloadhttps://redirect.github.com/dnsjava/dnsjava/issues/315
Reloadhttps://redirect.github.com/dnsjava/dnsjava/issues/315
Reloadhttps://redirect.github.com/dnsjava/dnsjava/issues/315
dnsjavahttps://redirect.github.com/dnsjava
dnsjavahttps://redirect.github.com/dnsjava/dnsjava
Codehttps://redirect.github.com/dnsjava/dnsjava
Issues16 (16)https://redirect.github.com/dnsjava/dnsjava/issues
Pull requests3 (3)https://redirect.github.com/dnsjava/dnsjava/pulls
Actionshttps://redirect.github.com/dnsjava/dnsjava/actions
Security and quality8 (8)https://redirect.github.com/dnsjava/dnsjava/security
Insightshttps://redirect.github.com/dnsjava/dnsjava/insights
https://redirect.github.com/dnsjava/dnsjava
New issuehttps://redirect.github.com/login?return_to=https://github.com/dnsjava/dnsjava/issues/315
New issuehttps://redirect.github.com/login?return_to=https://github.com/dnsjava/dnsjava/issues/315
Deadlock during classloading of org.xbill.DNS.NioTcpClienthttps://redirect.github.com/dnsjava/dnsjava/issues/315#top
https://redirect.github.com/ibauersachs
bughttps://github.com/dnsjava/dnsjava/issues?q=state%3Aopen%20label%3A%22bug%22
v3.6https://github.com/dnsjava/dnsjava/milestone/14
https://github.com/ganzm
ganzmhttps://github.com/ganzm
on Mar 4, 2024https://github.com/dnsjava/dnsjava/issues/315#issue-2167132848
5da2770https://github.com/dnsjava/dnsjava/commit/5da277075230e8a131edfefadfb119c0556fa904
https://redirect.github.com/demonti
demontihttps://redirect.github.com/demonti
on May 7, 2024https://github.com/dnsjava/dnsjava/issues/315#issuecomment-2098494780
ibauersachshttps://redirect.github.com/ibauersachs
bughttps://redirect.github.com/dnsjava/dnsjava/issues?q=state%3Aopen%20label%3A%22bug%22
on Jun 22, 2024https://github.com/dnsjava/dnsjava/issues/315#event-13251007823
ibauersachshttps://redirect.github.com/ibauersachs
v3.6https://github.com/dnsjava/dnsjava/milestone/14
on Jun 22, 2024https://github.com/dnsjava/dnsjava/issues/315#event-13251007875
ibauersachshttps://redirect.github.com/ibauersachs
on Jun 22, 2024https://github.com/dnsjava/dnsjava/issues/315#event-13251007949
ibauersachshttps://redirect.github.com/ibauersachs
completedhttps://redirect.github.com/dnsjava/dnsjava/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 21, 2024https://github.com/dnsjava/dnsjava/issues/315#event-13592394774
Sign up for freehttps://redirect.github.com/signup?return_to=https://github.com/dnsjava/dnsjava/issues/315
Sign in to commenthttps://redirect.github.com/login?return_to=https://github.com/dnsjava/dnsjava/issues/315
ibauersachshttps://redirect.github.com/ibauersachs
bughttps://github.com/dnsjava/dnsjava/issues?q=state%3Aopen%20label%3A%22bug%22
v3.6https://github.com/dnsjava/dnsjava/milestone/14
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.