Skip to content

Instantly share code, notes, and snippets.

@justgage
Created April 1, 2016 02:55
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 justgage/6750976f456c6db839134bdcff10a1ed to your computer and use it in GitHub Desktop.
Save justgage/6750976f456c6db839134bdcff10a1ed to your computer and use it in GitHub Desktop.
Segfault Astroids
...
type: 7
player
Score: 0
numLives: 3
about to reset state
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffef95f700 (LWP 26178)]
0x0000000000403aad in std::__cxx11::list<GameObject*, std::allocator<GameObject*> >::begin (this=0x0)
at /usr/include/c++/5/bits/stl_list.h:832
832 { return iterator(this->_M_impl._M_node._M_next); }
(gdb) backtrace
#0 0x0000000000403aad in std::__cxx11::list<GameObject*, std::allocator<GameObject*> >::begin (this=0x0)
at /usr/include/c++/5/bits/stl_list.h:832
#1 0x000000000040358c in std::__cxx11::list<GameObject*, std::allocator<GameObject*> >::operator= (this=0x0, __x=...)
at /usr/include/c++/5/bits/list.tcc:233
#2 0x0000000000402807 in listen (unused=0x0) at client.cpp:193
#3 0x00007ffff6bd36aa in start_thread (arg=0x7fffef95f700) at pthread_create.c:333
#4 0x00007ffff6908e9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment