Title: Nested walks scatter memory and cause SEGFAULTS · Issue #72 · nodegit/nodegit · GitHub
Open Graph Title: Nested walks scatter memory and cause SEGFAULTS · Issue #72 · nodegit/nodegit
X Title: Nested walks scatter memory and cause SEGFAULTS · Issue #72 · nodegit/nodegit
Description: If I do a branch.history().on('commit', ...) and then within that, do a diffList.walk().on('delta', ...), I will pretty reliably get a "Segmentation fault: 11" for any git repository with more than 10 or 20 commits. My solution has been ...
Open Graph Description: If I do a branch.history().on('commit', ...) and then within that, do a diffList.walk().on('delta', ...), I will pretty reliably get a "Segmentation fault: 11" for any git repository with more than...
X Description: If I do a branch.history().on('commit', ...) and then within that, do a diffList.walk().on('delta', ...), I will pretty reliably get a "Segmentation fault: 11" for any git...
Opengraph URL: https://github.com/nodegit/nodegit/issues/72
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Nested walks scatter memory and cause SEGFAULTS","articleBody":"If I do a `branch.history().on('commit', ...)` and then within that, do a `diffList.walk().on('delta', ...)`, I will pretty reliably get a \"Segmentation fault: 11\" for any git repository with more than 10 or 20 commits.\n\nMy solution has been to go through, first, and fetch all the commit `sha`s, and then use caolan's `async` or something to iterate through those, using `repo.commit('mysha123912', ...)`, and then walking the diffLists within each commit.\n\nIs there a way to iterate through everything in one pass, though?\n\nBy \"scatter memory\", I mean that if I don't immediate call `commit.sha()`, but instead put the raw commit object in a queue, sometimes `commit.message()` and `commit.sha()` results won't line up correctly (they'll be contrary to what `git log` at the command line tells me).\n\n(Great library, otherwise, loving the speed!)\n","author":{"url":"https://github.com/chbrown","@type":"Person","name":"chbrown"},"datePublished":"2013-06-24T13:31:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/72/nodegit/issues/72"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6a7f86f6-25f0-f11c-b452-7897b1d447cb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8EEA:259088:32AB95C:424474E:6A5CE6DF |
| html-safe-nonce | 866943b0e95e4df88bc956d39f05245ff349b97e071668ef2db019dfc6bd0a71 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUVBOjI1OTA4ODozMkFCOTVDOjQyNDQ3NEU6NkE1Q0U2REYiLCJ2aXNpdG9yX2lkIjoiNDM2OTU0Mzk2NjMzMTMwNzE5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0215caea7b37881ec8ca680c9c5199cd3216a0845801073bbd485301f2ac5249 |
| hovercard-subject-tag | issue:15924626 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodegit/nodegit/72/issue_layout |
| twitter:image | https://opengraph.githubassets.com/781c1ad5ab8c9df63f41a9d948438f95bacbd4f8abec17cbf61e60f583b31f9a/nodegit/nodegit/issues/72 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/781c1ad5ab8c9df63f41a9d948438f95bacbd4f8abec17cbf61e60f583b31f9a/nodegit/nodegit/issues/72 |
| og:image:alt | If I do a branch.history().on('commit', ...) and then within that, do a diffList.walk().on('delta', ...), I will pretty reliably get a "Segmentation fault: 11" for any git repository with more than... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chbrown |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/nodegit/nodegit git https://github.com/nodegit/nodegit.git |
| octolytics-dimension-user_id | 657068 |
| octolytics-dimension-user_login | nodegit |
| octolytics-dimension-repository_id | 1383170 |
| octolytics-dimension-repository_nwo | nodegit/nodegit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1383170 |
| octolytics-dimension-repository_network_root_nwo | nodegit/nodegit |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width