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

safe_mutex: Trying to lock mutex when the mutex was already locked on using a role and I_S role tables

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.0.5
    • Component/s: None
    • Labels:
      None

      Description

      safe_mutex: Trying to lock mutex at sql/sql_acl.cc, line 10902, when the mutex was already locked at sql/sql_acl.cc, line 9907 in thread T@7
      131023  2:39:21 [ERROR] mysqld got signal 6 ;

      #5  0x00007f6733eb3b8b in __GI_abort () at abort.c:91
      #6  0x0000000000d151a2 in safe_mutex_lock (mp=0x7f6733428b40, my_flags=0, file=0xde4950 "sql/sql_acl.cc", line=10902) at mysys/thr_mutex.c:266
      #7  0x00000000005a05c8 in inline_mysql_mutex_lock (that=0x7f6733428b40, src_file=0xde4950 "sql/sql_acl.cc", src_line=10902) at include/mysql/psi/mysql_thread.h:618
      #8  0x00000000005bf93e in find_mpvio_user (mpvio=0x7f67356243f0) at sql/sql_acl.cc:10902
      #9  0x00000000005c0e4a in parse_client_handshake_packet (mpvio=0x7f67356243f0, buff=0x7f6735624070, pkt_len=65) at sql/sql_acl.cc:11294
      #10 0x00000000005c1550 in server_mpvio_read_packet (param=0x7f67356243f0, buf=0x7f6735624070) at sql/sql_acl.cc:11494
      #11 0x00000000005c29e2 in native_password_authenticate (vio=0x7f67356243f0, info=0x7f6735624408) at sql/sql_acl.cc:12030
      #12 0x00000000005c1bf1 in do_auth_once (thd=0x7f672f7e9070, auth_plugin_name=0x1466d40, mpvio=0x7f67356243f0) at sql/sql_acl.cc:11663
      #13 0x00000000005c1f0f in acl_authenticate (thd=0x7f672f7e9070, connect_errors=0, com_change_user_pkt_len=0) at sql/sql_acl.cc:11762
      #14 0x000000000074321d in check_connection (thd=0x7f672f7e9070) at sql/sql_connect.cc:972
      #15 0x0000000000743373 in login_connection (thd=0x7f672f7e9070) at sql/sql_connect.cc:1029
      #16 0x0000000000743852 in thd_prepare_connection (thd=0x7f672f7e9070) at sql/sql_connect.cc:1189
      #17 0x0000000000743a97 in do_handle_one_connection (thd_arg=0x7f672f7e9070) at sql/sql_connect.cc:1257
      #18 0x0000000000743827 in handle_one_connection (arg=0x7f672f7e9070) at sql/sql_connect.cc:1181
      #19 0x00000000009ab186 in pfs_spawn_thread (arg=0x7f672f76a5d0) at storage/perfschema/pfs.cc:1015
      #20 0x00007f673483ce9a in start_thread (arg=0x7f6735625700) at pthread_create.c:308
      #21 0x00007f6733f6dcbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

      revision-id: sergii@pisem.net-20131020232702-db6ekuk4lz0itg1b
      revno: 3892
      branch-nick: 10.0-serg
      BUILD/compile-pentium-debug-max-no-ndb

      Test case:

      --connect (con1,localhost,root,,)
      CREATE ROLE m;
      SET ROLE m;
      DROP ROLE m;
      SELECT * FROM INFORMATION_SCHEMA . ENABLED_ROLES;
      --disconnect con1
      --source include/wait_until_disconnected.inc
      --connect (con2,localhost,root,,)
      SELECT 1;

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              serg Sergei Golubchik
              Reporter:
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: