Title: cache: crash on evict · Issue #5081 · libgit2/libgit2 · GitHub
Open Graph Title: cache: crash on evict · Issue #5081 · libgit2/libgit2
X Title: cache: crash on evict · Issue #5081 · libgit2/libgit2
Description: I have some sporadic crashes when using a revwalk object. Here is the log: malloc: *** error for object ...: pointer being freed was not allocated #6. Crashed: NSOperationQueue 0x60000039d3c0 (QOS: USER_INITIATED) 0 libsystem_kernel.dyli...
Open Graph Description: I have some sporadic crashes when using a revwalk object. Here is the log: malloc: *** error for object ...: pointer being freed was not allocated #6. Crashed: NSOperationQueue 0x60000039d3c0 (QOS:...
X Description: I have some sporadic crashes when using a revwalk object. Here is the log: malloc: *** error for object ...: pointer being freed was not allocated #6. Crashed: NSOperationQueue 0x60000039d3c0 (QOS:...
Opengraph URL: https://github.com/libgit2/libgit2/issues/5081
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"cache: crash on evict","articleBody":"I have some sporadic crashes when using a `revwalk` object. Here is the log:\r\n\r\n```\r\nmalloc: *** error for object ...: pointer being freed was not allocated\r\n\r\n#6. Crashed: NSOperationQueue 0x60000039d3c0 (QOS: USER_INITIATED)\r\n0 libsystem_kernel.dylib 0x7fff5d32a2c6 __pthread_kill + 10\r\n1 libsystem_pthread.dylib 0x7fff5d3dfbf1 pthread_kill + 284\r\n2 libsystem_c.dylib 0x7fff5d2946a6 abort + 127\r\n3 libsystem_malloc.dylib 0x7fff5d3a2aef malloc_vreport + 545\r\n4 libsystem_malloc.dylib 0x7fff5d3a28b0 malloc_report + 151\r\n5 Git 0x10cce7e0e git_odb_object__free + 30\r\n6 Git 0x10ccae68e git_commit_list_parse + 814\r\n7 Git 0x10cd1a614 add_parents_to_list + 100\r\n8 Git 0x10cd1a10d git_revwalk_next + 333\r\n9 Git 0x10cd2e6d4 git_smart__negotiate_fetch + 500\r\n10 Git 0x10ccc51b1 git_fetch_negotiate + 609\r\n11 Git 0x10cd0fb9a git_remote_download + 1194\r\n12 Git 0x10cd0fd1a git_remote_fetch + 202\r\n13 Git 0x10cb8bc4b globalinit_33_46240B7271BAB13E345CE2E50BE21379_func5 + 51947\r\n14 Gitfox 0x10c95bc53 AsyncOpFetch.execute(txn:) (AsyncOpFetch.swift:69)\r\n```\r\n\r\nUpon looking more closely at `git_commit_list_parse`, I think it could be that\r\n\r\n git_odb_object *obj;\r\n\r\nis not properly set to `NULL` on initialization.","author":{"url":"https://github.com/eaigner","@type":"Person","name":"eaigner"},"datePublished":"2019-05-22T07:17:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/5081/libgit2/issues/5081"}
| 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:baad04a9-ab8d-ac4f-a928-6c0546dc8857 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C860:26FD39:248E391:30EFBFB:6A5D7BED |
| html-safe-nonce | 97b27b62cfdeeb0fb8fda5e34da85f2d6a4192a50e81496810482acc9668e136 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODYwOjI2RkQzOToyNDhFMzkxOjMwRUZCRkI6NkE1RDdCRUQiLCJ2aXNpdG9yX2lkIjoiODU1NjM4Njg0NDc1MzYyNDA0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 70ec7f650e4596408475ccf5fedfdd76d172c1d5a434fa29c2341a4f08d0fe89 |
| hovercard-subject-tag | issue:446970895 |
| 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/libgit2/libgit2/5081/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e44341ad2b1aa79ca27429ab10fbcaa6ac7f806ce59fcca9f88d9b0653ac6be9/libgit2/libgit2/issues/5081 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e44341ad2b1aa79ca27429ab10fbcaa6ac7f806ce59fcca9f88d9b0653ac6be9/libgit2/libgit2/issues/5081 |
| og:image:alt | I have some sporadic crashes when using a revwalk object. Here is the log: malloc: *** error for object ...: pointer being freed was not allocated #6. Crashed: NSOperationQueue 0x60000039d3c0 (QOS:... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | eaigner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/libgit2/libgit2 git https://github.com/libgit2/libgit2.git |
| octolytics-dimension-user_id | 394745 |
| octolytics-dimension-user_login | libgit2 |
| octolytics-dimension-repository_id | 901662 |
| octolytics-dimension-repository_nwo | libgit2/libgit2 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 901662 |
| octolytics-dimension-repository_network_root_nwo | libgit2/libgit2 |
| 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