[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: |
|
||||||||||||
| 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. |