[MXS-3900] Add multi-threaded stack traces Created: 2021-12-06  Updated: 2021-12-31  Resolved: 2021-12-20

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: None
Fix Version/s: 6.2.1

Type: Bug Priority: Major
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None

Sprint: MXS-SPRINT-146, MXS-SPRINT-147

 Description   

Recently there have been bugs where the SystemD watchdog kills the MaxScale process due to one of the thread hanging somewhere. This results in a stacktrace that is mostly unhelpful as the signal seems to be delivered to one of the idle threads instead of the thread that actually causes it. To make the stack traces for these cases better, we could use gdb (if installed) to dump all threads.

It should be as simple as executing the equivalent of:

gdb --pid=$(pgrep maxscale) -ex 'thr a a bt' -batch


Generated at Thu Feb 08 04:24:45 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.