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

Missing DBUG_RETURN in open_table_uncached()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.1, 10.0
    • Fix Version/s: 10.0.18, 10.1.5
    • Component/s: Replication
    • Labels:
      None

      Description

      Easier to describe the fix than the bug:

      diff --git a/sql/sql_base.cc b/sql/sql_base.cc
      index c400598..18199a0 100644
      --- a/sql/sql_base.cc
      +++ b/sql/sql_base.cc
      @@ -5676,7 +5677,7 @@ TABLE *open_table_uncached(THD *thd, handlerton *hton,
           /* Temporary tables are not safe for parallel replication. */
           if (thd->rgi_slave && thd->rgi_slave->is_parallel_exec &&
               thd->wait_for_prior_commit())
      -      return NULL;
      +      DBUG_RETURN(NULL);
         }
       
         /* Create the cache_key for temporary tables */
      

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            elenst Elena Stepanova added a comment -

            Adding the error message and stack trace for the sake of future JIRA searches:

            10.1/sql/mysqld: debugger aborting because missing DBUG_RETURN or DBUG_VOID_RETURN macro in function "open_table_uncached"
             
            150503 22:55:10 [ERROR] mysqld got signal 6 ;
            This could be because you hit a bug. It is also possible that this binary
            or one of the libraries it was linked against is corrupt, improperly built,
            or misconfigured. This error can also be caused by malfunctioning hardware.
             
            To report this bug, see http://kb.askmonty.org/en/reporting-bugs
             
            We will try our best to scrape up some info that will hopefully help
            diagnose the problem, but since we have already crashed,
            something is definitely wrong and this may fail.
             
            Server version: 10.1.5-MariaDB-wsrep-debug-log
            key_buffer_size=134217728
            read_buffer_size=131072
            max_used_connections=18
            max_threads=153
            thread_count=1
            It is possible that mysqld could use up to
            key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467323 K  bytes of memory
            Hope that's ok; if not, decrease some variables in the equation.
             
            Thread pointer: 0x0x7fdfbf483070
            Attempting backtrace. You can use the following information to find out
            where mysqld died. If you see no messages after this, something went
            terribly wrong...
            stack_bottom = 0x7fdfd8a37d90 thread_stack 0x48000
            /home/elenst/git/10.1/sql/mysqld(my_print_stacktrace+0x38)[0x7fdfd98e4556]
            sql/signal_handler.cc:155(handle_fatal_signal)[0x7fdfd92a0a3c]
            /lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0)[0x7fdfd74c3cb0]
            /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35)[0x7fdfd6b2b425]
            /lib/x86_64-linux-gnu/libc.so.6(abort+0x17b)[0x7fdfd6b2eb8b]
            dbug.c:0(DbugMalloc)[0x7fdfd9904f38]
            /home/elenst/git/10.1/sql/mysqld(_db_return_+0xb5)[0x7fdfd9903a5e]
            sql/sql_table.cc:4875(create_table_impl(THD*, char const*, char const*, char const*, char const*, char const*, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*))[0x7fdfd912e62e]
            sql/sql_table.cc:4921(mysql_create_table_no_lock(THD*, char const*, char const*, Table_specification_st*, Alter_info*, bool*, int))[0x7fdfd912e86a]
            sql/sql_insert.cc:3943(create_table_from_items(THD*, Table_specification_st*, TABLE_LIST*, Alter_info*, List<Item>*, st_mysql_lock**, TABLEOP_HOOKS*))[0x7fdfd905e6b7]
            sql/sql_insert.cc:4116(select_create::prepare(List<Item>&, st_select_lex_unit*))[0x7fdfd905ed4d]
            sql/sql_select.cc:968(JOIN::prepare(Item***, TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x7fdfd90b181c]
            sql/sql_select.cc:3304(mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x7fdfd90b9ba8]
            sql/sql_select.cc:373(handle_select(THD*, LEX*, select_result*, unsigned long))[0x7fdfd90afbfb]
            sql/sql_parse.cc:3379(mysql_execute_command(THD*))[0x7fdfd9078557]
            sql/sql_parse.cc:7165(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x7fdfd9084403]
            sql/log_event.cc:4289(Query_log_event::do_apply_event(rpl_group_info*, char const*, unsigned int))[0x7fdfd9395a4b]
            sql/log_event.cc:4014(Query_log_event::do_apply_event(rpl_group_info*))[0x7fdfd9394ccd]
            sql/log_event.h:1347(Log_event::apply_event(rpl_group_info*))[0x7fdfd8fe241c]
            sql/slave.cc:3274(apply_event_and_update_pos(Log_event*, THD*, rpl_group_info*, rpl_parallel_thread*))[0x7fdfd8fd808a]
            sql/rpl_parallel.cc:49(rpt_handle_event(rpl_parallel_thread::queued_event*, rpl_parallel_thread*))[0x7fdfd920cdbf]
            sql/rpl_parallel.cc:942(handle_rpl_parallel_thread)[0x7fdfd920f027]
            /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a)[0x7fdfd74bbe9a]
            /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7fdfd6be8cbd]
            
            Show
            elenst Elena Stepanova added a comment - Adding the error message and stack trace for the sake of future JIRA searches: 10.1/sql/mysqld: debugger aborting because missing DBUG_RETURN or DBUG_VOID_RETURN macro in function "open_table_uncached" 150503 22:55:10 [ERROR] mysqld got signal 6 ; This could be because you hit a bug. It is also possible that this binary or one of the libraries it was linked against is corrupt, improperly built, or misconfigured. This error can also be caused by malfunctioning hardware. To report this bug, see http://kb.askmonty.org/en/reporting-bugs We will try our best to scrape up some info that will hopefully help diagnose the problem, but since we have already crashed, something is definitely wrong and this may fail. Server version: 10.1.5-MariaDB-wsrep-debug-log key_buffer_size=134217728 read_buffer_size=131072 max_used_connections=18 max_threads=153 thread_count=1 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467323 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x0x7fdfbf483070 Attempting backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong... stack_bottom = 0x7fdfd8a37d90 thread_stack 0x48000 /home/elenst/git/10.1/sql/mysqld(my_print_stacktrace+0x38)[0x7fdfd98e4556] sql/signal_handler.cc:155(handle_fatal_signal)[0x7fdfd92a0a3c] /lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0)[0x7fdfd74c3cb0] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35)[0x7fdfd6b2b425] /lib/x86_64-linux-gnu/libc.so.6(abort+0x17b)[0x7fdfd6b2eb8b] dbug.c:0(DbugMalloc)[0x7fdfd9904f38] /home/elenst/git/10.1/sql/mysqld(_db_return_+0xb5)[0x7fdfd9903a5e] sql/sql_table.cc:4875(create_table_impl(THD*, char const*, char const*, char const*, char const*, char const*, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*))[0x7fdfd912e62e] sql/sql_table.cc:4921(mysql_create_table_no_lock(THD*, char const*, char const*, Table_specification_st*, Alter_info*, bool*, int))[0x7fdfd912e86a] sql/sql_insert.cc:3943(create_table_from_items(THD*, Table_specification_st*, TABLE_LIST*, Alter_info*, List<Item>*, st_mysql_lock**, TABLEOP_HOOKS*))[0x7fdfd905e6b7] sql/sql_insert.cc:4116(select_create::prepare(List<Item>&, st_select_lex_unit*))[0x7fdfd905ed4d] sql/sql_select.cc:968(JOIN::prepare(Item***, TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x7fdfd90b181c] sql/sql_select.cc:3304(mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x7fdfd90b9ba8] sql/sql_select.cc:373(handle_select(THD*, LEX*, select_result*, unsigned long))[0x7fdfd90afbfb] sql/sql_parse.cc:3379(mysql_execute_command(THD*))[0x7fdfd9078557] sql/sql_parse.cc:7165(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x7fdfd9084403] sql/log_event.cc:4289(Query_log_event::do_apply_event(rpl_group_info*, char const*, unsigned int))[0x7fdfd9395a4b] sql/log_event.cc:4014(Query_log_event::do_apply_event(rpl_group_info*))[0x7fdfd9394ccd] sql/log_event.h:1347(Log_event::apply_event(rpl_group_info*))[0x7fdfd8fe241c] sql/slave.cc:3274(apply_event_and_update_pos(Log_event*, THD*, rpl_group_info*, rpl_parallel_thread*))[0x7fdfd8fd808a] sql/rpl_parallel.cc:49(rpt_handle_event(rpl_parallel_thread::queued_event*, rpl_parallel_thread*))[0x7fdfd920cdbf] sql/rpl_parallel.cc:942(handle_rpl_parallel_thread)[0x7fdfd920f027] /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a)[0x7fdfd74bbe9a] /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7fdfd6be8cbd]
            Show
            knielsen Kristian Nielsen added a comment - http://lists.askmonty.org/pipermail/commits/2015-May/007820.html

              People

              • Assignee:
                knielsen Kristian Nielsen
                Reporter:
                knielsen Kristian Nielsen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: