Title: git_revwalk_hide assertion failure during fetch · Issue #4612 · libgit2/libgit2 · GitHub
Open Graph Title: git_revwalk_hide assertion failure during fetch · Issue #4612 · libgit2/libgit2
X Title: git_revwalk_hide assertion failure during fetch · Issue #4612 · libgit2/libgit2
Description: Version of libgit2 (release number or SHA1) 0.27.0 I was debugging libgit2/pygit2/issues/787 where fetch was failing. I found a bug in foreach_reference_cb, this is the backtrace: #1 0x00007ffff2f885f5 in foreach_reference_cb (reference=...
Open Graph Description: Version of libgit2 (release number or SHA1) 0.27.0 I was debugging libgit2/pygit2/issues/787 where fetch was failing. I found a bug in foreach_reference_cb, this is the backtrace: #1 0x00007ffff2f8...
X Description: Version of libgit2 (release number or SHA1) 0.27.0 I was debugging libgit2/pygit2/issues/787 where fetch was failing. I found a bug in foreach_reference_cb, this is the backtrace: #1 0x00007ffff2f8...
Opengraph URL: https://github.com/libgit2/libgit2/issues/4612
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"git_revwalk_hide assertion failure during fetch","articleBody":"### Version of libgit2 (release number or SHA1)\r\n0.27.0\r\n\r\nI was debugging libgit2/pygit2/issues/787 where fetch was failing.\r\n\r\nI found a bug in foreach_reference_cb, this is the backtrace:\r\n\r\n```\r\n#1 0x00007ffff2f885f5 in foreach_reference_cb (reference=0x105cc40, payload=0xfdf1d0) at .../libgit2/libgit2-0.27.0/src/transports/local.c:514\r\n#2 0x00007ffff2f5419e in git_reference_foreach (repo=0xf85ae0, callback=0x7ffff2f885c8 \u003cforeach_reference_cb\u003e, payload=0xfdf1d0)\r\n at .../libgit2/libgit2-0.27.0/src/refs.c:746\r\n#3 0x00007ffff2f88814 in local_download_pack (transport=0xffc520, repo=0xf85ae0, stats=0xfd25b0, progress_cb=0x7ffff7fe7fc0, progress_payload=0x7ffff0ad96d8)\r\n at .../libgit2/libgit2-0.27.0/src/transports/local.c:575\r\n#4 0x00007ffff2effd9d in git_fetch_download_pack (remote=0xfd24e0, callbacks=0xfd12f8) at .../libgit2/libgit2-0.27.0/src/fetch.c:148\r\n#5 0x00007ffff2f5885c in git_remote_download (remote=0xfd24e0, refspecs=0x0, opts=0xfd12f0) at .../libgit2/libgit2-0.27.0/src/remote.c:932\r\n#6 0x00007ffff2f589d2 in git_remote_fetch (remote=0xfd24e0, refspecs=0x0, opts=0xfd12f0, reflog_message=0x0)\r\n```\r\n\r\n`foreach_reference_cb` passes `git_reference_target(reference)`\r\nhttps://github.com/libgit2/libgit2/blob/d9007dc8520942763a21e4058dfa8f159f3e3c56/src/transports/local.c#L510-L514\r\n\r\nto `git_revwalk_hide`\r\n\r\nhttps://github.com/libgit2/libgit2/blob/d9007dc8520942763a21e4058dfa8f159f3e3c56/src/revwalk.c#L103-L107\r\n\r\nbut `git_reference_target` can return `NULL`. so `assert(walk \u0026\u0026 oid)` will fail.\r\n\r\nhttps://github.com/libgit2/libgit2/blob/d9007dc8520942763a21e4058dfa8f159f3e3c56/src/refs.c#L372-L380\r\n\r\nIn my case, `type = GIT_REF_SYMBOLIC`, and `symbolic = \"refs/remotes/origin/master\"`","author":{"url":"https://github.com/RazerM","@type":"Person","name":"RazerM"},"datePublished":"2018-04-05T09:07:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/4612/libgit2/issues/4612"}
| 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:89febf33-afdb-d64e-d791-f92218fd6f67 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A89C:2E960D:2E548A0:3E8DA02:6A5DBACF |
| html-safe-nonce | a498e7c4374e1c96695aca85df82309c2d458d3aa40e00849fe3813547757685 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODlDOjJFOTYwRDoyRTU0OEEwOjNFOERBMDI6NkE1REJBQ0YiLCJ2aXNpdG9yX2lkIjoiMjI0OTg5MzM1MjUwMTUyNTE5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 25829ad4731eb6f9b395a54cc47b9ffa8b7deaab799245cabb18937d911b6a33 |
| hovercard-subject-tag | issue:311529040 |
| 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/4612/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8e4488e8ea911a7c4edd7b01eb300188ab3883fcd6999d333a912b371617d5b8/libgit2/libgit2/issues/4612 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8e4488e8ea911a7c4edd7b01eb300188ab3883fcd6999d333a912b371617d5b8/libgit2/libgit2/issues/4612 |
| og:image:alt | Version of libgit2 (release number or SHA1) 0.27.0 I was debugging libgit2/pygit2/issues/787 where fetch was failing. I found a bug in foreach_reference_cb, this is the backtrace: #1 0x00007ffff2f8... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RazerM |
| 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