Skip to content

Instantly share code, notes, and snippets.

@Aokromes
Created February 12, 2024 05:25
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/ff1f6058fb496d3374f4149cfe43a85c to your computer and use it in GitHub Desktop.
Save Aokromes/ff1f6058fb496d3374f4149cfe43a85c 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 0x7ffff447a700 (LWP 397821)]
[New Thread 0x7ffff3c79700 (LWP 397822)]
[New Thread 0x7ffff3478700 (LWP 397823)]
[New Thread 0x7ffff2c77700 (LWP 397824)]
[New Thread 0x7ffff2476700 (LWP 397825)]
[New Thread 0x7fff99fff700 (LWP 397844)]
[New Thread 0x7fff997fe700 (LWP 397845)]
[New Thread 0x7fff98ffd700 (LWP 397846)]
[New Thread 0x7fff987fc700 (LWP 397847)]
[Thread 0x7fff987fc700 (LWP 397847) exited]
[Thread 0x7fff997fe700 (LWP 397845) exited]
[Thread 0x7fff99fff700 (LWP 397844) exited]
[Thread 0x7fff98ffd700 (LWP 397846) exited]
[New Thread 0x7fff99fff700 (LWP 397848)]
[New Thread 0x7fff997fe700 (LWP 397849)]
[New Thread 0x7fff98ffd700 (LWP 397850)]
[New Thread 0x7fff987fc700 (LWP 397851)]
Thread 5 "worldserver" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff2c77700 (LWP 397824)]
0x00007ffff7f2bf48 in mysql_free_result () from /usr/lib/x86_64-linux-gnu/libmariadb.so.3
--- DEBUG: BACKTRACE FULL
#0 0x00007ffff7f2bf48 in mysql_free_result () from /usr/lib/x86_64-linux-gnu/libmariadb.so.3
No symbol table info available.
#1 0x00007ffff7f2ddb1 in mysql_ping () from /usr/lib/x86_64-linux-gnu/libmariadb.so.3
No symbol table info available.
#2 0x0000555556429aaa in PingOperation::Execute() ()
No symbol table info available.
#3 0x0000555556429907 in SQLOperation::call() ()
No symbol table info available.
#4 0x000055555645fcb4 in DatabaseWorker::WorkerThread() ()
No symbol table info available.
#5 0x00007ffff76fbed0 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#6 0x00007ffff787dea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
ret = <optimized out>
pd = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737266546432, 8377533263376750889, 140737488344910, 140737488344911, 140737266538304, 8396800, -8377505014065194711, -8377516563492955863}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = 0
#7 0x00007ffff73f6a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.
#8 0x0000000000000000 in ?? ()
No symbol table info available.
--- DEBUG: INFO REGISTERS
rax 0x555556b41358 93825015223128
rbx 0x7ffff4cc9680 140737300436608
rcx 0x0 0
rdx 0x0 0
rsi 0xe 14
rdi 0x0 0
rbp 0x7ffff2c755f0 0x7ffff2c755f0
rsp 0x7ffff2c755b0 0x7ffff2c755b0
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 0x7ffff7f2bf48 0x7ffff7f2bf48 <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)
=> 0x7ffff7f2bf48 <mysql_free_result+1128>: test BYTE PTR [rdi+0x3a8],0x80
0x7ffff7f2bf4f <mysql_free_result+1135>: je 0x7ffff7f2bf6d <mysql_free_result+1165>
0x7ffff7f2bf51 <mysql_free_result+1137>: cmp QWORD PTR [rdi+0x480],0x0
0x7ffff7f2bf59 <mysql_free_result+1145>: je 0x7ffff7f2bf6d <mysql_free_result+1165>
0x7ffff7f2bf5b <mysql_free_result+1147>: mov rbx,QWORD PTR [rdi+0x4f0]
0x7ffff7f2bf62 <mysql_free_result+1154>: cmp BYTE PTR [rbx+0x78],0x1
0x7ffff7f2bf66 <mysql_free_result+1158>: jne 0x7ffff7f2bf6d <mysql_free_result+1165>
0x7ffff7f2bf68 <mysql_free_result+1160>: test rdx,rdx
0x7ffff7f2bf6b <mysql_free_result+1163>: jne 0x7ffff7f2bf98 <mysql_free_result+1208>
0x7ffff7f2bf6d <mysql_free_result+1165>: mov rdx,r13
0x7ffff7f2bf70 <mysql_free_result+1168>: mov esi,r14d
0x7ffff7f2bf73 <mysql_free_result+1171>: mov rdi,r12
0x7ffff7f2bf76 <mysql_free_result+1174>: movsx r8d,r8b
0x7ffff7f2bf7a <mysql_free_result+1178>: mov rax,QWORD PTR [r12+0x4d0]
0x7ffff7f2bf82 <mysql_free_result+1186>: mov rax,QWORD PTR [rax+0x10]
0x7ffff7f2bf86 <mysql_free_result+1190>: add rsp,0x20
--- DEBUG: THREAD APPLY ALL BACKTRACE
Thread 14 (Thread 0x7fff987fc700 (LWP 397851) "worldserver"):
warning: Can't read data for section '.debug_loc' in file '/usr/lib/debug/.build-id/a3/780b0b8a5bf5876e31d16b0a9d8fc6ba69a1f2.debug'
#0 0x00007ffff73ece23 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 0x00007ffff4c64400 in ?? ()
#2 0x0000000100000004 in ?? ()
#3 0x00007fff987fa440 in ?? ()
#4 0x0000000000000000 in ?? ()
Thread 13 (Thread 0x7fff98ffd700 (LWP 397850) "worldserver"):
#0 0x00007ffff73f6d56 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 0x00007fff97a16000 in ?? ()
#2 0x00000020a5837320 in ?? ()
#3 0x00007fff98ffae00 in ?? ()
#4 0xffffffff00000080 in ?? ()
#5 0x431bde82d7b634db in ?? ()
#6 0x00005555559671bd in boost::asio::detail::epoll_reactor::run(long, boost::asio::detail::op_queue<boost::asio::detail::scheduler_operation>&) ()
#7 0x0000555555966d6d 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 0x00005555559669d1 in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
#9 0x00005555559667fd in Trinity::Asio::IoContext::run() ()
#10 0x0000555556265300 in NetworkThread<WorldSocket>::Run() ()
#11 0x00007ffff76fbed0 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#12 0x00007ffff787dea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#13 0x00007ffff73f6a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
#14 0x0000000000000000 in ?? ()
Thread 12 (Thread 0x7fff997fe700 (LWP 397849) "worldserver"):
#0 futex_wait_cancelable (private=0, expected=0, futex_word=0x555556b771b0 <MapManager::instance()::instance+320>) at ../sysdeps/nptl/futex-internal.h:186
#1 __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x555556b77110 <MapManager::instance()::instance+160>, cond=0x555556b77188 <MapManager::instance()::instance+280>) at pthread_cond_wait.c:508
#2 __pthread_cond_wait (cond=0x555556b77188 <MapManager::instance()::instance+280>, mutex=0x555556b77110 <MapManager::instance()::instance+160>) at pthread_cond_wait.c:638
#3 0x00007ffff76f690c in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00005555561d3ea6 in ProducerConsumerQueue<MapUpdateRequest*>::WaitAndPop(MapUpdateRequest*&) ()
#5 0x00005555561d3a53 in MapUpdater::WorkerThread() ()
#6 0x00007ffff76fbed0 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7 0x00007ffff787dea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8 0x00007ffff73f6a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
#9 0x0000000000000000 in ?? ()
Thread 11 (Thread 0x7fff99fff700 (LWP 397848) "worldserver"):
#0 futex_wait_cancelable (private=0, expected=0, futex_word=0x555556b771b0 <MapManager::instance()::instance+320>) at ../sysdeps/nptl/futex-internal.h:186
#1 __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x555556b77110 <MapManager::instance()::instance+160>, cond=0x555556b77188 <MapManager::instance()::instance+280>) at pthread_cond_wait.c:508
#2 __pthread_cond_wait (cond=0x555556b77188 <MapManager::instance()::instance+280>, mutex=0x555556b77110 <MapManager::instance()::instance+160>) at pthread_cond_wait.c:638
#3 0x00007ffff76f690c in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00005555561d3ea6 in ProducerConsumerQueue<MapUpdateRequest*>::WaitAndPop(MapUpdateRequest*&) ()
#5 0x00005555561d3a53 in MapUpdater::WorkerThread() ()
#6 0x00007ffff76fbed0 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7 0x00007ffff787dea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8 0x00007ffff73f6a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
#9 0x0000000000000000 in ?? ()
Thread 6 (Thread 0x7ffff2476700 (LWP 397825) "worldserver"):
#0 futex_wait_cancelable (private=0, expected=0, futex_word=0x7ffff4c482e4) at ../sysdeps/nptl/futex-internal.h:186
#1 __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x7ffff4c48240, cond=0x7ffff4c482b8) at pthread_cond_wait.c:508
#2 __pthread_cond_wait (cond=0x7ffff4c482b8, mutex=0x7ffff4c48240) at pthread_cond_wait.c:638
#3 0x00007ffff76f690c in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x000055555645fd96 in ProducerConsumerQueue<SQLOperation*>::WaitAndPop(SQLOperation*&) ()
#5 0x000055555645fcd6 in DatabaseWorker::WorkerThread() ()
#6 0x00007ffff76fbed0 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7 0x00007ffff787dea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8 0x00007ffff73f6a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
#9 0x0000000000000000 in ?? ()
Thread 5 (Thread 0x7ffff2c77700 (LWP 397824) "worldserver"):
#0 0x00007ffff7f2bf48 in mysql_free_result () from /usr/lib/x86_64-linux-gnu/libmariadb.so.3
#1 0x00007ffff7f2ddb1 in mysql_ping () from /usr/lib/x86_64-linux-gnu/libmariadb.so.3
#2 0x0000555556429aaa in PingOperation::Execute() ()
#3 0x0000555556429907 in SQLOperation::call() ()
#4 0x000055555645fcb4 in DatabaseWorker::WorkerThread() ()
#5 0x00007ffff76fbed0 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6 0x00007ffff787dea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7 0x00007ffff73f6a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
#8 0x0000000000000000 in ?? ()
Thread 4 (Thread 0x7ffff3478700 (LWP 397823) "worldserver"):
#0 0x00007ffff73ea96f in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:29
#1 0x0000000000000000 in ?? ()
Thread 3 (Thread 0x7ffff3c79700 (LWP 397822) "worldserver"):
#0 futex_wait_cancelable (private=0, expected=0, futex_word=0x7ffff4c7449c) at ../sysdeps/nptl/futex-internal.h:186
#1 __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x7ffff4c74438, cond=0x7ffff4c74470) at pthread_cond_wait.c:508
#2 __pthread_cond_wait (cond=0x7ffff4c74470, mutex=0x7ffff4c74438) at pthread_cond_wait.c:638
#3 0x0000555555966cf7 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 0x00005555559669d1 in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
#5 0x00005555559667fd in Trinity::Asio::IoContext::run() ()
#6 0x00005555559609e0 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 0x0000555555966f18 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 0x00005555559669d1 in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
#9 0x00005555559731cb in boost::asio::detail::posix_thread::func<boost::asio::thread_pool::thread_function>::run() ()
#10 0x000055555596978d in boost_asio_detail_posix_thread_function ()
#11 0x00007ffff787dea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#12 0x00007ffff73f6a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
#13 0x0000000000000000 in ?? ()
Thread 2 (Thread 0x7ffff447a700 (LWP 397821) "worldserver"):
#0 0x00007ffff73f6d56 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 0x00007fffa7b36b30 in ?? ()
#2 0x00000010f4c34a80 in ?? ()
#3 0x00007ffff4477ce0 in ?? ()
#4 0xffffffff00000080 in ?? ()
#5 0x431bde82d7b634db in ?? ()
#6 0x00005555559671bd in boost::asio::detail::epoll_reactor::run(long, boost::asio::detail::op_queue<boost::asio::detail::scheduler_operation>&) ()
#7 0x0000555555966d6d 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 0x00005555559669d1 in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
#9 0x00005555559667fd in Trinity::Asio::IoContext::run() ()
#10 0x00005555559609e0 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) ()
#11 0x0000555555966f18 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&) ()
#12 0x00005555559669d1 in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
#13 0x00005555559731cb in boost::asio::detail::posix_thread::func<boost::asio::thread_pool::thread_function>::run() ()
#14 0x000055555596978d in boost_asio_detail_posix_thread_function ()
#15 0x00007ffff787dea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#16 0x00007ffff73f6a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
#17 0x0000000000000000 in ?? ()
Thread 1 (Thread 0x7ffff51d4fc0 (LWP 397817) "worldserver"):
#0 0x00007ffff73bd1a1 in __GI___clock_nanosleep (clock_id=<optimized out>, flags=<optimized out>, req=<optimized out>, rem=<optimized out>) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:48
#1 0x0000000000000000 in ?? ()
--- 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