bylins / mud

МПМ Былины
https://www.bylins.su/
Other
36 stars 27 forks source link

креш #2290

Open bylins opened 1 month ago

bylins commented 1 month ago

0 0x0000564496da44c5 in check_mob_helpers () at /home/mud/mud/src/game_fight/fight.cpp:1203

1203 || ch->in_room != IN_ROOM(ch->GetEnemy()) [Current thread is 1 (Thread 0x7fa0f1824300 (LWP 261143))] (gdb) bt

0 0x0000564496da44c5 in check_mob_helpers () at /home/mud/mud/src/game_fight/fight.cpp:1203

1 0x0000564496da7400 in perform_violence () at /home/mud/mud/src/game_fight/fight.cpp:2036

2 0x0000564496e9342f in std::__invoke_impl<void, void (*&)()> (__f=) at /usr/include/c++/11/bits/invoke.h:60

3 std::__invoke_r<void, void (*&)()> (__fn=) at /usr/include/c++/11/bits/invoke.h:111

4 std::_Function_handler<void (), void (*)()>::_M_invoke(std::_Any_data const&) (__functor=...) at /usr/include/c++/11/bits/std_function.h:290

5 0x0000564496e87b6d in std::function<void ()>::operator()() const (this=) at /usr/include/c++/11/bits/std_function.h:590

6 (anonymous namespace)::SimpleCall::perform (this=) at /home/mud/mud/src/heartbeat.cpp:119

7 0x0000564496e89a69 in Heartbeat::pulse (this=this@entry=0x5644972b6460 <(anonymous namespace)::global_objects()::storage+1632>, missed_pulses=missed_pulses@entry=0,

label=std::unordered_map with 3 elements = {...}) at /home/mud/mud/src/heartbeat.cpp:648

8 0x0000564496e93071 in Heartbeat::operator() (this=0x5644972b6460 <(anonymous namespace)::global_objects()::storage+1632>, missed_pulses=missed_pulses@entry=0)

at /home/mud/mud/src/heartbeat.cpp:582

9 0x0000564496c64ddc in game_loop (epoll=epoll@entry=10, mother_desc=mother_desc@entry=8) at /home/mud/mud/src/comm.cpp:1445

10 0x0000564496c64f3f in stop_game (port=port@entry=4000) at /home/mud/mud/src/comm.cpp:840

11 0x0000564496c65797 in main_function (argc=2, argv=0x7fff11296558) at /home/mud/mud/src/comm.cpp:781

12 0x0000564496c5b866 in main (argc=, argv=) at /home/mud/mud/src/main.cpp:4

bylins commented 1 month ago

переделать на итератор

bylins commented 1 month ago

(gdb) bt

0 perform_violence () at /home/mud/mud/src/game_fight/fight.cpp:2087

1 0x00005611d80ee593 in std::__invoke_impl<void, void (*&)()> (__f=) at /usr/include/c++/11/bits/invoke.h:60

2 std::__invoke_r<void, void (*&)()> (__fn=) at /usr/include/c++/11/bits/invoke.h:111

3 std::_Function_handler<void (), void (*)()>::_M_invoke(std::_Any_data const&) (__functor=...) at /usr/include/c++/11/bits/std_function.h:290

4 0x00005611d80e2cd1 in std::function<void ()>::operator()() const (this=) at /usr/include/c++/11/bits/std_function.h:590

5 (anonymous namespace)::SimpleCall::perform (this=) at /home/mud/mud/src/heartbeat.cpp:119

6 0x00005611d80e4bcd in Heartbeat::pulse (this=this@entry=0x5611d8511460 <(anonymous namespace)::global_objects()::storage+1632>, missed_pulses=missed_pulses@entry=0,

label=std::unordered_map with 3 elements = {...}) at /home/mud/mud/src/heartbeat.cpp:648

7 0x00005611d80ee1d5 in Heartbeat::operator() (this=0x5611d8511460 <(anonymous namespace)::global_objects()::storage+1632>, missed_pulses=missed_pulses@entry=0)

at /home/mud/mud/src/heartbeat.cpp:582

8 0x00005611d7ebfddc in game_loop (epoll=epoll@entry=10, mother_desc=mother_desc@entry=8) at /home/mud/mud/src/comm.cpp:1445

9 0x00005611d7ebff3f in stop_game (port=port@entry=4000) at /home/mud/mud/src/comm.cpp:840

10 0x00005611d7ec0797 in main_function (argc=2, argv=0x7ffd4f75f598) at /home/mud/mud/src/comm.cpp:781

11 0x00005611d7eb6866 in main (argc=, argv=) at /home/mud/mud/src/main.cpp:4

(gdb)