segfault when player dies due to announcement moves

Create issue
Issue #148 resolved
Riot created an issue

almost certainly caused by one of the changes to vectorfontstorm's move constructors in the menu_redesign branch

#0  0x00000000005aba88 in FT_Done_Face ()
#1  0x0000000000413d8b in vectorfontstorm::font<vertex>::~font (this=<error reading variable: Cannot access memory at address 0x7fffffffe028>, __in_chrg=<optimized out>) at ./vectorfontstorm/font.h:102
#2  0x0000000000414d95 in std::swap<vectorfontstorm::font<vertex> > (__b=<error reading variable: Cannot access memory at address 0x7fffffffe038>, __a=<error reading variable: Cannot access memory at address 0x7fffffffe048>) at /usr/include/c++/5/bits/move.h:185
#3  vectorfontstorm::string<vertex>::swap (this=<error reading variable: Cannot access memory at address 0x7fffffffe030>, this@entry=<error reading variable: Cannot access memory at address 0x7fffffffe0d0>, other=<error reading variable: Cannot access memory at address 0x7fffffffe060>, other@entry=<error reading variable: Cannot access memory at address 0x7fffffffe0d8>) at /home/slowriot/code/sphereface/vectorfontstorm/string.h:143
#4  0x0000000000414e50 in vectorfontstorm::swap<vertex> (lhs=<error reading variable: Cannot access memory at address 0x7fffffffe0d0>, rhs=<error reading variable: Cannot access memory at address 0x7fffffffe0d8>) at /home/slowriot/code/sphereface/vectorfontstorm/string.h:159
#5  0x00000000004107c7 in announcement::operator=(announcement&&) (this=<error reading variable: Cannot access memory at address 0x7fffffffe0d0>, this@entry=<error reading variable: Cannot access memory at address 0x7fffffffe0e0>, other=<unknown type in /home/slowriot/code/sphereface/bin/Debug/sphereFACE_debug, CU 0x0, DIE 0x7a384>, other@entry=<error reading variable: Cannot access memory at address 0x7fffffffe120>) at /home/slowriot/code/sphereface/announcement.cpp:43
#6  0x00000000004e3136 in std::__copy_move<true, false, std::random_access_iterator_tag>::__copy_m<announcement*, announcement*> (__result=<error reading variable: Cannot access memory at address 0x7fffffffe0e0>, __last=<optimized out>, __first=<error reading variable: Cannot access memory at address 0x7fffffffe120>) at /usr/include/c++/5/bits/stl_algobase.h:359
#7  std::__copy_move_a<true, announcement*, announcement*> (__result=<error reading variable: Cannot access memory at address 0x7fffffffe0f0>, __last=<optimized out>, __first=<error reading variable: Cannot access memory at address 0x7fffffffe0f0>) at /usr/include/c++/5/bits/stl_algobase.h:400
#8  std::__copy_move_a2<true, __gnu_cxx::__normal_iterator<announcement*, std::vector<announcement, std::allocator<announcement> > >, __gnu_cxx::__normal_iterator<announcement*, std::vector<announcement, std::allocator<announcement> > > > (__result=..., __last=..., __first=...) at /usr/include/c++/5/bits/stl_algobase.h:436
#9  std::move<__gnu_cxx::__normal_iterator<announcement*, std::vector<announcement, std::allocator<announcement> > >, __gnu_cxx::__normal_iterator<announcement*, std::vector<announcement, std::allocator<announcement> > > > (__result=..., __last=..., __first=...) at /usr/include/c++/5/bits/stl_algobase.h:502
#10 std::vector<announcement, std::allocator<announcement> >::_M_erase (this=<error reading variable: Cannot access memory at address 0x7fffffffe0e8>, this@entry=<error reading variable: Cannot access memory at address 0x7fffffffe140>, __position=<error reading variable: Cannot access memory at address 0x7fffffffe0f0>, __position@entry=<error reading variable: Cannot access memory at address 0x7fffffffe130>) at /usr/include/c++/5/bits/vector.tcc:145
#11 0x00000000004e2a95 in std::vector<announcement, std::allocator<announcement> >::erase (__position=..., this=<error reading variable: Cannot access memory at address 0x7fffffffe140>) at /usr/include/c++/5/bits/stl_vector.h:1147
#12 sphere::update (this=<error reading variable: Cannot access memory at address 0x7fffffffe140>) at /home/slowriot/code/sphereface/sphere.cpp:367
#13 0x0000000000516881 in universe::update (this=<error reading variable: Cannot access memory at address 0x7fffffffe170>) at /home/slowriot/code/sphereface/universe/universe.cpp:695
#14 0x0000000000506807 in universe::<lambda()>::operator() (__closure=<error reading variable: Cannot access memory at address 0x7fffffffe188>) at /home/slowriot/code/sphereface/universe/loop_highscore.cpp:296
#15 universe::loop_highscore (this=<error reading variable: Cannot access memory at address 0x7fffffffe148>, this@entry=<error reading variable: Cannot access memory at address 0x7fffffffe640>) at /home/slowriot/code/sphereface/universe/loop_highscore.cpp:322
#16 0x00000000005007e0 in universe::loop_dispatcher (this=<error reading variable: Cannot access memory at address 0x7fffffffe640>, this@entry=0x42770a0 <root>) at /home/slowriot/code/sphereface/universe/loop_dispatcher.cpp:31
#17 0x00000000004a6505 in main () at /home/slowriot/code/sphereface/main.cpp:52

Comments (4)

  1. Log in to comment