René's URL Explorer Experiment


Title: Introduce some clar helpers for child threads by ethomson · Pull Request #4010 · libgit2/libgit2 · GitHub

Open Graph Title: Introduce some clar helpers for child threads by ethomson · Pull Request #4010 · libgit2/libgit2

X Title: Introduce some clar helpers for child threads by ethomson · Pull Request #4010 · libgit2/libgit2

Description: When running in a child thread, we cannot clar_git_pass (or anything that will cause clar to longjmp to its error handler): The effect of a call to longjmp() where initialization of the jmp_buf structure was not performed in the calling thread is undefined. Instead, provide some helpers to set up an error context in the child thread that the clar execution thread can then restore and abort when safe. Use this for the threads::refdb test so that it errors gracefully, instead of crashing. Obviously this does not fix the underlying problem in thethreads::refdb test, but it does make it easier to reason about.

Open Graph Description: When running in a child thread, we cannot clar_git_pass (or anything that will cause clar to longjmp to its error handler): The effect of a call to longjmp() where initialization of the jmp_buf st...

X Description: When running in a child thread, we cannot clar_git_pass (or anything that will cause clar to longjmp to its error handler): The effect of a call to longjmp() where initialization of the jmp_buf st...

Opengraph URL: https://github.com/libgit2/libgit2/pull/4010

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:67a1d751-b083-ab86-8783-954d13127e97
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9C96:16F405:4FA43AD:68266D2:6A5D7C6D
html-safe-noncef8874829e8f40e2242a7ed15e2c7ced4ab6262c0c27468d8019aef27172a54ba
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Qzk2OjE2RjQwNTo0RkE0M0FEOjY4MjY2RDI6NkE1RDdDNkQiLCJ2aXNpdG9yX2lkIjoiNTU2MzQ4OTEwNTU4ODYxNjMwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac85c46986734a53000c5a0ebfb0ac0576651bd9221da6f649c583cf83fc9ae7aa
hovercard-subject-tagpull_request:94355656
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/libgit2/libgit2/pull/4010/files
twitter:imagehttps://avatars.githubusercontent.com/u/1130014?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1130014?s=400&v=4
og:image:altWhen running in a child thread, we cannot clar_git_pass (or anything that will cause clar to longjmp to its error handler): The effect of a call to longjmp() where initialization of the jmp_buf st...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/libgit2/libgit2 git https://github.com/libgit2/libgit2.git
octolytics-dimension-user_id394745
octolytics-dimension-user_loginlibgit2
octolytics-dimension-repository_id901662
octolytics-dimension-repository_nwolibgit2/libgit2
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id901662
octolytics-dimension-repository_network_root_nwolibgit2/libgit2
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/libgit2/libgit2/pull/4010/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flibgit2%2Flibgit2%2Fpull%2F4010%2Ffiles
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%2Flibgit2%2Flibgit2%2Fpull%2F4010%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=libgit2%2Flibgit2
Reloadhttps://github.com/libgit2/libgit2/pull/4010/files
Reloadhttps://github.com/libgit2/libgit2/pull/4010/files
Reloadhttps://github.com/libgit2/libgit2/pull/4010/files
Please reload this pagehttps://github.com/libgit2/libgit2/pull/4010/files
libgit2 https://github.com/libgit2
libgit2https://github.com/libgit2/libgit2
Notifications https://github.com/login?return_to=%2Flibgit2%2Flibgit2
Fork 2.6k https://github.com/login?return_to=%2Flibgit2%2Flibgit2
Star 10.5k https://github.com/login?return_to=%2Flibgit2%2Flibgit2
Code https://github.com/libgit2/libgit2
Issues 423 https://github.com/libgit2/libgit2/issues
Pull requests 108 https://github.com/libgit2/libgit2/pulls
Discussions https://github.com/libgit2/libgit2/discussions
Actions https://github.com/libgit2/libgit2/actions
Projects https://github.com/libgit2/libgit2/projects
Security and quality 9 https://github.com/libgit2/libgit2/security
Insights https://github.com/libgit2/libgit2/pulse
Code https://github.com/libgit2/libgit2
Issues https://github.com/libgit2/libgit2/issues
Pull requests https://github.com/libgit2/libgit2/pulls
Discussions https://github.com/libgit2/libgit2/discussions
Actions https://github.com/libgit2/libgit2/actions
Projects https://github.com/libgit2/libgit2/projects
Security and quality https://github.com/libgit2/libgit2/security
Insights https://github.com/libgit2/libgit2/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Flibgit2%2Flibgit2%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Flibgit2%2Flibgit2%2Fissues%2Fnew%2Fchoose
carlosmnhttps://github.com/carlosmn
masterhttps://github.com/libgit2/libgit2/tree/master
ethomson/clar_threadshttps://github.com/libgit2/libgit2/tree/ethomson/clar_threads
Conversation 6 https://github.com/libgit2/libgit2/pull/4010
Commits 5 https://github.com/libgit2/libgit2/pull/4010/commits
Checks 0 https://github.com/libgit2/libgit2/pull/4010/checks
Files changed https://github.com/libgit2/libgit2/pull/4010/files
Please reload this pagehttps://github.com/libgit2/libgit2/pull/4010/files
Introduce some clar helpers for child threads https://github.com/libgit2/libgit2/pull/4010/files#top
Show all changes 5 commits https://github.com/libgit2/libgit2/pull/4010/files
82f1589 threads: introduce `git_thread_exit` Nov 18, 2016 https://github.com/libgit2/libgit2/pull/4010/commits/82f15896deb06d396d76d706f6c0146197d14b2c
9947906 core::init tests: reverse init/shutdown Nov 18, 2016 https://github.com/libgit2/libgit2/pull/4010/commits/99479062dbb738ebc5892e163b701680cea91980
bbf22f8 clar: Introduce assertion helpers for threads Nov 18, 2016 https://github.com/libgit2/libgit2/pull/4010/commits/bbf22f8229718571059cd579945b134772f9a73d
6a05c7a threads::refdb tests: use new threaded clar assert Nov 18, 2016 https://github.com/libgit2/libgit2/pull/4010/commits/6a05c7a0efd60dce3e99673c3256bf60516693ed
6367c58 tests: handle life without threads Nov 18, 2016 https://github.com/libgit2/libgit2/pull/4010/commits/6367c58cd482288e5cd476bd48d0d4406e3bac7b
Clear filters https://github.com/libgit2/libgit2/pull/4010/files
Please reload this pagehttps://github.com/libgit2/libgit2/pull/4010/files
Please reload this pagehttps://github.com/libgit2/libgit2/pull/4010/files
global.h https://github.com/libgit2/libgit2/pull/4010/files#diff-95447242d2d9a6faee110005c62053f1bdac647f66f546227c4868a1752ee5c7
pthread.h https://github.com/libgit2/libgit2/pull/4010/files#diff-4ee2d1822f0c9de7e74b7ac1262cf4f42e094dfe0b1b03cbe73ab2b6e5d6f726
thread.c https://github.com/libgit2/libgit2/pull/4010/files#diff-067e6095e15f229a803c08fa72ec2e52d4e4c2f6d454ff9759bf0e854c96008f
thread.h https://github.com/libgit2/libgit2/pull/4010/files#diff-10fd96b5a5c02a4954040208718313d52e52e19dc0041c417d5f61eae315148d
clar_libgit2.h https://github.com/libgit2/libgit2/pull/4010/files#diff-a7bc7d419f095dee8cd3c544696a41edd17fefa2aa4cd645bc690b7667546690
init.c https://github.com/libgit2/libgit2/pull/4010/files#diff-074599860fa4bf5fc28013b8117767157977a06ce3203f2655432c2d310c2073
basic.c https://github.com/libgit2/libgit2/pull/4010/files#diff-958bb6c814cc48681e5e9a85c623cb5a73a629f386ee2b8398c265c35b26aff6
refdb.c https://github.com/libgit2/libgit2/pull/4010/files#diff-9fb9f127d2f7a09eadb32b906a1b3e45388c0515e1b28cbcb7efa4dc304ca796
src/global.hhttps://github.com/libgit2/libgit2/pull/4010/files#diff-95447242d2d9a6faee110005c62053f1bdac647f66f546227c4868a1752ee5c7
View file https://github.com/libgit2/libgit2/blob/6367c58cd482288e5cd476bd48d0d4406e3bac7b/src/global.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/libgit2/libgit2/pull/4010/{{ revealButtonHref }}
https://github.com/libgit2/libgit2/pull/4010/files#diff-95447242d2d9a6faee110005c62053f1bdac647f66f546227c4868a1752ee5c7
https://github.com/libgit2/libgit2/pull/4010/files#diff-95447242d2d9a6faee110005c62053f1bdac647f66f546227c4868a1752ee5c7
src/unix/pthread.hhttps://github.com/libgit2/libgit2/pull/4010/files#diff-4ee2d1822f0c9de7e74b7ac1262cf4f42e094dfe0b1b03cbe73ab2b6e5d6f726
View file https://github.com/libgit2/libgit2/blob/6367c58cd482288e5cd476bd48d0d4406e3bac7b/src/unix/pthread.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/libgit2/libgit2/pull/4010/{{ revealButtonHref }}
https://github.com/libgit2/libgit2/pull/4010/files#diff-4ee2d1822f0c9de7e74b7ac1262cf4f42e094dfe0b1b03cbe73ab2b6e5d6f726
https://github.com/libgit2/libgit2/pull/4010/files#diff-4ee2d1822f0c9de7e74b7ac1262cf4f42e094dfe0b1b03cbe73ab2b6e5d6f726
src/win32/thread.chttps://github.com/libgit2/libgit2/pull/4010/files#diff-067e6095e15f229a803c08fa72ec2e52d4e4c2f6d454ff9759bf0e854c96008f
View file https://github.com/libgit2/libgit2/blob/6367c58cd482288e5cd476bd48d0d4406e3bac7b/src/win32/thread.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/libgit2/libgit2/pull/4010/{{ revealButtonHref }}
https://github.com/libgit2/libgit2/pull/4010/files#diff-067e6095e15f229a803c08fa72ec2e52d4e4c2f6d454ff9759bf0e854c96008f
https://github.com/libgit2/libgit2/pull/4010/files#diff-067e6095e15f229a803c08fa72ec2e52d4e4c2f6d454ff9759bf0e854c96008f
https://github.com/libgit2/libgit2/pull/4010/files#diff-067e6095e15f229a803c08fa72ec2e52d4e4c2f6d454ff9759bf0e854c96008f
https://github.com/libgit2/libgit2/pull/4010/files#diff-067e6095e15f229a803c08fa72ec2e52d4e4c2f6d454ff9759bf0e854c96008f
src/win32/thread.hhttps://github.com/libgit2/libgit2/pull/4010/files#diff-10fd96b5a5c02a4954040208718313d52e52e19dc0041c417d5f61eae315148d
View file https://github.com/libgit2/libgit2/blob/6367c58cd482288e5cd476bd48d0d4406e3bac7b/src/win32/thread.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/libgit2/libgit2/pull/4010/{{ revealButtonHref }}
https://github.com/libgit2/libgit2/pull/4010/files#diff-10fd96b5a5c02a4954040208718313d52e52e19dc0041c417d5f61eae315148d
https://github.com/libgit2/libgit2/pull/4010/files#diff-10fd96b5a5c02a4954040208718313d52e52e19dc0041c417d5f61eae315148d
tests/clar_libgit2.hhttps://github.com/libgit2/libgit2/pull/4010/files#diff-a7bc7d419f095dee8cd3c544696a41edd17fefa2aa4cd645bc690b7667546690
View file https://github.com/libgit2/libgit2/blob/6367c58cd482288e5cd476bd48d0d4406e3bac7b/tests/clar_libgit2.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/libgit2/libgit2/pull/4010/{{ revealButtonHref }}
https://github.com/libgit2/libgit2/pull/4010/files#diff-a7bc7d419f095dee8cd3c544696a41edd17fefa2aa4cd645bc690b7667546690
carlosmnhttps://github.com/carlosmn
Nov 18, 2016https://github.com/libgit2/libgit2/pull/4010/files#r88654723
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/libgit2/libgit2/pull/4010/files
ethomsonhttps://github.com/ethomson
Nov 18, 2016https://github.com/libgit2/libgit2/pull/4010/files#r88664432
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/libgit2/libgit2/pull/4010/files
carlosmnhttps://github.com/carlosmn
Nov 18, 2016https://github.com/libgit2/libgit2/pull/4010/files#r88654864
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/libgit2/libgit2/pull/4010/files
ethomsonhttps://github.com/ethomson
Nov 18, 2016https://github.com/libgit2/libgit2/pull/4010/files#r88664550
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/libgit2/libgit2/pull/4010/files
ethomsonhttps://github.com/ethomson
Nov 18, 2016https://github.com/libgit2/libgit2/pull/4010/files#r88721876
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/libgit2/libgit2/pull/4010/files
carlosmnhttps://github.com/carlosmn
Nov 18, 2016https://github.com/libgit2/libgit2/pull/4010/files#r88729061
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/libgit2/libgit2/pull/4010/files
https://github.com/libgit2/libgit2/pull/4010/files#diff-a7bc7d419f095dee8cd3c544696a41edd17fefa2aa4cd645bc690b7667546690
tests/core/init.chttps://github.com/libgit2/libgit2/pull/4010/files#diff-074599860fa4bf5fc28013b8117767157977a06ce3203f2655432c2d310c2073
View file https://github.com/libgit2/libgit2/blob/6367c58cd482288e5cd476bd48d0d4406e3bac7b/tests/core/init.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/libgit2/libgit2/pull/4010/{{ revealButtonHref }}
https://github.com/libgit2/libgit2/pull/4010/files#diff-074599860fa4bf5fc28013b8117767157977a06ce3203f2655432c2d310c2073
https://github.com/libgit2/libgit2/pull/4010/files#diff-074599860fa4bf5fc28013b8117767157977a06ce3203f2655432c2d310c2073
tests/threads/basic.chttps://github.com/libgit2/libgit2/pull/4010/files#diff-958bb6c814cc48681e5e9a85c623cb5a73a629f386ee2b8398c265c35b26aff6
View file https://github.com/libgit2/libgit2/blob/6367c58cd482288e5cd476bd48d0d4406e3bac7b/tests/threads/basic.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/libgit2/libgit2/pull/4010/{{ revealButtonHref }}
https://github.com/libgit2/libgit2/pull/4010/files#diff-958bb6c814cc48681e5e9a85c623cb5a73a629f386ee2b8398c265c35b26aff6
tests/threads/refdb.chttps://github.com/libgit2/libgit2/pull/4010/files#diff-9fb9f127d2f7a09eadb32b906a1b3e45388c0515e1b28cbcb7efa4dc304ca796
View file https://github.com/libgit2/libgit2/blob/6367c58cd482288e5cd476bd48d0d4406e3bac7b/tests/threads/refdb.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/libgit2/libgit2/pull/4010/{{ revealButtonHref }}
https://github.com/libgit2/libgit2/pull/4010/files#diff-9fb9f127d2f7a09eadb32b906a1b3e45388c0515e1b28cbcb7efa4dc304ca796
https://github.com/libgit2/libgit2/pull/4010/files#diff-9fb9f127d2f7a09eadb32b906a1b3e45388c0515e1b28cbcb7efa4dc304ca796
https://github.com/libgit2/libgit2/pull/4010/files#diff-9fb9f127d2f7a09eadb32b906a1b3e45388c0515e1b28cbcb7efa4dc304ca796
https://github.com/libgit2/libgit2/pull/4010/files#diff-9fb9f127d2f7a09eadb32b906a1b3e45388c0515e1b28cbcb7efa4dc304ca796
https://github.com/libgit2/libgit2/pull/4010/files#diff-9fb9f127d2f7a09eadb32b906a1b3e45388c0515e1b28cbcb7efa4dc304ca796
https://github.com/libgit2/libgit2/pull/4010/files#diff-9fb9f127d2f7a09eadb32b906a1b3e45388c0515e1b28cbcb7efa4dc304ca796
https://github.com/libgit2/libgit2/pull/4010/files#diff-9fb9f127d2f7a09eadb32b906a1b3e45388c0515e1b28cbcb7efa4dc304ca796
https://github.com/libgit2/libgit2/pull/4010/files#diff-9fb9f127d2f7a09eadb32b906a1b3e45388c0515e1b28cbcb7efa4dc304ca796
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.