Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-17437

Semisync master fires invalid fd value assert

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 10.3(EOL)
    • 10.3.11
    • Replication
    • None

    Description

      The semisync ack collector hits fd's out-of-bound value assert through

      #12 0x00007f125ea0cce8 in abort () from /lib64/libc.so.6
      No symbol table info available.
      #13 0x00007f125ea4b317 in __libc_message () from /lib64/libc.so.6
      No symbol table info available.
      #14 0x00007f125eae3a77 in __fortify_fail () from /lib64/libc.so.6
      No symbol table info available.
      #15 0x00007f125eae1c30 in __chk_fail () from /lib64/libc.so.6
      No symbol table info available.
      #16 0x00007f125eae39e7 in __fdelt_warn () from /lib64/libc.so.6
      No symbol table info available.
      #17 0x00007f1260f7f400 in Ack_receiver::get_slave_sockets (this=this@entry=0x7f1261f4acc0 <ack_receiver>, fds=<optimized out>, fds@entry=0x7f0c797f97c0, count=count@entry=0x7f0c797f979c)
          at mariadb-10.3.9/sql/semisync_master_ack_receiver.cc:189
              __d = 1616
              fd = 1616
              max_fd = 1616
              slave = 0x7f0bcc2f4e08
              it = {<base_ilist_iterator> = {list = 0x7f1261f4ad40 <ack_receiver+128>, el = 0x7f0bcc2f4e18, current = 0x7f0bcc2f4e08}, <No data fields>}
      #18 0x00007f1260f7f980 in Ack_receiver::run (this=this@entry=0x7f1261f4acc0 <ack_receiver>)
      

      The reason of the failure must be the same as in https://bugs.mysql.com/bug.php?id=79865
      whose fixes should be tried out.

      Representation in the error log:

      *** buffer overflow detected ***: /usr/sbin/mysqld terminated
      ...
      ======= Backtrace: =========
      /lib64/libc.so.6(__fortify_fail+0x37)[0x7fa3b998ba77]
      /lib64/libc.so.6(+0x10bc30)[0x7fa3b9989c30]
      /lib64/libc.so.6(+0x10d9e7)[0x7fa3b998b9e7]
      /usr/sbin/mysqld(_ZN12Ack_receiver17get_slave_socketsEP6fd_setPj+0x70)[0x7fa3bbe27400]
      /usr/sbin/mysqld(_ZN12Ack_receiver3runEv+0x540)[0x7fa3bbe27980]
      /usr/sbin/mysqld(ack_receive_handler+0x19)[0x7fa3bbe27a79]
      /lib64/libpthread.so.0(+0x7dc5)[0x7fa3bb31ddc5]
      /lib64/libc.so.6(clone+0x6d)[0x7fa3b99741cd]
      ======= Memory map: ========
      ...
      

      Attachments

        Activity

          Elkin Andrei Elkin created issue -
          elenst Elena Stepanova made changes -
          Field Original Value New Value
          Description The semisync ack collector hits fd's out-of-bound value assert through

          {noformat}
          #12 0x00007f125ea0cce8 in abort () from /lib64/libc.so.6
          No symbol table info available.
          #13 0x00007f125ea4b317 in __libc_message () from /lib64/libc.so.6
          No symbol table info available.
          #14 0x00007f125eae3a77 in __fortify_fail () from /lib64/libc.so.6
          No symbol table info available.
          #15 0x00007f125eae1c30 in __chk_fail () from /lib64/libc.so.6
          No symbol table info available.
          #16 0x00007f125eae39e7 in __fdelt_warn () from /lib64/libc.so.6
          No symbol table info available.
          #17 0x00007f1260f7f400 in Ack_receiver::get_slave_sockets (this=this@entry=0x7f1261f4acc0 <ack_receiver>, fds=<optimized out>, fds@entry=0x7f0c797f97c0, count=count@entry=0x7f0c797f979c)
              at mariadb-10.3.9/sql/semisync_master_ack_receiver.cc:189
                  __d = 1616
                  fd = 1616
                  max_fd = 1616
                  slave = 0x7f0bcc2f4e08
                  it = {<base_ilist_iterator> = {list = 0x7f1261f4ad40 <ack_receiver+128>, el = 0x7f0bcc2f4e18, current = 0x7f0bcc2f4e08}, <No data fields>}
          #18 0x00007f1260f7f980 in Ack_receiver::run (this=this@entry=0x7f1261f4acc0 <ack_receiver>)
          {noformat}

          The reason of the failure must be the same as in https://bugs.mysql.com/bug.php?id=79865
          whose fixes should be tried out.
          The semisync ack collector hits fd's out-of-bound value assert through

          {noformat}
          #12 0x00007f125ea0cce8 in abort () from /lib64/libc.so.6
          No symbol table info available.
          #13 0x00007f125ea4b317 in __libc_message () from /lib64/libc.so.6
          No symbol table info available.
          #14 0x00007f125eae3a77 in __fortify_fail () from /lib64/libc.so.6
          No symbol table info available.
          #15 0x00007f125eae1c30 in __chk_fail () from /lib64/libc.so.6
          No symbol table info available.
          #16 0x00007f125eae39e7 in __fdelt_warn () from /lib64/libc.so.6
          No symbol table info available.
          #17 0x00007f1260f7f400 in Ack_receiver::get_slave_sockets (this=this@entry=0x7f1261f4acc0 <ack_receiver>, fds=<optimized out>, fds@entry=0x7f0c797f97c0, count=count@entry=0x7f0c797f979c)
              at mariadb-10.3.9/sql/semisync_master_ack_receiver.cc:189
                  __d = 1616
                  fd = 1616
                  max_fd = 1616
                  slave = 0x7f0bcc2f4e08
                  it = {<base_ilist_iterator> = {list = 0x7f1261f4ad40 <ack_receiver+128>, el = 0x7f0bcc2f4e18, current = 0x7f0bcc2f4e08}, <No data fields>}
          #18 0x00007f1260f7f980 in Ack_receiver::run (this=this@entry=0x7f1261f4acc0 <ack_receiver>)
          {noformat}

          The reason of the failure must be the same as in https://bugs.mysql.com/bug.php?id=79865
          whose fixes should be tried out.

          Representation in the error log:
          {noformat}
          *** buffer overflow detected ***: /usr/sbin/mysqld terminated
          ...
          ======= Backtrace: =========
          /lib64/libc.so.6(__fortify_fail+0x37)[0x7fa3b998ba77]
          /lib64/libc.so.6(+0x10bc30)[0x7fa3b9989c30]
          /lib64/libc.so.6(+0x10d9e7)[0x7fa3b998b9e7]
          /usr/sbin/mysqld(_ZN12Ack_receiver17get_slave_socketsEP6fd_setPj+0x70)[0x7fa3bbe27400]
          /usr/sbin/mysqld(_ZN12Ack_receiver3runEv+0x540)[0x7fa3bbe27980]
          /usr/sbin/mysqld(ack_receive_handler+0x19)[0x7fa3bbe27a79]
          /lib64/libpthread.so.0(+0x7dc5)[0x7fa3bb31ddc5]
          /lib64/libc.so.6(clone+0x6d)[0x7fa3b99741cd]
          ======= Memory map: ========
          ...
          {noformat}
          Elkin Andrei Elkin made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Elkin Andrei Elkin made changes -
          Assignee Andrei Elkin [ elkin ] Sachin Setiya [ sachin.setiya.007 ]
          Status In Progress [ 3 ] In Review [ 10002 ]
          serg Sergei Golubchik made changes -
          Fix Version/s 10.3 [ 22126 ]
          sachin.setiya.007 Sachin Setiya (Inactive) made changes -
          Assignee Sachin Setiya [ sachin.setiya.007 ] Andrei Elkin [ elkin ]
          Status In Review [ 10002 ] Stalled [ 10000 ]
          Elkin Andrei Elkin added a comment -

          Checked a failing test to prove its not the patch's fault;
          pushed.

          Elkin Andrei Elkin added a comment - Checked a failing test to prove its not the patch's fault; pushed.
          Elkin Andrei Elkin made changes -
          issue.field.resolutiondate 2018-11-13 08:35:41.0 2018-11-13 08:35:41.179
          Elkin Andrei Elkin made changes -
          Fix Version/s 10.3.11 [ 23141 ]
          Fix Version/s 10.3 [ 22126 ]
          Resolution Fixed [ 1 ]
          Status Stalled [ 10000 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 90074 ] MariaDB v4 [ 155052 ]
          mariadb-jira-automation Jira Automation (IT) made changes -
          Zendesk Related Tickets 108280

          People

            Elkin Andrei Elkin
            Elkin Andrei Elkin
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.