[MXS-74] Crash when no arguments given to on_queries clause Created: 2015-03-30  Updated: 2015-04-27  Resolved: 2015-03-31

Status: Closed
Project: MariaDB MaxScale
Component/s: dbfwfilter
Affects Version/s: 1.1.0
Fix Version/s: 1.1.0

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

CentOS 6.6



 Description   

[root@max1 ~]# cat /home/skysql/dbfwfilter_rules.txt
rule testrule deny no_where_clause on_queries
users kolbe@% testuser@% match all rules testrule
 
[root@max1 ~]# service maxscale restart
Stopping MaxScale:                                         [FAILED]
Starting MaxScale: maxscale (pid 4219) is running...       [  OK  ]
 
[root@max1 ~]# mysql -h 192.168.30.38 -P4006 -u kolbe -ppass  -e 'select * from test.t1';
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading authorization packet', system error: 0 "Internal error/check (Not system error)"
 
[root@max1 ~]# tail -n 20 /usr/local/mariadb-maxscale/log/skygw_err1.log
---     Logging is enabled.
2015-03-30 13:27:30   Error : Unable to get user data from backend database for service [tee test frontend]. Missing server information.
2015-03-30 13:27:30   Error : Unable to load users from 0.0.0.0:4011 for service tee test frontend.
2015-03-30 13:27:30   Error : Failed to start service 'tee test frontend'.
2015-03-30 13:27:30   Error : Failed to start service 'tee test backend'.
2015-03-30 13:27:34   Fatal: MaxScale received fatal signal 11. Attempting backtrace.
2015-03-30 13:27:34     /usr/local/mariadb-maxscale/bin/maxscale() [0x503d0c]
2015-03-30 13:27:34     /lib64/libpthread.so.0(+0xf710) [0x7fa064835710]
2015-03-30 13:27:34     /usr/local/mariadb-maxscale/modules/libdbfwfilter.so(parse_querytypes+0x4a) [0x7fa04c2bde5b]
2015-03-30 13:27:34     /usr/local/mariadb-maxscale/modules/libdbfwfilter.so(parse_rule+0xa8e) [0x7fa04c2bf556]
2015-03-30 13:27:34     /usr/local/mariadb-maxscale/modules/libdbfwfilter.so(+0x5918) [0x7fa04c2bf918]
2015-03-30 13:27:34     /usr/local/mariadb-maxscale/bin/maxscale(filterApply+0x9c) [0x524aab]
2015-03-30 13:27:34     /usr/local/mariadb-maxscale/bin/maxscale() [0x50f57a]
2015-03-30 13:27:34     /usr/local/mariadb-maxscale/bin/maxscale(session_alloc+0x32b) [0x50e04f]
2015-03-30 13:27:34     /usr/local/mariadb-maxscale/modules/libMySQLClient.so(+0x5174) [0x7fa04d2e6174]
2015-03-30 13:27:34     /usr/local/mariadb-maxscale/bin/maxscale() [0x515dd5]
2015-03-30 13:27:34     /usr/local/mariadb-maxscale/bin/maxscale(poll_waitevents+0x634) [0x515694]
2015-03-30 13:27:34     /usr/local/mariadb-maxscale/bin/maxscale(main+0x1a45) [0x50685c]
2015-03-30 13:27:34     /lib64/libc.so.6(__libc_start_main+0xfd) [0x7fa0630d4d5d]
2015-03-30 13:27:34     /usr/local/mariadb-maxscale/bin/maxscale() [0x502b29]


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