Title: Malloc bug with fetchAll and ssh. · Issue #907 · nodegit/nodegit · GitHub
Open Graph Title: Malloc bug with fetchAll and ssh. · Issue #907 · nodegit/nodegit
X Title: Malloc bug with fetchAll and ssh. · Issue #907 · nodegit/nodegit
Description: Hi, I have a bug with fetchAll action. I make this simple code for testing this bugs: 'use strict'; var path = require('path'); var Git = require('nodegit'); var fetchOpts = { callbacks: { certificateCheck: function() { return 1; }, cred...
Open Graph Description: Hi, I have a bug with fetchAll action. I make this simple code for testing this bugs: 'use strict'; var path = require('path'); var Git = require('nodegit'); var fetchOpts = { callbacks: { certific...
X Description: Hi, I have a bug with fetchAll action. I make this simple code for testing this bugs: 'use strict'; var path = require('path'); var Git = require('nodegit'); var fetchOpts =...
Opengraph URL: https://github.com/nodegit/nodegit/issues/907
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Malloc bug with fetchAll and ssh.","articleBody":"Hi,\n\nI have a bug with fetchAll action.\n\nI make this simple code for testing this bugs:\n\n``` javascript\n'use strict';\nvar path = require('path');\nvar Git = require('nodegit');\n\nvar fetchOpts = {\n callbacks: {\n certificateCheck: function() { return 1; },\n credentials: function(url, userName) {\n return Git.Cred.sshKeyNew('git', path.resolve('/Users/holblin/.ssh/id_rsa.pub'), path.resolve('/Users/holblin/.ssh/id_rsa'), '');\n }\n }\n};\n\nPromise.resolve()\n.then(function() {\n var all =[];\n for (var i = 0; i \u003c 2; i++) {\n all.push(updateIt('repo_'+i));\n }\n return Promise.all(all);\n})\n\nfunction updateIt(i) {\n var repository, localHeadCommit;\n var dir = 'tests/'+i;\n\n return Git.Repository.open(dir)\n .then((repo) =\u003e repository = repo) // save the reference for futur use\n .then(() =\u003e console.log('['+i+'] openRepo'))\n .then(() =\u003e repository.fetchAll(fetchOpts)) // fetch all data from all remotes\n .then(() =\u003e console.log('['+i+'] fetchAll'))\n}\n```\n\nFor use it, make this commands first:\n\n``` bash\nnpm -i path nodegit\nmkdir tests\ncd tests\ngit clone git@\u003crepository1_git_url\u003e.git repo_0\ngit clone git@\u003crepository2_git_url\u003e.git repo_1\ncd ..\n```\n\nI have a Mac os, X yosemite version 10.10.5. I use nvm with node v5.5.0.\nMy uname -a is `Darwin zolesio 14.5.0 Darwin Kernel Version 14.5.0: Tue Sep 1 21:23:09 PDT 2015; root:xnu-2782.50.1~1/RELEASE_X86_64 x86_64`.\nThe nodegit version is: `nodegit@0.11.1`\n\nSometimes, it finished with:\n\n``` text\n[repo_0] openRepo\n[repo_1] openRepo\nnode(5166,0x1026cd000) malloc: *** error for object 0x102303d00: pointer being realloc'd was not allocated\n*** set a breakpoint in malloc_error_break to debug\nAbort trap: 6\n```\n\nSometimes with:\n\n``` text\n[repo_0] openRepo\n[repo_1] openRepo\nnode(5058,0x105087000) malloc: *** error for object 0x10170e960: double free\n*** set a breakpoint in malloc_error_break to debug\nAbort trap: 6\n```\n\nSometimes with:\n\n``` text\n[repo_0] openRepo\n[repo_1] openRepo\nBus error: 10\n```\n\nSometimes with getting stuck and use 200% of my CPU.\n","author":{"url":"https://github.com/holblin","@type":"Person","name":"holblin"},"datePublished":"2016-02-17T13:14:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/907/nodegit/issues/907"}
| 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:196d2fc0-b90a-6825-22f7-7333ebbd7c58 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8EE8:B7FD5:AD3CF:ECBF3:6A5FE63C |
| html-safe-nonce | c508a0ff279fdbf2fac33f9afb93b3dca2aa60111ef142838c8bde7f27927802 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUU4OkI3RkQ1OkFEM0NGOkVDQkYzOjZBNUZFNjNDIiwidmlzaXRvcl9pZCI6IjEzOTYzOTMzODQxMDY1MTgwNzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | af7bd1d74bb7454cb69e219227467c1cfad9b6f880c8638ff98904a6112b8cde |
| hovercard-subject-tag | issue:134276765 |
| 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/907/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f00f1a71c98926bc374b517abfd87d394d939be80efd1fac3b6e4a1614a62cbb/nodegit/nodegit/issues/907 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f00f1a71c98926bc374b517abfd87d394d939be80efd1fac3b6e4a1614a62cbb/nodegit/nodegit/issues/907 |
| og:image:alt | Hi, I have a bug with fetchAll action. I make this simple code for testing this bugs: 'use strict'; var path = require('path'); var Git = require('nodegit'); var fetchOpts = { callbacks: { certific... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | holblin |
| hostname | github.com |
| expected-hostname | github.com |
| None | 78938542173c0d8e4ad1aefc7954896e81c10ce2620286603ef14cf593bd5a11 |
| 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 | 1a427601e09953033b696253e754ebc7328096a7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width