[MXS-4847] Crash on `maxctrl list sessions` Created: 2023-11-02  Updated: 2024-01-11  Resolved: 2023-11-03

Status: Closed
Project: MariaDB MaxScale
Component/s: mariadbclient
Affects Version/s: 6.4.11, 22.08.9, 23.02.5, 23.08.2
Fix Version/s: 6.4.12, 22.08.10, 23.02.6, 23.08.3

Type: Bug Priority: Critical
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 2
Labels: None

Issue Links:
Duplicate
is duplicated by MXS-4863 MaxScale received fatal signal 11 Closed
is duplicated by MXS-4929 Crash on repeated calls to "maxctrl s... Closed

 Description   

If a maxctrl list sessions command is run when a connection has not yet completed the handshaking process, MaxScale may crash. In a production context, where clients come and go, it is not possible to know whether the handshaking process is in process or not. Thus any maxctrl list sessions command may cause MaxScale to crash.



 Comments   
Comment by markus makela [ 2023-11-03 ]

The pointer where the connection attributes were read was not checked for nulless which resulted in the crash for sessions that were in the handshaking phase.

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