Skip to content

Instantly share code, notes, and snippets.

@Aokromes
Created October 9, 2023 04:15
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 Aokromes/c54877c3b989fb4e05edf1928eb2d7e8 to your computer and use it in GitHub Desktop.
Save Aokromes/c54877c3b989fb4e05edf1928eb2d7e8 to your computer and use it in GitHub Desktop.
--- DEBUG: --- START
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff49ff700 (LWP 3980692)]
[New Thread 0x7ffff41fe700 (LWP 3980693)]
[New Thread 0x7ffff39fd700 (LWP 3980694)]
[New Thread 0x7ffff31fc700 (LWP 3980695)]
[New Thread 0x7ffff29fb700 (LWP 3980696)]
[New Thread 0x7fff9a5ff700 (LWP 3980700)]
[New Thread 0x7fff99dfe700 (LWP 3980701)]
[New Thread 0x7fff995fd700 (LWP 3980702)]
[New Thread 0x7fff98dfc700 (LWP 3980703)]
[Thread 0x7fff98dfc700 (LWP 3980703) exited]
[Thread 0x7fff995fd700 (LWP 3980702) exited]
[Thread 0x7fff99dfe700 (LWP 3980701) exited]
[Thread 0x7fff9a5ff700 (LWP 3980700) exited]
[New Thread 0x7fff9a5ff700 (LWP 3980704)]
[New Thread 0x7fff99dfe700 (LWP 3980705)]
[New Thread 0x7fff995fd700 (LWP 3980706)]
[New Thread 0x7fff98dfc700 (LWP 3980707)]
Thread 5 "worldserver" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff31fc700 (LWP 3980695)]
0x00007ffff7f2be38 in mysql_free_result () from /usr/lib/x86_64-linux-gnu/libmariadb.so.3
--- DEBUG: BACKTRACE FULL
#0 0x00007ffff7f2be38 in mysql_free_result () from /usr/lib/x86_64-linux-gnu/libmariadb.so.3
No symbol table info available.
#1 0x00007ffff7f2dca1 in mysql_ping () from /usr/lib/x86_64-linux-gnu/libmariadb.so.3
No symbol table info available.
#2 0x000055555642006a in PingOperation::Execute() ()
No symbol table info available.
#3 0x000055555641fec7 in SQLOperation::call() ()
No symbol table info available.
#4 0x0000555556456274 in DatabaseWorker::WorkerThread() ()
No symbol table info available.
#5 0x00007ffff781aed0 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#6 0x00007ffff799cea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
ret = <optimized out>
pd = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737272334080, -2451174433375277225, 140737488344894, 140737488344895, 140737272325952, 8396800, 2451167564335001431, 2451157650201620311}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = 0
#7 0x00007ffff7515a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.
--- DEBUG: INFO REGISTERS
rax 0x555556b2f3b8 93825015149496
rbx 0x7ffff4ec8fc0 140737302532032
rcx 0x0 0
rdx 0x0 0
rsi 0xe 14
rdi 0x0 0
rbp 0x7ffff31fa5f0 0x7ffff31fa5f0
rsp 0x7ffff31fa5b0 0x7ffff31fa5b0
r8 0x0 0
r9 0x0 0
r10 0x0 0
r11 0x286 646
r12 0x0 0
r13 0x0 0
r14 0xe 14
r15 0x802000 8396800
rip 0x7ffff7f2be38 0x7ffff7f2be38 <mysql_free_result+1128>
eflags 0x10202 [ IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
--- DEBUG: CALLS (x/16i $pc)
=> 0x7ffff7f2be38 <mysql_free_result+1128>: test BYTE PTR [rdi+0x3a8],0x80
0x7ffff7f2be3f <mysql_free_result+1135>: je 0x7ffff7f2be5d <mysql_free_result+1165>
0x7ffff7f2be41 <mysql_free_result+1137>: cmp QWORD PTR [rdi+0x480],0x0
0x7ffff7f2be49 <mysql_free_result+1145>: je 0x7ffff7f2be5d <mysql_free_result+1165>
0x7ffff7f2be4b <mysql_free_result+1147>: mov rbx,QWORD PTR [rdi+0x4f0]
0x7ffff7f2be52 <mysql_free_result+1154>: cmp BYTE PTR [rbx+0x78],0x1
0x7ffff7f2be56 <mysql_free_result+1158>: jne 0x7ffff7f2be5d <mysql_free_result+1165>
0x7ffff7f2be58 <mysql_free_result+1160>: test rdx,rdx
0x7ffff7f2be5b <mysql_free_result+1163>: jne 0x7ffff7f2be88 <mysql_free_result+1208>
0x7ffff7f2be5d <mysql_free_result+1165>: mov rdx,r13
0x7ffff7f2be60 <mysql_free_result+1168>: mov esi,r14d
0x7ffff7f2be63 <mysql_free_result+1171>: mov rdi,r12
0x7ffff7f2be66 <mysql_free_result+1174>: movsx r8d,r8b
0x7ffff7f2be6a <mysql_free_result+1178>: mov rax,QWORD PTR [r12+0x4d0]
0x7ffff7f2be72 <mysql_free_result+1186>: mov rax,QWORD PTR [rax+0x10]
0x7ffff7f2be76 <mysql_free_result+1190>: add rsp,0x20
--- DEBUG: THREAD APPLY ALL BACKTRACE
Thread 14 (Thread 0x7fff98dfc700 (LWP 3980707) "worldserver"):
warning: Can't read data for section '.debug_loc' in file '/usr/lib/debug/.build-id/e1/5ec78d51a522023f9cfc58dc284f379d81860b.debug'
#0 0x00007ffff750be23 in __GI___select (nfds=<optimized out>, readfds=<optimized out>, writefds=<optimized out>, exceptfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/select.c:41
#1 0x00007ffff794e670 in ?? () from /lib/x86_64-linux-gnu/libreadline.so.8
#2 0x00007ffff794e92d in rl_read_key () from /lib/x86_64-linux-gnu/libreadline.so.8
#3 0x00007ffff79319bf in readline_internal_char () from /lib/x86_64-linux-gnu/libreadline.so.8
#4 0x00007ffff79323ad in readline () from /lib/x86_64-linux-gnu/libreadline.so.8
#5 0x0000555555979501 in CliThread() ()
#6 0x00007ffff781aed0 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7 0x00007ffff799cea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8 0x00007ffff7515a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 13 (Thread 0x7fff995fd700 (LWP 3980706) "worldserver"):
#0 0x00007ffff7515d56 in epoll_wait (epfd=<optimized out>, events=<optimized out>, maxevents=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
#1 0x0000555555964c8d in boost::asio::detail::epoll_reactor::run(long, boost::asio::detail::op_queue<boost::asio::detail::scheduler_operation>&) ()
#2 0x000055555596483d in boost::asio::detail::scheduler::do_run_one(boost::asio::detail::conditionally_enabled_mutex::scoped_lock&, boost::asio::detail::scheduler_thread_info&, boost::system::error_code const&) ()
#3 0x00005555559644a1 in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
#4 0x00005555559642cd in Trinity::Asio::IoContext::run() ()
#5 0x00005555562618f0 in NetworkThread<WorldSocket>::Run() ()
#6 0x00007ffff781aed0 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7 0x00007ffff799cea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8 0x00007ffff7515a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 12 (Thread 0x7fff99dfe700 (LWP 3980705) "worldserver"):
#0 0x0000555555fb7bb7 in Object::GetFloatValue(unsigned short) const ()
#1 0x0000555555fbb445 in WorldObject::_IsWithinDist(WorldObject const*, float, bool, bool, bool) const ()
#2 0x0000555555fbd0f2 in WorldObject::CanSeeOrDetect(WorldObject const*, bool, bool, bool) const ()
#3 0x0000555556120c6f in CreatureUnitRelocationWorker(Creature*, Unit*) ()
#4 0x000055555612223f in void NGrid<8u, Player, TypeList<Player, TypeList<Creature, TypeList<Corpse, TypeList<DynamicObject, TypeNull> > > >, TypeList<GameObject, TypeList<Creature, TypeList<DynamicObject, TypeList<Corpse, TypeNull> > > > >::VisitGrid<Trinity::CreatureRelocationNotifier, TypeList<GameObject, TypeList<Creature, TypeList<DynamicObject, TypeList<Corpse, TypeNull> > > > >(unsigned int, unsigned int, TypeContainerVisitor<Trinity::CreatureRelocationNotifier, TypeMapContainer<TypeList<GameObject, TypeList<Creature, TypeList<DynamicObject, TypeList<Corpse, TypeNull> > > > > >&) ()
#5 0x0000555556121fad in void Cell::VisitCircle<Trinity::CreatureRelocationNotifier, TypeMapContainer<TypeList<GameObject, TypeList<Creature, TypeList<DynamicObject, TypeList<Corpse, TypeNull> > > > > >(TypeContainerVisitor<Trinity::CreatureRelocationNotifier, TypeMapContainer<TypeList<GameObject, TypeList<Creature, TypeList<DynamicObject, TypeList<Corpse, TypeNull> > > > > >&, Map&, CoordPair<512u> const&, CoordPair<512u> const&) const ()
#6 0x0000555556121baa in void Cell::Visit<Trinity::CreatureRelocationNotifier, TypeMapContainer<TypeList<GameObject, TypeList<Creature, TypeList<DynamicObject, TypeList<Corpse, TypeNull> > > > > >(CoordPair<512u> const&, TypeContainerVisitor<Trinity::CreatureRelocationNotifier, TypeMapContainer<TypeList<GameObject, TypeList<Creature, TypeList<DynamicObject, TypeList<Corpse, TypeNull> > > > > >&, Map&, float, float, float) const ()
#7 0x0000555556120153 in Trinity::DelayedUnitRelocation::Visit(GridRefManager<Creature>&) ()
#8 0x00005555561b3678 in Map::ProcessRelocationNotifies(unsigned int) ()
#9 0x00005555561b1eb9 in Map::Update(unsigned int) ()
#10 0x00005555561d0488 in MapUpdateRequest::call() ()
#11 0x00005555561cff37 in MapUpdater::WorkerThread() ()
#12 0x00007ffff781aed0 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#13 0x00007ffff799cea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#14 0x00007ffff7515a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 11 (Thread 0x7fff9a5ff700 (LWP 3980704) "worldserver"):
#0 0x0000555555ef6052 in ThreatManager::Update(unsigned int) ()
#1 0x0000555555f7db22 in Creature::Update(unsigned int) ()
#2 0x0000555556121005 in void Trinity::ObjectUpdater::Visit<Creature>(GridRefManager<Creature>&) ()
#3 0x00005555561c663e in void NGrid<8u, Player, TypeList<Player, TypeList<Creature, TypeList<Corpse, TypeList<DynamicObject, TypeNull> > > >, TypeList<GameObject, TypeList<Creature, TypeList<DynamicObject, TypeList<Corpse, TypeNull> > > > >::VisitGrid<Trinity::ObjectUpdater, TypeList<GameObject, TypeList<Creature, TypeList<DynamicObject, TypeList<Corpse, TypeNull> > > > >(unsigned int, unsigned int, TypeContainerVisitor<Trinity::ObjectUpdater, TypeMapContainer<TypeList<GameObject, TypeList<Creature, TypeList<DynamicObject, TypeList<Corpse, TypeNull> > > > > >&) ()
#4 0x00005555561b130f in Map::VisitNearbyCellsOf(WorldObject*, TypeContainerVisitor<Trinity::ObjectUpdater, TypeMapContainer<TypeList<GameObject, TypeList<Creature, TypeList<DynamicObject, TypeList<Corpse, TypeNull> > > > > >&, TypeContainerVisitor<Trinity::ObjectUpdater, TypeMapContainer<TypeList<Player, TypeList<Creature, TypeList<Corpse, TypeList<DynamicObject, TypeNull> > > > > >&) ()
#5 0x00005555561b1d36 in Map::Update(unsigned int) ()
#6 0x00005555561d0488 in MapUpdateRequest::call() ()
#7 0x00005555561cff37 in MapUpdater::WorkerThread() ()
#8 0x00007ffff781aed0 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#9 0x00007ffff799cea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#10 0x00007ffff7515a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 6 (Thread 0x7ffff29fb700 (LWP 3980696) "worldserver"):
#0 futex_wait_cancelable (private=0, expected=0, futex_word=0x7ffff4e62220) at ../sysdeps/nptl/futex-internal.h:186
#1 __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x7ffff4e62180, cond=0x7ffff4e621f8) at pthread_cond_wait.c:508
#2 __pthread_cond_wait (cond=0x7ffff4e621f8, mutex=0x7ffff4e62180) at pthread_cond_wait.c:638
#3 0x00007ffff781590c in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x0000555556456356 in ProducerConsumerQueue<SQLOperation*>::WaitAndPop(SQLOperation*&) ()
#5 0x0000555556456296 in DatabaseWorker::WorkerThread() ()
#6 0x00007ffff781aed0 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7 0x00007ffff799cea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8 0x00007ffff7515a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 5 (Thread 0x7ffff31fc700 (LWP 3980695) "worldserver"):
#0 0x00007ffff7f2be38 in mysql_free_result () from /usr/lib/x86_64-linux-gnu/libmariadb.so.3
#1 0x00007ffff7f2dca1 in mysql_ping () from /usr/lib/x86_64-linux-gnu/libmariadb.so.3
#2 0x000055555642006a in PingOperation::Execute() ()
#3 0x000055555641fec7 in SQLOperation::call() ()
#4 0x0000555556456274 in DatabaseWorker::WorkerThread() ()
#5 0x00007ffff781aed0 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6 0x00007ffff799cea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7 0x00007ffff7515a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 4 (Thread 0x7ffff39fd700 (LWP 3980694) "worldserver"):
#0 futex_wait_cancelable (private=0, expected=0, futex_word=0x7ffff4e623a0) at ../sysdeps/nptl/futex-internal.h:186
#1 __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x7ffff4e62300, cond=0x7ffff4e62378) at pthread_cond_wait.c:508
#2 __pthread_cond_wait (cond=0x7ffff4e62378, mutex=0x7ffff4e62300) at pthread_cond_wait.c:638
#3 0x00007ffff781590c in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x0000555556456356 in ProducerConsumerQueue<SQLOperation*>::WaitAndPop(SQLOperation*&) ()
#5 0x0000555556456296 in DatabaseWorker::WorkerThread() ()
#6 0x00007ffff781aed0 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7 0x00007ffff799cea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8 0x00007ffff7515a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 3 (Thread 0x7ffff41fe700 (LWP 3980693) "worldserver"):
#0 0x00007ffff7515d56 in epoll_wait (epfd=<optimized out>, events=<optimized out>, maxevents=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
#1 0x0000555555964c8d in boost::asio::detail::epoll_reactor::run(long, boost::asio::detail::op_queue<boost::asio::detail::scheduler_operation>&) ()
#2 0x000055555596483d in boost::asio::detail::scheduler::do_run_one(boost::asio::detail::conditionally_enabled_mutex::scoped_lock&, boost::asio::detail::scheduler_thread_info&, boost::system::error_code const&) ()
#3 0x00005555559644a1 in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
#4 0x00005555559642cd in Trinity::Asio::IoContext::run() ()
#5 0x000055555595e4b0 in boost::asio::detail::executor_op<main::$_0, std::allocator<void>, boost::asio::detail::scheduler_operation>::do_complete(void*, boost::asio::detail::scheduler_operation*, boost::system::error_code const&, unsigned long) ()
#6 0x00005555559649e8 in boost::asio::detail::scheduler::do_run_one(boost::asio::detail::conditionally_enabled_mutex::scoped_lock&, boost::asio::detail::scheduler_thread_info&, boost::system::error_code const&) ()
#7 0x00005555559644a1 in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
#8 0x0000555555970c9b in boost::asio::detail::posix_thread::func<boost::asio::thread_pool::thread_function>::run() ()
#9 0x000055555596725d in boost_asio_detail_posix_thread_function ()
#10 0x00007ffff799cea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#11 0x00007ffff7515a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 2 (Thread 0x7ffff49ff700 (LWP 3980692) "worldserver"):
#0 futex_wait_cancelable (private=0, expected=0, futex_word=0x7ffff4e65198) at ../sysdeps/nptl/futex-internal.h:186
#1 __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x7ffff4e65138, cond=0x7ffff4e65170) at pthread_cond_wait.c:508
#2 __pthread_cond_wait (cond=0x7ffff4e65170, mutex=0x7ffff4e65138) at pthread_cond_wait.c:638
#3 0x00005555559647c7 in boost::asio::detail::scheduler::do_run_one(boost::asio::detail::conditionally_enabled_mutex::scoped_lock&, boost::asio::detail::scheduler_thread_info&, boost::system::error_code const&) ()
#4 0x00005555559644a1 in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
#5 0x00005555559642cd in Trinity::Asio::IoContext::run() ()
#6 0x000055555595e4b0 in boost::asio::detail::executor_op<main::$_0, std::allocator<void>, boost::asio::detail::scheduler_operation>::do_complete(void*, boost::asio::detail::scheduler_operation*, boost::system::error_code const&, unsigned long) ()
#7 0x00005555559649e8 in boost::asio::detail::scheduler::do_run_one(boost::asio::detail::conditionally_enabled_mutex::scoped_lock&, boost::asio::detail::scheduler_thread_info&, boost::system::error_code const&) ()
#8 0x00005555559644a1 in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
#9 0x0000555555970c9b in boost::asio::detail::posix_thread::func<boost::asio::thread_pool::thread_function>::run() ()
#10 0x000055555596725d in boost_asio_detail_posix_thread_function ()
#11 0x00007ffff799cea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#12 0x00007ffff7515a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 1 (Thread 0x7ffff52f3fc0 (LWP 3980688) "worldserver"):
#0 futex_wait_cancelable (private=0, expected=0, futex_word=0x555556b65184 <MapManager::instance()::instance+452>) at ../sysdeps/nptl/futex-internal.h:186
#1 __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x555556b65130 <MapManager::instance()::instance+368>, cond=0x555556b65158 <MapManager::instance()::instance+408>) at pthread_cond_wait.c:508
#2 __pthread_cond_wait (cond=0x555556b65158 <MapManager::instance()::instance+408>, mutex=0x555556b65130 <MapManager::instance()::instance+368>) at pthread_cond_wait.c:638
#3 0x00007ffff781590c in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00005555561cfffb in MapUpdater::wait() ()
#5 0x00005555561c948b in MapManager::Update(unsigned int) ()
#6 0x0000555556393cce in World::Update(unsigned int) ()
#7 0x000055555595d900 in WorldUpdateLoop() ()
#8 0x000055555595acd6 in main ()
--- DEBUG: --- STOP
Generated by crashreport.gdb script version 1.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment