Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-68

Wrong rule name in dbfwfilter leads to MaxScale crash

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • 1.1.0
    • 1.1.0
    • dbfwfilter
    • None

    Description

      [Database Firewall]
      type=filter
      module=dbfwfilter
      rules=/home/skysql/dbfwfilter_rules.txt

      rule testrule deny no_where_clause
      users kolbe@% testuser@% match strict_all rules notarule

      [root@max1 ~]# mysql -h 192.168.30.38 -P4006 -u kolbe -ppass  -e 'select t1.* from test.t1'
      ERROR 2013 (HY000): Lost connection to MySQL server at 'reading authorization packet', system error: 0 "Internal error/check (Not system error)"

      2015-03-21 08:56:08   Error : Rule not found: notarule
      2015-03-21 08:56:08   Fatal: MaxScale received fatal signal 11. Attempting backtrace.
      2015-03-21 08:56:08     /usr/local/mariadb-maxscale/bin/maxscale() [0x52248c]
      2015-03-21 08:56:08     /lib64/libpthread.so.0(+0xf710) [0x7f2838a59710]
      2015-03-21 08:56:08     /usr/local/mariadb-maxscale/modules/libdbfwfilter.so(link_rules+0x41e) [0x7f281c44a84a]
      2015-03-21 08:56:08     /usr/local/mariadb-maxscale/modules/libdbfwfilter.so(+0x5536) [0x7f281c44b536]
      2015-03-21 08:56:08     /usr/local/mariadb-maxscale/bin/maxscale(filterApply+0x9c) [0x5431eb]
      2015-03-21 08:56:08     /usr/local/mariadb-maxscale/bin/maxscale() [0x52dcba]
      2015-03-21 08:56:08     /usr/local/mariadb-maxscale/bin/maxscale(session_alloc+0x32b) [0x52c78f]
      2015-03-21 08:56:08     /usr/local/mariadb-maxscale/modules/libMySQLClient.so(+0x5144) [0x7f281d058144]
      2015-03-21 08:56:08     /usr/local/mariadb-maxscale/bin/maxscale() [0x534515]
      2015-03-21 08:56:08     /usr/local/mariadb-maxscale/bin/maxscale(poll_waitevents+0x634) [0x533dd4]
      2015-03-21 08:56:08     /lib64/libpthread.so.0(+0x79d1) [0x7f2838a519d1]
      2015-03-21 08:56:08     /lib64/libc.so.6(clone+0x6d) [0x7f28373c28fd]

      Attachments

        Activity

          People

            tturenko Timofey Turenko
            kolbe Kolbe Kegel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.