Uploaded image for project: 'Percona Server'
  1. Percona Server
  2. PS-4898

[PS8QA] Crash during PAM authentication plugin installation.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 8.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The server is crashing when we install PAM authentication plugin.

      8.0.12>INSTALL PLUGIN auth_pam SONAME 'auth_pam.so';
      ERROR 2013 (HY000): Lost connection to MySQL server during query
      8.0.12>

      GDB info

      #0  __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:62
      #1  0x000000000419c801 in my_write_core (sig=6) at /qa/ps8/PS-8.0.12_dbg/mysys/stacktrace.cc:278
      #2  0x0000000002eba1cf in handle_fatal_signal (sig=6) at /qa/ps8/PS-8.0.12_dbg/sql/signal_handler.cc:254
      #3  <signal handler called>
      #4  0x00007fb9d889c428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
      #5  0x00007fb9d889e02a in __GI_abort () at abort.c:89
      #6  0x00007fb9d8894bd7 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x57dd84b "valid_flags == m_flags", file=file@entry=0x57dd810 "/qa/ps8/PS-8.0.12_dbg/storage/perfschema/pfs_instr_class.h", line=line@entry=194, function=function@entry=0x57deac0 <PFS_instr_class::enforce_valid_flags(unsigned int)::__PRETTY_FUNCTION__> "void PFS_instr_class::enforce_valid_flags(uint)") at assert.c:92
      #7  0x00007fb9d8894c82 in __GI___assert_fail (assertion=0x57dd84b "valid_flags == m_flags", file=0x57dd810 "/qa/ps8/PS-8.0.12_dbg/storage/perfschema/pfs_instr_class.h", line=194, function=0x57deac0 <PFS_instr_class::enforce_valid_flags(unsigned int)::__PRETTY_FUNCTION__> "void PFS_instr_class::enforce_valid_flags(uint)") at assert.c:101
      #8  0x00000000042c0d07 in PFS_instr_class::enforce_valid_flags (this=0x7fb9d812c000, allowed_flags=164) at /qa/ps8/PS-8.0.12_dbg/storage/perfschema/pfs_instr_class.h:194
      #9  0x00000000042bf99b in register_memory_class (name=0x7fb9d88625b0 "memory/auth_pam/auth_pam_mapping_iterator\260\002ع\177", name_length=41, info=0x7fb9c13fe160 <common_pam_memory>) at /qa/ps8/PS-8.0.12_dbg/storage/perfschema/pfs_instr_class.cc:1557
      #10 0x0000000004299667 in pfs_register_memory_v1 (category=0x7fb9c11fd1c6 "auth_pam", info=0x7fb9c13fe160 <common_pam_memory>, count=2) at /qa/ps8/PS-8.0.12_dbg/storage/perfschema/pfs.cc:7227
      #11 0x00007fb9c11fb980 in inline_mysql_memory_register (category=0x7fb9c11fd1c6 "auth_pam", info=0x7fb9c13fe160 <common_pam_memory>, count=2) at /qa/ps8/PS-8.0.12_dbg/include/mysql/psi/mysql_memory.h:60
      #12 0x00007fb9c11fb9b4 in auth_pam_common_init (psi_category=0x7fb9c11fd1c6 "auth_pam") at /qa/ps8/PS-8.0.12_dbg/plugin/percona-pam-for-mysql/src/auth_pam_common.cc:47
      #13 0x00007fb9c11fd023 in auth_pam_init (plugin_info=0x7fb9c2b8b7b0) at /qa/ps8/PS-8.0.12_dbg/plugin/percona-pam-for-mysql/src/auth_pam.cc:153
      #14 0x0000000002d2b79c in plugin_initialize (plugin=0x7fb9c2b8b7b0) at /qa/ps8/PS-8.0.12_dbg/sql/sql_plugin.cc:1218
      #15 0x0000000002d2ef9e in mysql_install_plugin (thd=0x7fb9a4824000, name=0x7fb9a4870a68, dl=0x7fb9a4870a78) at /qa/ps8/PS-8.0.12_dbg/sql/sql_plugin.cc:2158
      #16 0x0000000002d33f2b in Sql_cmd_install_plugin::execute (this=0x7fb9a4870a50, thd=0x7fb9a4824000) at /qa/ps8/PS-8.0.12_dbg/sql/sql_plugin.cc:3454
      #17 0x0000000002d001a0 in mysql_execute_command (thd=0x7fb9a4824000, first_level=true) at /qa/ps8/PS-8.0.12_dbg/sql/sql_parse.cc:4417
      #18 0x0000000002d027b9 in mysql_parse (thd=0x7fb9a4824000, parser_state=0x7fb9d88652c0, update_userstat=false) at /qa/ps8/PS-8.0.12_dbg/sql/sql_parse.cc:5139
      #19 0x0000000002cf790a in dispatch_command (thd=0x7fb9a4824000, com_data=0x7fb9d8865c90, command=COM_QUERY) at /qa/ps8/PS-8.0.12_dbg/sql/sql_parse.cc:1654
      #20 0x0000000002cf60d7 in do_command (thd=0x7fb9a4824000) at /qa/ps8/PS-8.0.12_dbg/sql/sql_parse.cc:1262
      #21 0x0000000002ea66f4 in handle_connection (arg=0x7fb94c809b50) at /qa/ps8/PS-8.0.12_dbg/sql/conn_handler/connection_handler_per_thread.cc:317
      #22 0x000000000428ec2e in pfs_spawn_thread (arg=0x7fb94c81d620) at /qa/ps8/PS-8.0.12_dbg/storage/perfschema/pfs.cc:2836
      #23 0x00007fb9da5b96ba in start_thread (arg=0x7fb9d8866700) at pthread_create.c:333
      #24 0x00007fb9d896e41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ramesh.sivaraman Ramesh Sivaraman
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 10 minutes
                10m