xsonicx201888 55 Posted March 15, 2021 Share Posted March 15, 2021 (edited) hello everyone ... i have bug in my server, and i can't get the error.. this is game core Spoiler (gdb) file game Reading symbols from game... (gdb) cd /usr/home/srv1/chan/ch1/core1 Working directory /usr/home/srv1/chan/ch1/core1. (gdb) core game.core [New LWP 100475] [New LWP 100524] [New LWP 100526] [New LWP 100554] Core was generated by `./srv1-ch1-core1'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x0817c379 in ITEM_MANAGER::DestroyItem (this=0xffffa3a8, item=0x471dd0e0) at item_manager.cpp:629 629 item_manager.cpp: No such file or directory. [Current thread is 1 (LWP 100475)] (gdb) bt #0 0x0817c379 in ITEM_MANAGER::DestroyItem (this=0xffffa3a8, item=0x471dd0e0) at item_manager.cpp:629 #1 0x080a49eb in CHARACTER::ClearItem (this=0x3bb25000) at char_item.cpp:560 #2 0x080831a0 in CHARACTER::Destroy (this=0x3bb25000) at char.cpp:621 #3 0x08086936 in CHARACTER::~CHARACTER (this=0x3bb25000, __in_chrg=<optimized out>) at char.cpp:188 #4 0x080bd161 in CHARACTER_MANAGER::DestroyCharacter (this=0xffffc408, ch=0x3bb25000) at char_manager.cpp:171 #5 0x0808560b in CHARACTER::Disconnect (this=0x3bb25000, c_pszReason=0x858ca84 "timed_event - SCMD_PHASE_SELECT") at char.cpp:1771 #6 0x080e664e in timed_event (event=..., processing_time=25) at cmd_general.cpp:429 #7 0x08131b51 in event_process (pulse=1181121) at event.cpp:140 #8 0x082ad47f in heartbeat (ht=0x291522d0, pulse=1181121) at main.cpp:273 #9 0x082ad964 in idle () at main.cpp:983 #10 0x082af407 in main (argc=<error reading variable: Cannot access memory at address 0x0>, argv=<error reading variable: Cannot access memory at address 0x4>) at main.cpp:621 (gdb) bt full #0 0x0817c379 in ITEM_MANAGER::DestroyItem (this=0xffffa3a8, item=0x471dd0e0) at item_manager.cpp:629 it = {<std::tr1::__detail::_Hashtable_iterator_base<CItem*, false>> = {_M_cur_node = 0x1000, _M_cur_bucket = 0x4893d444}, <No data fields>} dwID = 1087626752 __FUNCTION__ = "DestroyItem" #1 0x080a49eb in CHARACTER::ClearItem (this=0x3bb25000) at char_item.cpp:560 i = 0 item = 0x471dd0e0 #2 0x080831a0 in CHARACTER::Destroy (this=0x3bb25000) at char.cpp:621 party = <optimized out> #3 0x08086936 in CHARACTER::~CHARACTER (this=0x3bb25000, __in_chrg=<optimized out>) at char.cpp:188 No locals. #4 0x080bd161 in CHARACTER_MANAGER::DestroyCharacter (this=0xffffc408, ch=0x3bb25000) at char_manager.cpp:171 it = {<std::tr1::__detail::_Hashtable_iterator_base<std::pair<unsigned int const, CHARACTER*>, false>> = {_M_cur_node = 0x47179540, _M_cur_bucket = 0x46ffb3c8}, <No data fields>} __FUNCTION__ = "DestroyCharacter" #5 0x0808560b in CHARACTER::Disconnect (this=0x3bb25000, c_pszReason=0x858ca84 "timed_event - SCMD_PHASE_SELECT") at char.cpp:1771 p = {bHeader = 2 '\002', szName = "ErenYeager\000\366\271(\350m\276(\000\322\001)\340\334\377"} #6 0x080e664e in timed_event (event=..., processing_time=25) at cmd_general.cpp:429 info = <optimized out> ch = 0x3bb25000 d = 0x36d6d000 __FUNCTION__ = "timed_event" #7 0x08131b51 in event_process (pulse=1181121) at event.cpp:140 pElem = <optimized out> the_event = {px = 0x48b59b60} processing_time = 25 new_time = <optimized out> num_events = 1 #8 0x082ad47f in heartbeat (ht=0x291522d0, pulse=1181121) at main.cpp:273 t = 47268723 #9 0x082ad964 in idle () at main.cpp:983 now = {tv_sec = 1615809763, tv_usec = 684432} passed_pulses = 1 t = <optimized out> pta = {tv_sec = 1615809763, tv_usec = 4181} process_time_count = 17 #10 0x082af407 in main (argc=<error reading variable: Cannot access memory at address 0x0>, argv=<error reading variable: Cannot access memory at address 0x4>) at main.cpp:621 sectree_manager = {<singleton<SECTREE_MANAGER>> = {_vptr$singleton = 0x85ab080 <vtable for SECTREE_MANAGER+8>, static ms_singleton = 0xffffa65c}, static current_sectree_version = 768, m_map_pkSectree = {_M_t = { _M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<unsigned int const, SECTREE_MAP*> > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<unsigned int const, SECTREE_MAP*> > >> = {<No data fields>}, <No data fields>}, _M_key_compare = {<std::binary_function<unsigned int, unsigned int, bool>> = {<No data fields>}, <No data fields>}, _M_header = { _M_color = std::_S_red, _M_parent = 0x30becf40, _M_left = 0x2b3bf080, _M_right = 0x472693a0}, _M_node_count = 17}}}, m_map_pkArea = { _M_t = { _M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<int const, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, TAreaInfo, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, TAreaInfo> > > > > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, TAreaInfo, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, TAreaInfo> > > > > >> = {<No data fields>}, <No data fields>}, _M_key_compare = {<std::binary_function<int, int, bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = std::_S_red, _M_parent = 0x0, _M_left = 0xffffa67c, _M_right = 0xffffa67c}, _M_node_count = 0}}}, m_vec_mapRegion = {<std::_Vector_base<SMapRegion, std::allocator<SMapRegion> >> = { _M_impl = {<std::allocator<SMapRegion>> = {<__gnu_cxx::new_allocator<SMapRegion>> = {<No data fields>}, <No data fields>}, _M_start = 0x4644c000, _M_finish = 0x4644d560, _M_end_of_storage = 0x4644e600}}, <No data fields>}, m_mapNPCPosition = {_M_t = { _M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<unsigned int const, std::vector<npc_info, std::allocator<npc_info> > > > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<unsigned int const, std::vector<npc_info, std::allocator<npc_info> > > > >> = {<No data fields>}, <No data fields>}, _M_key_compare = {<std::binary_function<unsigned int, unsigned int, bool>> = {<No data fields>}, <No data fields>}, _M_header = { _M_color = std::_S_red, _M_parent = 0x317fe980, _M_left = 0x2e3087a0, _M_right = 0x471cb700}, _M_node_count = 15}}}, --Type <RET> for more, q to quit, c to continue without paging-- this is item_manager.cpp 629 Spoiler #ifndef DEBUG_ALLOC M2_DELETE(item); #else M2_DELETE_EX(item, file, line); #endif Edited August 26, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Developer Ikarus_ 2427 Posted March 15, 2021 Developer Share Posted March 15, 2021 Dangling pointer, it may be due to the special storage/inventory if you got it My youtube channel on which you can see my works here Link to comment Share on other sites More sharing options...
xsonicx201888 55 Posted March 16, 2021 Author Share Posted March 16, 2021 On 3/15/2021 at 9:40 PM, Ikarus_ said: Dangling pointer, it may be due to the special storage/inventory if you got it no .. i have only normal storage and inventory Link to comment Share on other sites More sharing options...
xsonicx201888 55 Posted March 17, 2021 Author Share Posted March 17, 2021 #UP Link to comment Share on other sites More sharing options...
xsonicx201888 55 Posted March 19, 2021 Author Share Posted March 19, 2021 ant fix ? Link to comment Share on other sites More sharing options...
Denizeri24 35 Posted March 20, 2021 Share Posted March 20, 2021 (edited) // Edited March 20, 2021 by Denizeri24 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now