Title: assert on aix · Issue #4802 · libgit2/libgit2 · GitHub
Open Graph Title: assert on aix · Issue #4802 · libgit2/libgit2
X Title: assert on aix · Issue #4802 · libgit2/libgit2
Description: Reproduction steps Clone a repository on AIX. The following assert occurs: Assertion failed: __EX, file .../libgit2-0.27.3/src/index.c, line 460 Call stack: ... -> iterator_for_filesystem(...) -> git_index_snapshot_new(...) -> git_index_...
Open Graph Description: Reproduction steps Clone a repository on AIX. The following assert occurs: Assertion failed: __EX, file .../libgit2-0.27.3/src/index.c, line 460 Call stack: ... -> iterator_for_filesystem(...) -> g...
X Description: Reproduction steps Clone a repository on AIX. The following assert occurs: Assertion failed: __EX, file .../libgit2-0.27.3/src/index.c, line 460 Call stack: ... -> iterator_for_filesystem(...) -...
Opengraph URL: https://github.com/libgit2/libgit2/issues/4802
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"assert on aix","articleBody":"### Reproduction steps\r\nClone a repository on AIX. The following assert occurs:\r\n**Assertion failed: __EX, file .../libgit2-0.27.3/src/index.c, line 460**\r\n\r\nCall stack:\r\n...\r\n-\u003e iterator_for_filesystem(...)\r\n -\u003e git_index_snapshot_new(...)\r\n -\u003e git_index_free(...)\r\n\r\n*git_vector_dup()* fails in *git_index_snapshot_new()*, the index is released but the *readers* variable was increased before which leads to the assert.\r\n\r\n*git_vector_dup()* fails because a *malloc(0)* on AIX returns a NULL pointer:\r\n\r\nv-\u003econtents = git__malloc(bytes);\r\nGITERR_CHECK_ALLOC(v-\u003econtents);\r\n\r\n### Expected behavior\r\nIf *malloc()* is called with 0 bytes the return value of NULL is valid (at least on AIX) and should not be treated as an error.\r\n\r\n### Version of libgit2 (release number or SHA1)\r\n0.27.3\r\n\r\n### Operating system(s) tested\r\nAIX 7.1\r\ngcc 4.8.2","author":{"url":"https://github.com/hkrummeck","@type":"Person","name":"hkrummeck"},"datePublished":"2018-09-11T08:37:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/4802/libgit2/issues/4802"}
| 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:9235cba7-1a01-64c2-65e6-685df08cb1ee |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC48:2AF233:2EF52D0:3EDDCAF:6A5DB128 |
| html-safe-nonce | bad10d8b8f4463877663bdba96a390c18bcdbdc9797b13d4526fd83341b8d17c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzQ4OjJBRjIzMzoyRUY1MkQwOjNFRERDQUY6NkE1REIxMjgiLCJ2aXNpdG9yX2lkIjoiOTAyMzQ4NzI3MTQ1NTUzNTQwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3d63de2e9c7a167df45d7bda09e6f717a3ba164bc10f6b8d03d2fcddf4d63549 |
| hovercard-subject-tag | issue:358943336 |
| 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/4802/issue_layout |
| twitter:image | https://opengraph.githubassets.com/986e72b6bca740b3f33af95894de92ad7a1e357399d726ae4cfadfafe74de4b6/libgit2/libgit2/issues/4802 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/986e72b6bca740b3f33af95894de92ad7a1e357399d726ae4cfadfafe74de4b6/libgit2/libgit2/issues/4802 |
| og:image:alt | Reproduction steps Clone a repository on AIX. The following assert occurs: Assertion failed: __EX, file .../libgit2-0.27.3/src/index.c, line 460 Call stack: ... -> iterator_for_filesystem(...) -> g... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hkrummeck |
| 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