René's URL Explorer Experiment


Title: Fixes SIGSEGV and improve thread safety of journal.Reader class by sebres · Pull Request #144 · systemd/python-systemd · GitHub

Open Graph Title: Fixes SIGSEGV and improve thread safety of journal.Reader class by sebres · Pull Request #144 · systemd/python-systemd

X Title: Fixes SIGSEGV and improve thread safety of journal.Reader class by sebres · Pull Request #144 · systemd/python-systemd

Description: Python wrappers for systemd functionality. Contribute to systemd/python-systemd development by creating an account on GitHub.

Open Graph Description: This PR fixes threaded issues of journal.Reader class and improves its thread-safety, using simple protection with ref-counter; It would avoid segfault by closing journal across threads. The algori...

X Description: This PR fixes threaded issues of journal.Reader class and improves its thread-safety, using simple protection with ref-counter; It would avoid segfault by closing journal across threads. The algori...

Opengraph URL: https://github.com/systemd/python-systemd/pull/144

X: @github

direct link

Domain: redirect.github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:20e835ab-35d2-4590-9736-4abb1006f91c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8294:11231F:286EDD:367E29:6A4D8A3D
html-safe-nonce6958ec7ba9d34cffec140a3c5d9feaaa483f104deb2ffd2a3d543a67ff791f1a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Mjk0OjExMjMxRjoyODZFREQ6MzY3RTI5OjZBNEQ4QTNEIiwidmlzaXRvcl9pZCI6IjI2ODY1MjE4ODgxODAzNzQwNzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac5e1335508e04e26cb01b20142eed031d1cdedf81d1840e643ff79f6d8ee9f211
hovercard-subject-tagpull_request:2431875269
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/systemd/python-systemd/144/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/24aba3efc46a05ab1fa9d04f6701ce2f3023f814bedb455013ea29d714950ce5/systemd/python-systemd/pull/144
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/24aba3efc46a05ab1fa9d04f6701ce2f3023f814bedb455013ea29d714950ce5/systemd/python-systemd/pull/144
og:image:altThis PR fixes threaded issues of journal.Reader class and improves its thread-safety, using simple protection with ref-counter; It would avoid segfault by closing journal across threads. The algori...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesebres
hostnamegithub.com
expected-hostnamegithub.com
None9f8758a3953dfe943439713a6fa4f90d542a3431f10e861ca03dd7f39009f320
turbo-cache-controlno-cache
go-importgithub.com/systemd/python-systemd git https://github.com/systemd/python-systemd.git
octolytics-dimension-user_id1918868
octolytics-dimension-user_loginsystemd
octolytics-dimension-repository_id38590109
octolytics-dimension-repository_nwosystemd/python-systemd
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id38590109
octolytics-dimension-repository_network_root_nwosystemd/python-systemd
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
releasebffd5484f01713a661b03469b77678f72b6574ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://redirect.github.com/systemd/python-systemd/pull/144#start-of-content
https://redirect.github.com/
Sign in https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsystemd%2Fpython-systemd%2Fpull%2F144
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/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/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/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://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsystemd%2Fpython-systemd%2Fpull%2F144
Sign up https://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=systemd%2Fpython-systemd
Reloadhttps://redirect.github.com/systemd/python-systemd/pull/144
Reloadhttps://redirect.github.com/systemd/python-systemd/pull/144
Reloadhttps://redirect.github.com/systemd/python-systemd/pull/144
Please reload this pagehttps://redirect.github.com/systemd/python-systemd/pull/144
systemd https://redirect.github.com/systemd
python-systemdhttps://redirect.github.com/systemd/python-systemd
Notifications https://redirect.github.com/login?return_to=%2Fsystemd%2Fpython-systemd
Fork 77 https://redirect.github.com/login?return_to=%2Fsystemd%2Fpython-systemd
Star 521 https://redirect.github.com/login?return_to=%2Fsystemd%2Fpython-systemd
Code https://redirect.github.com/systemd/python-systemd
Issues 26 https://redirect.github.com/systemd/python-systemd/issues
Pull requests 3 https://redirect.github.com/systemd/python-systemd/pulls
Actions https://redirect.github.com/systemd/python-systemd/actions
Models https://redirect.github.com/systemd/python-systemd/models
Security and quality 0 https://redirect.github.com/systemd/python-systemd/security
Insights https://redirect.github.com/systemd/python-systemd/pulse
Code https://redirect.github.com/systemd/python-systemd
Issues https://redirect.github.com/systemd/python-systemd/issues
Pull requests https://redirect.github.com/systemd/python-systemd/pulls
Actions https://redirect.github.com/systemd/python-systemd/actions
Models https://redirect.github.com/systemd/python-systemd/models
Security and quality https://redirect.github.com/systemd/python-systemd/security
Insights https://redirect.github.com/systemd/python-systemd/pulse
sebreshttps://redirect.github.com/sebres
systemd:mainhttps://redirect.github.com/systemd/python-systemd/tree/main
sebres:gh-143-sf-fixhttps://redirect.github.com/sebres/python-systemd/tree/gh-143-sf-fix
Conversationhttps://redirect.github.com/systemd/python-systemd/pull/144
Commits4 (4)https://redirect.github.com/systemd/python-systemd/pull/144/commits
Checkshttps://redirect.github.com/systemd/python-systemd/pull/144/checks
Files changedhttps://redirect.github.com/systemd/python-systemd/pull/144/files
Fixes SIGSEGV and improve thread safety of journal.Reader classhttps://redirect.github.com/systemd/python-systemd/pull/144#top
sebreshttps://redirect.github.com/sebres
systemd:mainhttps://redirect.github.com/systemd/python-systemd/tree/main
sebres:gh-143-sf-fixhttps://redirect.github.com/sebres/python-systemd/tree/gh-143-sf-fix
https://redirect.github.com/sebres
sebreshttps://redirect.github.com/sebres
Apr 1, 2025https://redirect.github.com/systemd/python-systemd/pull/144#issue-2963766863
#143https://github.com/systemd/python-systemd/issues/143
gh-143https://github.com/systemd/python-systemd/issues/143
Please reload this pagehttps://redirect.github.com/systemd/python-systemd/pull/144
sebreshttps://redirect.github.com/sebres
April 1, 2025 16:33https://redirect.github.com/systemd/python-systemd/pull/144#commits-pushed-245784c
https://redirect.github.com/sebres
improve thread safety of journal.Reader class by simple protection wi…https://redirect.github.com/systemd/python-systemd/pull/144/commits/245784c42fc5d4a41afc4ab77736f84245f4138b
245784chttps://redirect.github.com/systemd/python-systemd/pull/144/commits/245784c42fc5d4a41afc4ab77736f84245f4138b
systemdgh-143https://github.com/systemd/python-systemd/issues/143
https://redirect.github.com/sebres
amend: close and decrement count for initial reference only once (avo…https://redirect.github.com/systemd/python-systemd/pull/144/commits/7fa91c80e33936488d0ae284fdfa1bd819f6c14e
7fa91c8https://redirect.github.com/systemd/python-systemd/pull/144/commits/7fa91c80e33936488d0ae284fdfa1bd819f6c14e
https://redirect.github.com/sebres
sebreshttps://redirect.github.com/sebres
force-pushedhttps://redirect.github.com/systemd/python-systemd/compare/5a7719b1c42abb80235877c8e34d37561106b6bc..03eec9d660483e4e0f0426d0c8d25e6ab7ec45cd
5a7719bhttps://redirect.github.com/systemd/python-systemd/commit/5a7719b1c42abb80235877c8e34d37561106b6bc
03eec9dhttps://redirect.github.com/systemd/python-systemd/commit/03eec9d660483e4e0f0426d0c8d25e6ab7ec45cd
Compare https://redirect.github.com/systemd/python-systemd/compare/5a7719b1c42abb80235877c8e34d37561106b6bc..03eec9d660483e4e0f0426d0c8d25e6ab7ec45cd
April 2, 2025 16:31https://redirect.github.com/systemd/python-systemd/pull/144#event-17097507015
https://redirect.github.com/sebres
repair GHA-CI (update versions, pip install using --break-system-pack…https://redirect.github.com/systemd/python-systemd/pull/144/commits/7c99a39e6dc40367b4bbd3173f3db9dcc799cc97
7c99a39https://redirect.github.com/systemd/python-systemd/pull/144/commits/7c99a39e6dc40367b4bbd3173f3db9dcc799cc97
https://redirect.github.com/sebres
sebreshttps://redirect.github.com/sebres
force-pushedhttps://redirect.github.com/systemd/python-systemd/compare/03eec9d660483e4e0f0426d0c8d25e6ab7ec45cd..7c99a39e6dc40367b4bbd3173f3db9dcc799cc97
03eec9dhttps://redirect.github.com/systemd/python-systemd/commit/03eec9d660483e4e0f0426d0c8d25e6ab7ec45cd
7c99a39https://redirect.github.com/systemd/python-systemd/commit/7c99a39e6dc40367b4bbd3173f3db9dcc799cc97
Compare https://redirect.github.com/systemd/python-systemd/compare/03eec9d660483e4e0f0426d0c8d25e6ab7ec45cd..7c99a39e6dc40367b4bbd3173f3db9dcc799cc97
April 2, 2025 17:06https://redirect.github.com/systemd/python-systemd/pull/144#event-17097974477
https://redirect.github.com/sebres
sebreshttps://redirect.github.com/sebres
Apr 2, 2025https://redirect.github.com/systemd/python-systemd/pull/144#issuecomment-2773274452
7c99a39https://github.com/systemd/python-systemd/commit/7c99a39e6dc40367b4bbd3173f3db9dcc799cc97
Please reload this pagehttps://redirect.github.com/systemd/python-systemd/pull/144
https://redirect.github.com/sebres
sebreshttps://redirect.github.com/sebres
Jun 4, 2025https://redirect.github.com/systemd/python-systemd/pull/144#issuecomment-2939331177
Please reload this pagehttps://redirect.github.com/systemd/python-systemd/pull/144
https://redirect.github.com/behrmann
behrmannhttps://redirect.github.com/behrmann
Jun 4, 2025 https://redirect.github.com/systemd/python-systemd/pull/144#pullrequestreview-2896126718
View reviewed changes https://redirect.github.com/systemd/python-systemd/pull/144/files/7c99a39e6dc40367b4bbd3173f3db9dcc799cc97
.github/workflows/build.ymlhttps://redirect.github.com/systemd/python-systemd/pull/144/files/7c99a39e6dc40367b4bbd3173f3db9dcc799cc97#diff-5c3fa597431eda03ac3339ae6bf7f05e1a50d6fc7333679ec38e21b337cb6721
behrmannhttps://redirect.github.com/behrmann
Jun 4, 2025https://redirect.github.com/systemd/python-systemd/pull/144#discussion_r2126222808
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://redirect.github.com/systemd/python-systemd/pull/144
sebreshttps://redirect.github.com/sebres
Jun 4, 2025https://redirect.github.com/systemd/python-systemd/pull/144#discussion_r2126237489
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://redirect.github.com/systemd/python-systemd/pull/144
.github/workflows/build.ymlhttps://redirect.github.com/systemd/python-systemd/pull/144/files/7c99a39e6dc40367b4bbd3173f3db9dcc799cc97#diff-5c3fa597431eda03ac3339ae6bf7f05e1a50d6fc7333679ec38e21b337cb6721
behrmannhttps://redirect.github.com/behrmann
Jun 4, 2025https://redirect.github.com/systemd/python-systemd/pull/144#discussion_r2126223777
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://redirect.github.com/systemd/python-systemd/pull/144
sebreshttps://redirect.github.com/sebres
Jun 4, 2025https://redirect.github.com/systemd/python-systemd/pull/144#discussion_r2126248756
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://redirect.github.com/systemd/python-systemd/pull/144
https://redirect.github.com/hongquan
hongquanhttps://redirect.github.com/hongquan
Jun 28, 2025https://redirect.github.com/systemd/python-systemd/pull/144#issuecomment-3015231270
#147https://github.com/systemd/python-systemd/pull/147
Please reload this pagehttps://redirect.github.com/systemd/python-systemd/pull/144
https://redirect.github.com/sebres
sebreshttps://redirect.github.com/sebres
Jun 30, 2025https://redirect.github.com/systemd/python-systemd/pull/144#issuecomment-3018851735
#147https://github.com/systemd/python-systemd/pull/147
#147https://github.com/systemd/python-systemd/pull/147
Please reload this pagehttps://redirect.github.com/systemd/python-systemd/pull/144
https://redirect.github.com/keszybz
keszybzhttps://redirect.github.com/keszybz
Jul 1, 2025 https://redirect.github.com/systemd/python-systemd/pull/144#pullrequestreview-2974359884
View reviewed changes https://redirect.github.com/systemd/python-systemd/pull/144/files/7c99a39e6dc40367b4bbd3173f3db9dcc799cc97
keszybzhttps://redirect.github.com/keszybz
https://redirect.github.com/systemd/python-systemd/pull/144#pullrequestreview-2974359884
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#148https://github.com/systemd/python-systemd/pull/148
Please reload this pagehttps://redirect.github.com/systemd/python-systemd/pull/144
systemd/_reader.chttps://redirect.github.com/systemd/python-systemd/pull/144/files/245784c42fc5d4a41afc4ab77736f84245f4138b#diff-dd100310d30379d0c793339044319dfedcb45b6ccc982dfdef86070b516d6862
keszybzhttps://redirect.github.com/keszybz
Jul 1, 2025https://redirect.github.com/systemd/python-systemd/pull/144#discussion_r2176926076
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://redirect.github.com/systemd/python-systemd/pull/144
keszybzhttps://redirect.github.com/keszybz
Jul 1, 2025https://redirect.github.com/systemd/python-systemd/pull/144#discussion_r2177055249
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#143https://github.com/systemd/python-systemd/issues/143
Please reload this pagehttps://redirect.github.com/systemd/python-systemd/pull/144
sebreshttps://redirect.github.com/sebres
Jul 1, 2025https://redirect.github.com/systemd/python-systemd/pull/144#discussion_r2177432990
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://redirect.github.com/systemd/python-systemd/pull/144
keszybzhttps://redirect.github.com/keszybz
Oct 3, 2025https://redirect.github.com/systemd/python-systemd/pull/144#discussion_r2401483950
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://redirect.github.com/systemd/python-systemd/pull/144
sebreshttps://redirect.github.com/sebres
Oct 3, 2025https://redirect.github.com/systemd/python-systemd/pull/144#discussion_r2402063009
Please reload this pagehttps://redirect.github.com/systemd/python-systemd/pull/144
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://redirect.github.com/systemd/python-systemd/pull/144
keszybzhttps://redirect.github.com/keszybz
Oct 11, 2025https://redirect.github.com/systemd/python-systemd/pull/144#discussion_r2423113595
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://redirect.github.com/systemd/python-systemd/pull/144
sebreshttps://redirect.github.com/sebres
Oct 12, 2025https://redirect.github.com/systemd/python-systemd/pull/144#discussion_r2423231161
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://redirect.github.com/systemd/python-systemd/pull/144
systemd/_reader.chttps://redirect.github.com/systemd/python-systemd/pull/144/files/245784c42fc5d4a41afc4ab77736f84245f4138b#diff-dd100310d30379d0c793339044319dfedcb45b6ccc982dfdef86070b516d6862
Please reload this pagehttps://redirect.github.com/systemd/python-systemd/pull/144
https://redirect.github.com/sebres
remove noop, unneeded by deallochttps://redirect.github.com/systemd/python-systemd/pull/144/commits/646b3b3db84e9812bdbce0143b148adbe368812d
646b3b3https://redirect.github.com/systemd/python-systemd/pull/144/commits/646b3b3db84e9812bdbce0143b148adbe368812d
https://redirect.github.com/keszybz
keszybzhttps://redirect.github.com/keszybz
Oct 11, 2025 https://redirect.github.com/systemd/python-systemd/pull/144#ref-pullrequest-3506323314
Modernize code and silence all warnings #160 https://redirect.github.com/systemd/python-systemd/pull/160
https://github.co/hiddenchars
https://redirect.github.com/systemd/python-systemd/pull/{{ revealButtonHref }}
Sign up for freehttps://redirect.github.com/join?source=comment-repo
Sign in to commenthttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsystemd%2Fpython-systemd%2Fpull%2F144
https://redirect.github.com/keszybz
keszybz https://redirect.github.com/keszybz
https://redirect.github.com/systemd/python-systemd/pull/144/files/245784c42fc5d4a41afc4ab77736f84245f4138b
https://redirect.github.com/behrmann
behrmann https://redirect.github.com/behrmann
https://redirect.github.com/systemd/python-systemd/pull/144/files/7c99a39e6dc40367b4bbd3173f3db9dcc799cc97
SIGSEGV using journal.Reader, thread safety issue? https://github.com/systemd/python-systemd/issues/143
Please reload this pagehttps://redirect.github.com/systemd/python-systemd/pull/144
https://redirect.github.com/sebres
https://redirect.github.com/hongquan
https://redirect.github.com/keszybz
https://redirect.github.com/behrmann
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.