Title: Do not double free during callbacks. by mcollina · Pull Request #338 · nodegit/nodegit · GitHub
Open Graph Title: Do not double free during callbacks. by mcollina · Pull Request #338 · nodegit/nodegit
X Title: Do not double free during callbacks. by mcollina · Pull Request #338 · nodegit/nodegit
Description: Continuing from #331, as it is a different issue.
Here is the backtrace obtained via lldb:
* thread #1: tid = 0xdd2c0, 0x00007fff973f219f libsystem_malloc.dylib`malloc_error_break, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
* frame #0: 0x00007fff973f219f libsystem_malloc.dylib`malloc_error_break
frame #1: 0x00007fff973e38c5 libsystem_malloc.dylib`free + 314
frame #2: 0x000000010327f77b nodegit.node`GitCommit::LookupWorker::HandleOKCallback(this=0x0000000100d09790) + 859 at commit.cc:689
frame #3: 0x000000010324d812 nodegit.node`NanAsyncWorker::WorkComplete(this=0x0000000100d09790) + 66 at nan.h:1881
frame #4: 0x000000010324e2d1 nodegit.node`NanAsyncExecuteComplete(req=0x0000000100d09798) + 33 at nan.h:1948
frame #5: 0x00000001004598da node`uv__work_done + 168
frame #6: 0x0000000100450717 node`uv__async_event + 62
frame #7: 0x000000010045088a node`uv__async_io + 136
frame #8: 0x000000010045d256 node`uv__io_poll + 1463
frame #9: 0x0000000100450cd1 node`uv_run + 239
frame #10: 0x0000000100409e6a node`node::Start(int, char**) + 365
frame #11: 0x0000000100000b74 node`start + 52
Here is the relevant part of commit.cc in which the error happen:
void GitCommit::LookupWorker::HandleOKCallback() {
TryCatch try_catch;
if (baton->error_code == GIT_OK) {
Handle
Open Graph Description: Continuing from #331, as it is a different issue. Here is the backtrace obtained via lldb: * thread #1: tid = 0xdd2c0, 0x00007fff973f219f libsystem_malloc.dylib`malloc_error_break, queue = 'com...
X Description: Continuing from #331, as it is a different issue. Here is the backtrace obtained via lldb: * thread #1: tid = 0xdd2c0, 0x00007fff973f219f libsystem_malloc.dylib`malloc_error_break, queue = '...
Opengraph URL: https://github.com/nodegit/nodegit/pull/338
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6dec3454-91b2-5b1f-71ec-8a738a59e50a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8102:15DDBC:512F4:6F177:6A6140FF |
| html-safe-nonce | 204a0b839b3ead5c4b31919ce381090cf08544ab2b4931a3a66c833f7587848f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTAyOjE1RERCQzo1MTJGNDo2RjE3Nzo2QTYxNDBGRiIsInZpc2l0b3JfaWQiOiI3NzMyNjU1NjE2ODA5ODQ0OTkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d70453058c95d0a8560054c8aba1018064031d4e764135c71f960a12b1a68569 |
| hovercard-subject-tag | pull_request:26958172 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/nodegit/nodegit/pull/338/files |
| twitter:image | https://avatars.githubusercontent.com/u/52195?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/52195?s=400&v=4 |
| og:image:alt | Continuing from #331, as it is a different issue. Here is the backtrace obtained via lldb: * thread #1: tid = 0xdd2c0, 0x00007fff973f219f libsystem_malloc.dylib`malloc_error_break, queue = 'com... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 358090e896abe1815bef70fcaae0a12d8ebf315874207428312daf7419e9c7c9 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 87be91c8b3c813d60ac5c8ece422529a03a7e332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width