Skip to content

Instantly share code, notes, and snippets.

@jeromegn
Created May 27, 2018 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeromegn/e004cd4e57d648ef5e758816e383c131 to your computer and use it in GitHub Desktop.
Save jeromegn/e004cd4e57d648ef5e758816e383c131 to your computer and use it in GitHub Desktop.
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x2c0)
frame #0: 0x00000001011c6168 libuv.1.dylib`heap_remove(heap=0x00000000000002b8, node=0x00007ffeefbf3ce8, less_than=(libuv.1.dylib`timer_less_than at timer.c:30)) at heap-inl.h:160
157 unsigned int k;
158 unsigned int n;
159
-> 160 if (heap->nelts == 0)
161 return;
162
163 /* Calculate the path from the min (the root) to the max, the left-most node
(lldb) fr v
(heap *) heap = 0x00000000000002b8
(heap_node *) node = 0x00007ffeefbf3ce8
(heap_compare_fn) less_than = 0x00000001011c6080 (libuv.1.dylib`timer_less_than at timer.c:30)
(heap_node *) smallest = 0x0000000100c0f5e0
(heap_node **) max = 0x0000008000000001
(heap_node *) child = 0x0000000100045cc0
(unsigned int) path = 0
(unsigned int) k = 0
(unsigned int) n = 0
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x2c0)
* frame #0: 0x00000001011c6168 libuv.1.dylib`heap_remove(heap=0x00000000000002b8, node=0x00007ffeefbf3ce8, less_than=(libuv.1.dylib`timer_less_than at timer.c:30)) at heap-inl.h:160
frame #1: 0x00000001011c5e55 libuv.1.dylib`uv_timer_stop(handle=0x00007ffeefbf3c80) at timer.c:97
frame #2: 0x00000001011c6638 libuv.1.dylib`uv__run_timers(loop=0x00000001011d2820) at timer.c:163
frame #3: 0x00000001011b0194 libuv.1.dylib`uv_run(loop=0x00000001011d2820, mode=UV_RUN_DEFAULT) at core.c:359
frame #4: 0x0000000100010094 fly`main(argc=1, argv=0x00007ffeefbfef40) at main.cc:444
frame #5: 0x00007fff54bd9015 libdyld.dylib`start + 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment