Skip to content

Instantly share code, notes, and snippets.

@kazupon
Created September 13, 2012 17:49
Show Gist options
  • Save kazupon/3716168 to your computer and use it in GitHub Desktop.
Save kazupon/3716168 to your computer and use it in GitHub Desktop.
print_all_handles segfult ...
*lev core started: 37763
✔ udp_set_multicast_ttl: 257/257 within 0.291 ms
✔ udp_set_ttl: 257/257 within 0.167 ms
✔ udp_bind6: 1/1 within 0.021 ms
✔ udp_set_broadcast: 3/3 within 0.016 ms
✔ udp_bind_error: 2/2 within 0.016 ms
✔ udp_getsockname: 4/4 within 0.030 ms
✔ udp_set_multicast_loop: 3/3 within 0.016 ms
✔ udp_set_multicast_membership: 7/7 within 0.919 ms
✔ udp_ping_pong_test: 15/15 within 0.217 ms
✔ tcp_timer_again_error: 1/1 within 0.008 ms
✔ tcp_timer_stop: 1/1 within 0.016 ms
✔ tcp_timer_once: 2/2 within 101.099 ms
✔ tcp_timer_again: 10/10 within 503.881 ms
✔ tcp_timer_repeat: 10/10 within 604.967 ms
"server:listen" userdata: 0x0006f208 nil
"accepted client" userdata: 0x0006f9f8
"connected"
"server:received"
"client:received"
"client closed" userdata: 0x0006f9f8
✔ tcp_echo_test: 6/6 within 0.770 ms
✔ fs_sync_test: 10/10 within 0.302 ms
✔ fs_async_test: 5/5 within 0.208 ms
✔ fs_sync_write_read: 10/10 within 1.663 ms
✔ fs_utime: 5/5 within 0.238 ms
✔ fs_sync_truncate: 9/9 within 0.431 ms
✔ fs_sync_stat: 21/21 within 0.047 ms
✔ fs_sync_rename: 6/6 within 0.288 ms
✔ fs_readdir: 4/4 within 0.483 ms
✔ fs_link: 5/5 within 0.448 ms
✔ fs_fsync: 7/7 within 0.231 ms
✔ test core now: 2/2 within 0.008 ms
✔ test core get_process_title: 1/1 within 0.008 ms
[R--] timer 0x100330918
[---] <unknown> 0x4ddb0
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
0x000000010004022e in uv__print_handles (loop=0x1003306c0, only_active=0) at uv-common.c:348
348 switch (h->type) {
(gdb) p h
$5 = (uv_handle_t *) 0x205f5c80004ddb0
(gdb) p h->type
Cannot access memory at address 0x205f5c80004ddc8
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment