Skip to content

Instantly share code, notes, and snippets.

@zetok
Created July 31, 2014 09:16
Show Gist options
  • Save zetok/999fcd4f7244ddf37d5c to your computer and use it in GitHub Desktop.
Save zetok/999fcd4f7244ddf37d5c to your computer and use it in GitHub Desktop.
toxic segfault 2014-07-31
made call, then tried to send file
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff3bc4700 (LWP 4827)]
0x00007ffff51cb739 in __GI_fseek (fp=0x7fffec0b2f60, offset=2189487, whence=0)
at fseek.c:38
38 fseek.c: No such file or directory.
(gdb) bt
#0 0x00007ffff51cb739 in __GI_fseek (fp=0x7fffec0b2f60, offset=2189487, whence=0)
at fseek.c:38
#1 0x00005555555789bf in resetft (tox=0x7fffec001700,
ft=0x5555557d97f8 <friend+125784>, start=2189487) at tox.c:145
#2 0x0000555555579dc8 in callback_file_control (tox=0x7fffec001700, fid=26,
receive_send=1 '\001', filenumber=0 '\000', control=4 '\004',
data=0x7ffff3bc26de "\257h!", length=8, userdata=0x0) at tox.c:277
#3 0x00007ffff6cd41c8 in handle_packet (object=0x7fffec001700, i=26,
temp=0x7ffff3bc26da "Q\001", len=12)
at /var/tmp/portage/net-libs/tox-9999/work/tox-9999/build/../toxcore/Messenger.c:2170
#4 0x00007ffff6cc735a in handle_data_packet_helper (c=0x7fffec03f9c0,
crypt_connection_id=26,
packet=0x7ffff3bc33d1 "\033\253@}\212\327N\217\264\"\233H^\302#v\373\221\244f\306\363n", length=40)
at /var/tmp/portage/net-libs/tox-9999/work/tox-9999/build/../toxcore/net_crypto.c:1131
#5 0x00007ffff6cc7793 in handle_packet_connection (c=0x7fffec03f9c0,
crypt_connection_id=26,
packet=0x7ffff3bc33d1 "\033\253@}\212\327N\217\264\"\233H^\302#v\373\221\244f\306\363n", length=40)
at /var/tmp/portage/net-libs/tox-9999/work/tox-9999/build/../toxcore/net_crypto.c:1218
#6 0x00007ffff6cc8e56 in tcp_data_callback (object=0x7fffec0c6f70, number=26,
connection_id=0 '\000',
data=0x7ffff3bc33d1 "\033\253@}\212\327N\217\264\"\233H^\302#v\373\221\244f\306\363n", length=40)
at /var/tmp/portage/net-libs/tox-9999/work/tox-9999/build/../toxcore/net_crypto.c:1740
#7 0x00007ffff6cea14f in handle_TCP_packet (conn=0x7fffec0c6f70,
data=0x7ffff3bc33d0 "\020\033\253@}\212\327N\217\264\"\233H^\302#v\373\221\244f\306\363n", length=41)
at /var/tmp/portage/net-libs/tox-9999/work/tox-9999/build/../toxcore/TCP_client.c:628
#8 0x00007ffff6cea2e3 in do_confirmed_TCP (conn=0x7fffec0c6f70)
at /var/tmp/portage/net-libs/tox-9999/work/tox-9999/build/../toxcore/TCP_client.c:667
#9 0x00007ffff6cea496 in do_TCP_connection (TCP_connection=0x7fffec0c6f70)
at /var/tmp/portage/net-libs/tox-9999/work/tox-9999/build/../toxcore/TCP_client.c:708
#10 0x00007ffff6cc9ad6 in do_tcp (c=0x7fffec03f9c0)
at /var/tmp/portage/net-libs/tox-9999/work/tox-9999/build/../toxcore/net_crypto.c:2009
#11 0x00007ffff6ccb443 in do_net_crypto (c=0x7fffec03f9c0)
at /var/tmp/portage/net-libs/tox-9999/work/tox-9999/build/../toxcore/net_crypto.c:2611
#12 0x00007ffff6cd4fe6 in do_messenger (m=0x7fffec001700)
---Type <return> to continue, or q <return> to quit---
at /var/tmp/portage/net-libs/tox-9999/work/tox-9999/build/../toxcore/Messenger.c:2389
#13 0x00007ffff6cd9e0a in tox_do (tox=0x7fffec001700)
at /var/tmp/portage/net-libs/tox-9999/work/tox-9999/build/../toxcore/tox.c:822
#14 0x000055555557c7aa in tox_thread (args=0x0) at tox.c:471
#15 0x00007ffff55165cd in start_thread (arg=0x7ffff3bc4700) at pthread_create.c:309
#16 0x00007ffff524b67d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment