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

Crash in open_tables() while calling stored procedure from the package

    XMLWordPrintable

    Details

      Description

      The following crash happens while calling stored procedure form the package (from full gdb backtrace, showrtened a lot to hide potentially sensitive data):

      #0  0x00007f52dcf0a9b1 in pthread_kill () from /lib64/libpthread.so.0
      No symbol table info available.
      #1  0x000055e3071a107a in handle_fatal_signal (sig=11) at /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.2.13/sql/signal_handler.cc:305
              buff = "/mariadb/data/\000\000\360\256\322&=\177\000\000P\036\b\300R\177\000\000@\036\b\300R\177\000\000b\311\362\006\343U\000\000\360\256\322&=\177\000\000\000b{\344\256++C(ݏ\310<\177\000\000 ۆ&=\177\000"
              curr_time = 1516604732
              tm = {tm_sec = 32, tm_min = 5, tm_hour = 15, tm_mday = 22, tm_mon = 0, tm_year = 118, tm_wday = 1, tm_yday = 21, tm_isdst = 0, tm_gmtoff = 28800, tm_zone = 0x55e30a2a9f50 "SGT"}
              print_invalid_query_pointer = false
      #2  <signal handler called>
      No symbol table info available.
      #3  open_tables (thd=thd@entry=0x7f3d26c12cd8, options=..., start=start@entry=0x7f52c0082538, counter=counter@entry=0x7f52c0082540, flags=flags@entry=0, 
          prelocking_strategy=prelocking_strategy@entry=0x7f52c0082590) at /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.2.13/sql/sql_base.cc:3121
      No locals.
      #4  0x000055e306f90b84 in open_and_lock_tables (thd=thd@entry=0x7f3d26c12cd8, options=..., tables=tables@entry=0x0, derived=derived@entry=true, flags=flags@entry=0, 
          prelocking_strategy=prelocking_strategy@entry=0x7f52c0082590) at /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.2.13/sql/sql_base.cc:4745
              counter = 0
              mdl_savepoint = {m_stmt_ticket = 0x0, m_trans_ticket = 0x0}
      #5  0x000055e306fd8d81 in open_and_lock_tables (flags=0, derived=true, tables=0x0, thd=0x7f3d26c12cd8)
          at /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.2.13/sql/sql_base.h:496
              prelocking_strategy = {<Prelocking_strategy> = {_vptr.Prelocking_strategy = 0x55e307ed18b0 <vtable for DML_prelocking_strategy+16>}, <No data fields>}
      #6  Sql_cmd_call::execute (this=0x7f3d26b60b88, thd=0x7f3d26c12cd8) at /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.2.13/sql/sql_parse.cc:3117
              all_tables = 0x0
      #7  0x000055e306fde79e in mysql_execute_command (thd=0x7f3d26c12cd8) at /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.2.13/sql/sql_parse.cc:6247
      ...
      #8  0x000055e306f56cf6 in sp_instr_stmt::exec_core (this=0x7f3d26b612f0, thd=<optimized out>, nextp=0x7f52c0083d70)
          at /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.2.13/sql/sp_head.cc:3591
              res = 1414349151
      #9  0x000055e306f5e959 in sp_lex_keeper::reset_lex_and_exec_core (this=this@entry=0x7f3d26b61338, thd=thd@entry=0x7f3d26c12cd8, nextp=nextp@entry=0x7f52c0083d70, open_tables=open_tables@entry=false, 
          instr=instr@entry=0x7f3d26b612f0) at /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.2.13/sql/sp_head.cc:3336
              res = <optimized out>
              parent_modified_non_trans_table = false
              __FUNCTION__ = "reset_lex_and_exec_core"
      #10 0x000055e306f5ef55 in sp_instr_stmt::execute (this=0x7f3d26b612f0, thd=0x7f3d26c12cd8, nextp=0x7f52c0083d70)
          at /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.2.13/sql/sp_head.cc:3507
      ...
      #12 0x000055e306f5baed in sp_head::execute_procedure (this=0x7f3d24c670b0, thd=thd@entry=0x7f3d26c12cd8, args=0x7f3d26ca5a20)
          at /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.2.13/sql/sp_head.cc:2313
      ...
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bar Alexander Barkov
              Reporter:
              valerii Valerii Kravchuk
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: