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

fatal signal 11 when socket could not be opened

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 1.4.3
    • 2.1.0
    • Core
    • None
    • CentOS 7
    • 2016-14

    Description

      Jul 8 11:05:54 ubuntu maxscale[1]: Fatal: MaxScale 1.4.3 received fatal signal 11. Attempting backtrace.
      Jul 8 11:05:54 ubuntu maxscale[1]: Commit ID: c2706bab69d1f3b5f1f3ec70f78b1a4803788fec System name: Linux Release string: CentOS Linux release 7.2.1511 (Core) Embedded library version: (null)
      Jul 8 11:05:54 ubuntu maxscale[1]: /usr/bin/maxscale() [0x403b80]
      Jul 8 11:05:54 ubuntu maxscale[1]: /lib64/libpthread.so.0(+0xf100) [0x7febfae9b100]
      Jul 8 11:05:54 ubuntu maxscale[1]: /usr/lib64/maxscale/libmaxscale-common.so.1.0.0(atomic_add+0x12) [0x7febfb7a32be]
      Jul 8 11:05:54 ubuntu maxscale[1]: /usr/lib64/maxscale/libmaxscale-common.so.1.0.0(mysql_users_fetch+0x33) [0x7febfb7acb23]
      Jul 8 11:05:54 ubuntu maxscale[1]: /usr/lib64/maxscale/libMySQLClient.so(gw_find_mysql_user_password_sha1+0x19c) [0x7febec053ea6]
      Jul 8 11:05:54 ubuntu maxscale[1]: /usr/lib64/maxscale/libMySQLClient.so(gw_check_mysql_scramble_data+0x134) [0x7febec05572f]
      Jul 8 11:05:54 ubuntu maxscale[1]: /usr/lib64/maxscale/libMySQLClient.so(+0x8957) [0x7febec055957]
      Jul 8 11:05:54 ubuntu maxscale[1]: /usr/lib64/maxscale/libMySQLClient.so(mysql_auth_authenticate+0x139) [0x7febec0550b1]
      Jul 8 11:05:54 ubuntu maxscale[1]: /usr/lib64/maxscale/libMySQLClient.so(+0x3238) [0x7febec050238]
      Jul 8 11:05:54 ubuntu maxscale[1]: /usr/lib64/maxscale/libmaxscale-common.so.1.0.0(+0x43f90) [0x7febfb7c2f90]
      Jul 8 11:05:54 ubuntu maxscale[1]: /usr/lib64/maxscale/libmaxscale-common.so.1.0.0(poll_waitevents+0x5de) [0x7febfb7c286e]
      Jul 8 11:05:54 ubuntu maxscale[1]: /usr/bin/maxscale(worker_thread_main+0x2a) [0x404b7f]
      Jul 8 11:05:54 ubuntu maxscale[1]: /lib64/libpthread.so.0(+0x7dc5) [0x7febfae93dc5]
      Jul 8 11:05:54 ubuntu maxscale[1]: /lib64/libc.so.6(clone+0x6d) [0x7febf9975ced]
      Jul 8 11:05:54 ubuntu kernel: [53550.709817] maxscale[30889]: segfault at 1c ip 00007febfb7a32be sp 00007febd7d4a850 error 6 in libmaxscale-common.so.1.0.0[7febfb77f000+e4000]

      ===========

      When there is a socket configured, which cannot not be opened:

      maxscale[1]: Unable to start to listen port 0 for MySQLClient Splitter Service.
      maxscale[1]: Loaded module maxscaled: V1.0.0 from /usr/lib64/maxscale/libmaxscaled.so

      Then opon trying to connect to maxscale with an mysql client will trigger the crash above.

      =========
      Log of startup:

      Jul 8 11:04:43 ubuntu maxscale[1]: Configuration file: /etc/maxscale.cnf
      Jul 8 11:04:43 ubuntu maxscale[1]: Log directory: /var/log/maxscale
      Jul 8 11:04:43 ubuntu maxscale[1]: Data directory: /var/lib/maxscale
      Jul 8 11:04:43 ubuntu maxscale[1]: Module directory: /usr/lib64/maxscale
      Jul 8 11:04:43 ubuntu maxscale[1]: Service cache: /var/cache/maxscale
      Jul 8 11:04:43 ubuntu maxscale[1]: Initialise CLI router module V1.0.0.
      Jul 8 11:04:43 ubuntu maxscale[1]: Loaded module cli: V1.0.0 from /usr/lib64/maxscale/libcli.so
      Jul 8 11:04:43 ubuntu maxscale[1]: Initializing statemend-based read/write split router module.
      Jul 8 11:04:43 ubuntu maxscale[1]: Loaded module readwritesplit: V1.0.2 from /usr/lib64/maxscale/libreadwritesplit.so
      Jul 8 11:04:43 ubuntu maxscale[1]: Initialise the MySQL Galera Monitor module V2.0.0.
      Jul 8 11:04:43 ubuntu maxscale[1]: Loaded module galeramon: V2.0.0 from /usr/lib64/maxscale/libgaleramon.so
      Jul 8 11:04:43 ubuntu maxscale[1]: Encrypted password file /var/lib/maxscale/.secrets can't be accessed (No such file or directory). Password encryption is not used.
      Jul 8 11:04:43 ubuntu maxscale[1]: No query classifier specified, using default 'qc_mysqlembedded'.
      Jul 8 11:04:43 ubuntu maxscale[1]: Loaded module qc_mysqlembedded: V1.0.0 from /usr/lib64/maxscale/libqc_mysqlembedded.so
      Jul 8 11:04:43 ubuntu maxscale[1]: qc_mysqlembedded loaded.
      Jul 8 11:04:43 ubuntu maxscale[1]: Server changed state: 10.0.23.31[10.0.23.31:3306]: new_master
      Jul 8 11:04:43 ubuntu maxscale[1]: Server changed state: 10.0.23.32[10.0.23.32:3306]: new_slave
      Jul 8 11:04:43 ubuntu maxscale[1]: Query classifier initialized.
      Jul 8 11:04:43 ubuntu maxscale[1]: MariaDB Corporation MaxScale 1.4.3 (C) MariaDB Corporation Ab 2013-2015
      Jul 8 11:04:43 ubuntu maxscale[1]: MaxScale is running in process 1
      Jul 8 11:04:43 ubuntu maxscale[1]: Loaded 2 MySQL Users for service [Splitter Service].
      Jul 8 11:04:43 ubuntu maxscale[1]: Loaded module MySQLClient: V1.0.0 from /usr/lib64/maxscale/libMySQLClient.so
      Jul 8 11:04:43 ubuntu maxscale[1]: Listening MySQL connections at 0.0.0.0:3306
      Jul 8 11:04:43 ubuntu maxscale[1]: Failed to bind to UNIX Domain socket '/var/run/mysqld/mysqld.sock': 13, Permission denied
      Jul 8 11:04:43 ubuntu maxscale[1]: Unable to start to listen port 0 for MySQLClient Splitter Service.
      Jul 8 11:04:43 ubuntu maxscale[1]: Loaded module maxscaled: V1.0.0 from /usr/lib64/maxscale/libmaxscaled.so
      Jul 8 11:04:43 ubuntu maxscale[1]: Listening maxscale connections at localhost:6603
      Jul 8 11:04:43 ubuntu maxscale[1]: MaxScale started with 4 server threads.
      Jul 8 11:04:43 ubuntu maxscale[1]: Started MaxScale log flusher.
      Jul 8 11:05:01 ubuntu CRON[30916]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
      ==================

      Config file:

      [maxscale]
      threads=4

      [Splitter Service]
      type=service
      router=readwritesplit
      localhost_match_wildcard_host=1
      servers=10.0.23.31,10.0.23.32,
      user=maxscale
      passwd=xxx

      [Splitter Listener]
      type=listener
      service=Splitter Service
      protocol=MySQLClient
      port=3306
      socket=/var/run/mysqld/mysqld.sock

      [10.0.23.31]
      type=server
      address=10.0.23.31
      port=3306
      protocol=MySQLBackend

      [10.0.23.32]
      type=server
      address=10.0.23.32
      port=3306
      protocol=MySQLBackend

      [Galera Monitor]
      type=monitor
      module=galeramon
      monitor_interval=1000
      disable_master_failback=1
      servers=10.0.23.31,10.0.23.32,
      user=maxscale
      passwd=xxx

      [CLI]
      type=service
      router=cli

      [CLI Listener]
      type=listener
      service=CLI
      protocol=maxscaled
      address=localhost
      port=6603

      Attachments

        Issue Links

          Activity

            People

              markus makela markus makela
              schnidrig Christian Schnidrig
              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.