René's URL Explorer Experiment


Title: Segmentation faults with concurrent access? · Issue #104 · nodegit/nodegit · GitHub

Open Graph Title: Segmentation faults with concurrent access? · Issue #104 · nodegit/nodegit

X Title: Segmentation faults with concurrent access? · Issue #104 · nodegit/nodegit

Description: Hello again! While developing https://github.com/papandreou/node-gitfakefs I stumbled upon what seems to be a bug in nodegit caused by calling the library asynchronously without waiting for the previous operation to finish. The problem i...

Open Graph Description: Hello again! While developing https://github.com/papandreou/node-gitfakefs I stumbled upon what seems to be a bug in nodegit caused by calling the library asynchronously without waiting for the pre...

X Description: Hello again! While developing https://github.com/papandreou/node-gitfakefs I stumbled upon what seems to be a bug in nodegit caused by calling the library asynchronously without waiting for the pre...

Opengraph URL: https://github.com/nodegit/nodegit/issues/104

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Segmentation faults with concurrent access?","articleBody":"Hello again!\n\nWhile developing https://github.com/papandreou/node-gitfakefs I stumbled upon what seems to be a bug in nodegit caused by calling the library asynchronously without waiting for the previous operation to finish.\n\nThe problem is triggered by a specific test in my test suite, and I was able to get a backtrace with gdb:\n\n```\nandreas@andreas-ThinkPad-T500:~/work/node-gitfakefs$ gdb --args ./node_modules/mocha/bin/mocha\nGNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04\nCopyright (C) 2012 Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later \u003chttp://gnu.org/licenses/gpl.html\u003e\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\nThis GDB was configured as \"i686-linux-gnu\".\nFor bug reporting instructions, please see:\n\u003chttp://bugs.launchpad.net/gdb-linaro/\u003e...\n\"/home/andreas/work/node-gitfakefs/node_modules/mocha/bin/mocha\": not in executable format: File format not recognized\n(gdb) run\nStarting program: /home/andreas/.local/bin/node ./node_modules/mocha/bin/mocha\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library \"/lib/i386-linux-gnu/libthread_db.so.1\".\n[New Thread 0xb7fdab40 (LWP 32315)]\n\n  ․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․\nProgram received signal SIGSEGV, Segmentation fault.\n0xb7fdd424 in __kernel_vsyscall ()\n(gdb) backtrace\n#0  0xb7fdd424 in __kernel_vsyscall ()\n#1  0xb7cf2526 in kill () from /lib/i386-linux-gnu/libc.so.6\n#2  0x08206efc in uv_kill (pid=32314, signum=11) at ../deps/uv/src/unix/process.c:434\n#3  0x081a1031 in node::Kill(v8::Arguments const\u0026) ()\n#4  0x083100d9 in v8::internal::Builtin_HandleApiCall(v8::internal::(anonymous namespace)::BuiltinArguments\u003c(v8::internal::BuiltinExtraArguments)1\u003e, v8::internal::Isolate*) ()\n#5  0x4360a336 in ?? ()\n#6  0x4362a97c in ?? ()\n#7  0x50f12c3c in ?? ()\n#8  0x4360db41 in ?? ()\n#9  0x4362d328 in ?? ()\n#10 0x4360db41 in ?? ()\n#11 0x43621c32 in ?? ()\n#12 0x43612c2a in ?? ()\n#13 0x0833021d in v8::internal::Invoke(bool, v8::internal::Handle\u003cv8::internal::JSFunction\u003e, v8::internal::Handle\u003cv8::internal::Object\u003e, int, v8::internal::Handle\u003cv8::internal::Object\u003e*, bool*) ()\n#14 0x08331962 in v8::internal::Execution::Call(v8::internal::Handle\u003cv8::internal::Object\u003e, v8::internal::Handle\u003cv8::internal::Object\u003e, int, v8::internal::Handle\u003cv8::internal::Object\u003e*, bool*, bool) ()\n#15 0x082f396e in v8::Function::Call(v8::Handle\u003cv8::Object\u003e, int, v8::Handle\u003cv8::Value\u003e*) ()\n#16 0x081a2d45 in node::EmitExit(v8::Handle\u003cv8::Object\u003e) ()\n#17 0x081a3fe2 in node::Start(int, char**) ()\n#18 0x081986bb in main ()\n```\n\nTo reproduce it, clone papandreou/node-gitfakefs@613d0f16, `npm link` it against nodegit master, then run: `mocha -g glob`. That causes the segmentation fault at least half of the time.\n\nThe test has a lot of moving parts. I tried to narrow it down further, but I've been unsuccessful so far. I wanted to raise the issue here before spending more time on it, as one of you guys might immediately go ah-hah! when seeing that stacktrace.\n\nThe reason why I know it's related to concurrent access is that I found a workaround in papandreou/node-gitfakefs@358eac4: It's wrapping accesses to nodegit in a mutex.\n\nWhile debugging the issue I've also seen these weird errors, which seem to bear witness to some kind of memory corruption:\n\n```\n  1) GitWrappedFs patching the built-in fs module \"in-place\" should make the glob work on the contents directory:\n     Error: @��@��e 'refs/heads/d35056a9711a2497e8c6a957fa6f0d13cb94f8b1' not found\n\n  1) GitWrappedFs patching the built-in fs module \"in-place\" should make the glob work on the contents directory:\n     Error: Failed to open '/home/andreas/work/node-gitfakefs/test/testrepo.git/packed-refs': No such file or directory\n```\n\nLet me know if there's anything else I can do at this point.\n","author":{"url":"https://github.com/papandreou","@type":"Person","name":"papandreou"},"datePublished":"2013-10-07T16:15:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/104/nodegit/issues/104"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4502d4dc-846a-d3f9-5dd3-8de1cf31bebd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB2B0:246CE:78E2683:A18EBFB:6A5E1ABD
html-safe-nonce416d8e79e2da07ad0d79dde09d12935af07edb1be3c6fe1213546105dd215098
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkIwOjI0NkNFOjc4RTI2ODM6QTE4RUJGQjo2QTVFMUFCRCIsInZpc2l0b3JfaWQiOiI0MzczNzk3OTEzNTE0MzUxMjkzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacdedf11c2ae88f089fa8199a8d7ebbb931992fdcd400434ec7976c15db4d7e658
hovercard-subject-tagissue:20621802
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/nodegit/nodegit/104/issue_layout
twitter:imagehttps://opengraph.githubassets.com/262a9693283d8c4045cd11f9a2c84f248fc407a59c804771c05a6c459b097947/nodegit/nodegit/issues/104
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/262a9693283d8c4045cd11f9a2c84f248fc407a59c804771c05a6c459b097947/nodegit/nodegit/issues/104
og:image:altHello again! While developing https://github.com/papandreou/node-gitfakefs I stumbled upon what seems to be a bug in nodegit caused by calling the library asynchronously without waiting for the pre...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepapandreou
hostnamegithub.com
expected-hostnamegithub.com
None7a60e060dad2c24f72179d36247204b454da37845d1728020cd42046a433f87f
turbo-cache-controlno-preview
go-importgithub.com/nodegit/nodegit git https://github.com/nodegit/nodegit.git
octolytics-dimension-user_id657068
octolytics-dimension-user_loginnodegit
octolytics-dimension-repository_id1383170
octolytics-dimension-repository_nwonodegit/nodegit
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1383170
octolytics-dimension-repository_network_root_nwonodegit/nodegit
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
release0ae7f3ea7b1bb2f1f4623bb093bbf54cee05d830
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodegit/nodegit/issues/104#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodegit%2Fnodegit%2Fissues%2F104
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%2Fnodegit%2Fnodegit%2Fissues%2F104
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=nodegit%2Fnodegit
Reloadhttps://github.com/nodegit/nodegit/issues/104
Reloadhttps://github.com/nodegit/nodegit/issues/104
Reloadhttps://github.com/nodegit/nodegit/issues/104
Please reload this pagehttps://github.com/nodegit/nodegit/issues/104
nodegit https://github.com/nodegit
nodegithttps://github.com/nodegit/nodegit
Notifications https://github.com/login?return_to=%2Fnodegit%2Fnodegit
Fork 698 https://github.com/login?return_to=%2Fnodegit%2Fnodegit
Star 5.8k https://github.com/login?return_to=%2Fnodegit%2Fnodegit
Code https://github.com/nodegit/nodegit
Issues 343 https://github.com/nodegit/nodegit/issues
Pull requests 20 https://github.com/nodegit/nodegit/pulls
Actions https://github.com/nodegit/nodegit/actions
Projects https://github.com/nodegit/nodegit/projects
Security and quality 0 https://github.com/nodegit/nodegit/security
Insights https://github.com/nodegit/nodegit/pulse
Code https://github.com/nodegit/nodegit
Issues https://github.com/nodegit/nodegit/issues
Pull requests https://github.com/nodegit/nodegit/pulls
Actions https://github.com/nodegit/nodegit/actions
Projects https://github.com/nodegit/nodegit/projects
Security and quality https://github.com/nodegit/nodegit/security
Insights https://github.com/nodegit/nodegit/pulse
Segmentation faults with concurrent access?https://github.com/nodegit/nodegit/issues/104#top
https://github.com/papandreou
papandreouhttps://github.com/papandreou
on Oct 7, 2013https://github.com/nodegit/nodegit/issues/104#issue-20621802
https://github.com/papandreou/node-gitfakefshttps://github.com/papandreou/node-gitfakefs
papandreou/node-gitfakefs@613d0f16https://github.com/papandreou/node-gitfakefs/commit/613d0f16
papandreou/node-gitfakefs@358eac4https://github.com/papandreou/node-gitfakefs/commit/358eac4
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.