[MXS-80] "show sessions" can crash MaxScale Created: 2015-04-01  Updated: 2015-04-28  Resolved: 2015-04-01

Status: Closed
Project: MariaDB MaxScale
Component/s: cli, Core
Affects Version/s: 1.1.0
Fix Version/s: 1.1.0

Type: Bug Priority: Major
Reporter: Kolbe Kegel (Inactive) Assignee: Timofey Turenko
Resolution: Fixed Votes: 0
Labels: None
Environment:

CentOS 6



 Description   

After I hung schemarouter via MXS-79, I killed that session and then executed show sessions via maxadmin. This caused MaxScale to crash.

2015-03-31 05:30:13   Fatal: MaxScale received fatal signal 11. Attempting backtrace.
2015-03-31 05:30:13     /usr/local/mariadb-maxscale/bin/maxscale() [0x503d0c]
2015-03-31 05:30:13     /lib64/libpthread.so.0(+0xf710) [0x7f0ff974e710]
2015-03-31 05:30:13     /usr/local/mariadb-maxscale/bin/maxscale(dprintAllSessions+0x41) [0x50ebea]
2015-03-31 05:30:13     /usr/local/mariadb-maxscale/modules/libcli.so(execute_cmd+0x910) [0x7f0fe36406bb]
2015-03-31 05:30:13     /usr/local/mariadb-maxscale/modules/libcli.so(+0x59e8) [0x7f0fe363f9e8]
2015-03-31 05:30:13     /usr/local/mariadb-maxscale/modules/libmaxscaled.so(+0x33be) [0x7f0fe1de33be]
2015-03-31 05:30:13     /usr/local/mariadb-maxscale/bin/maxscale() [0x515dd5]
2015-03-31 05:30:13     /usr/local/mariadb-maxscale/bin/maxscale(poll_waitevents+0x634) [0x515694]
2015-03-31 05:30:13     /usr/local/mariadb-maxscale/bin/maxscale(main+0x1a45) [0x50685c]
2015-03-31 05:30:13     /lib64/libc.so.6(__libc_start_main+0xfd) [0x7f0ff7fedd5d]
2015-03-31 05:30:13     /usr/local/mariadb-maxscale/bin/maxscale() [0x502b29]



 Comments   
Comment by markus makela [ 2015-04-01 ]

This was due to a possible null pointer dereference. This bug also pointed out a possible situation where schemarouter sessions were not closed properly.

Both are fixed in develop branch.

Generated at Thu Feb 08 03:56:38 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.