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:58da0224-de57-5bf5-3ee0-9bc14aedc28e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8FF0:20DA71:9ED79EB:D79B637:6A5EF40C |
| html-safe-nonce | e2961fbb195b2d250dd2c2aac6eb04c909a0c293f93bd1f5830fd00c93dae0a5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RkYwOjIwREE3MTo5RUQ3OUVCOkQ3OUI2Mzc6NkE1RUY0MEMiLCJ2aXNpdG9yX2lkIjoiNjgwNTYwODU2ODMwODI5ODc2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 21ee58c3ae71eb3ec7c1fb033cda5f1cf565fb45a8d07bf0e98ad7cc3d899e89 |
| 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 | 82d0004a35927bdb00c652a57f456c55aa0eda4ade1bc7956d7510fdea6e454b |
| 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 | d2d913dd727d2d7ac189fb4d05b10bc34ecd03ee |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width