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

MariaDB crashed on BETWEEN (opt_range.cc)

Details

    • Bug
    • Status: Open (View Workflow)
    • Critical
    • Resolution: Unresolved
    • 10.3.10, 10.3.11
    • None
    • Optimizer
    • Windows Server 2012 R2

    Description

      181009 13:15:36 [ERROR] mysqld got exception 0xc0000005 ;
      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 https://mariadb.com/kb/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.3.10-MariaDB
      key_buffer_size=134217728
      read_buffer_size=67108864
      max_used_connections=9
      max_threads=65537
      thread_count=15
      It is possible that mysqld could use up to 
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 266025 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0xd8581db018
      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...
      mysqld.exe!Field::eq()[field.h:886]
      mysqld.exe!Item_bool_func::get_mm_parts()[opt_range.cc:7861]
      mysqld.exe!Item_bool_func::get_ne_mm_tree()[opt_range.cc:7024]
      mysqld.exe!Item_func_ne::get_func_mm_tree()[item_cmpfunc.h:828]
      mysqld.exe!Item_bool_func::get_full_func_mm_tree()[opt_range.cc:7558]
      mysqld.exe!Item_bool_func::get_full_func_mm_tree_for_args()[item_cmpfunc.h:201]
      mysqld.exe!Item_bool_func2_with_rev::get_mm_tree()[item_cmpfunc.h:488]
      mysqld.exe!Item_cond_and::get_mm_tree()[opt_range.cc:7613]
      mysqld.exe!calculate_cond_selectivity_for_table()[opt_range.cc:3078]
      mysqld.exe!make_join_statistics()[sql_select.cc:4919]
      mysqld.exe!JOIN::optimize_inner()[sql_select.cc:1896]
      mysqld.exe!JOIN::optimize()[sql_select.cc:1450]
      mysqld.exe!mysql_select()[sql_select.cc:4220]
      mysqld.exe!handle_select()[sql_select.cc:370]
      mysqld.exe!execute_sqlcom_select()[sql_parse.cc:6547]
      mysqld.exe!mysql_execute_command()[sql_parse.cc:3769]
      mysqld.exe!mysql_parse()[sql_parse.cc:8096]
      mysqld.exe!dispatch_command()[sql_parse.cc:1852]
      mysqld.exe!do_command()[sql_parse.cc:1394]
      mysqld.exe!threadpool_process_request()[threadpool_common.cc:358]
      mysqld.exe!tp_callback()[threadpool_common.cc:186]
      ntdll.dll!RtlFreeUnicodeString()
      ntdll.dll!RtlFreeUnicodeString()
      KERNEL32.DLL!BaseThreadInitThunk()
      ntdll.dll!RtlUserThreadStart()
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0xc177cbc040): SELECT absenceId 
       
      FROM absence 
       
      JOIN employee USING(employeeid)
       
      WHERE name='...' AND absenceId <> -1
       
      AND start BETWEEN '2018-12-24' AND '2018-12-24'
       
      OR end BETWEEN '2018-12-24' AND '2018-12-24'
      Connection ID (thread ID): 8
      Status: NOT_KILLED
       
      Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=on,mrr_sort_keys=on,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on
       
      The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
      information that should help you find out what is causing the crash.
      2018-10-09 13:15:47 28 [ERROR] mysqld.exe: Out of memory (Needed 67104792 bytes)

      Attachments

        Activity

          sstamm Sebastian Stamm created issue -
          sstamm Sebastian Stamm made changes -
          Field Original Value New Value
          Description 181009 13:15:36 [ERROR] mysqld got exception 0xc0000005 ;
          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 https://mariadb.com/kb/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.3.10-MariaDB
          key_buffer_size=134217728
          read_buffer_size=67108864
          max_used_connections=9
          max_threads=65537
          thread_count=15
          It is possible that mysqld could use up to
          key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 266025 K bytes of memory
          Hope that's ok; if not, decrease some variables in the equation.

          Thread pointer: 0xd8581db018
          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...
          mysqld.exe!Field::eq()[field.h:886]
          mysqld.exe!Item_bool_func::get_mm_parts()[opt_range.cc:7861]
          mysqld.exe!Item_bool_func::get_ne_mm_tree()[opt_range.cc:7024]
          mysqld.exe!Item_func_ne::get_func_mm_tree()[item_cmpfunc.h:828]
          mysqld.exe!Item_bool_func::get_full_func_mm_tree()[opt_range.cc:7558]
          mysqld.exe!Item_bool_func::get_full_func_mm_tree_for_args()[item_cmpfunc.h:201]
          mysqld.exe!Item_bool_func2_with_rev::get_mm_tree()[item_cmpfunc.h:488]
          mysqld.exe!Item_cond_and::get_mm_tree()[opt_range.cc:7613]
          mysqld.exe!calculate_cond_selectivity_for_table()[opt_range.cc:3078]
          mysqld.exe!make_join_statistics()[sql_select.cc:4919]
          mysqld.exe!JOIN::optimize_inner()[sql_select.cc:1896]
          mysqld.exe!JOIN::optimize()[sql_select.cc:1450]
          mysqld.exe!mysql_select()[sql_select.cc:4220]
          mysqld.exe!handle_select()[sql_select.cc:370]
          mysqld.exe!execute_sqlcom_select()[sql_parse.cc:6547]
          mysqld.exe!mysql_execute_command()[sql_parse.cc:3769]
          mysqld.exe!mysql_parse()[sql_parse.cc:8096]
          mysqld.exe!dispatch_command()[sql_parse.cc:1852]
          mysqld.exe!do_command()[sql_parse.cc:1394]
          mysqld.exe!threadpool_process_request()[threadpool_common.cc:358]
          mysqld.exe!tp_callback()[threadpool_common.cc:186]
          ntdll.dll!RtlFreeUnicodeString()
          ntdll.dll!RtlFreeUnicodeString()
          KERNEL32.DLL!BaseThreadInitThunk()
          ntdll.dll!RtlUserThreadStart()

          Trying to get some variables.
          Some pointers may be invalid and cause the dump to abort.
          Query (0xc177cbc040): SELECT absenceId

          FROM absence

          JOIN employee USING(employeeid)

          WHERE name='...' AND absenceId <> -1

          AND start BETWEEN '2018-12-24' AND '2018-12-24'

          OR end BETWEEN '2018-12-24' AND '2018-12-24'
          Connection ID (thread ID): 8
          Status: NOT_KILLED

          Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=on,mrr_sort_keys=on,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on
          181009 13:15:36 [ERROR] mysqld got exception 0xc0000005 ;
          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 https://mariadb.com/kb/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.3.10-MariaDB
          key_buffer_size=134217728
          read_buffer_size=67108864
          max_used_connections=9
          max_threads=65537
          thread_count=15
          It is possible that mysqld could use up to
          key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 266025 K bytes of memory
          Hope that's ok; if not, decrease some variables in the equation.

          Thread pointer: 0xd8581db018
          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...
          mysqld.exe!Field::eq()[field.h:886]
          mysqld.exe!Item_bool_func::get_mm_parts()[opt_range.cc:7861]
          mysqld.exe!Item_bool_func::get_ne_mm_tree()[opt_range.cc:7024]
          mysqld.exe!Item_func_ne::get_func_mm_tree()[item_cmpfunc.h:828]
          mysqld.exe!Item_bool_func::get_full_func_mm_tree()[opt_range.cc:7558]
          mysqld.exe!Item_bool_func::get_full_func_mm_tree_for_args()[item_cmpfunc.h:201]
          mysqld.exe!Item_bool_func2_with_rev::get_mm_tree()[item_cmpfunc.h:488]
          mysqld.exe!Item_cond_and::get_mm_tree()[opt_range.cc:7613]
          mysqld.exe!calculate_cond_selectivity_for_table()[opt_range.cc:3078]
          mysqld.exe!make_join_statistics()[sql_select.cc:4919]
          mysqld.exe!JOIN::optimize_inner()[sql_select.cc:1896]
          mysqld.exe!JOIN::optimize()[sql_select.cc:1450]
          mysqld.exe!mysql_select()[sql_select.cc:4220]
          mysqld.exe!handle_select()[sql_select.cc:370]
          mysqld.exe!execute_sqlcom_select()[sql_parse.cc:6547]
          mysqld.exe!mysql_execute_command()[sql_parse.cc:3769]
          mysqld.exe!mysql_parse()[sql_parse.cc:8096]
          mysqld.exe!dispatch_command()[sql_parse.cc:1852]
          mysqld.exe!do_command()[sql_parse.cc:1394]
          mysqld.exe!threadpool_process_request()[threadpool_common.cc:358]
          mysqld.exe!tp_callback()[threadpool_common.cc:186]
          ntdll.dll!RtlFreeUnicodeString()
          ntdll.dll!RtlFreeUnicodeString()
          KERNEL32.DLL!BaseThreadInitThunk()
          ntdll.dll!RtlUserThreadStart()

          Trying to get some variables.
          Some pointers may be invalid and cause the dump to abort.
          Query (0xc177cbc040): SELECT absenceId

          FROM absence

          JOIN employee USING(employeeid)

          WHERE name='...' AND absenceId <> -1

          AND start BETWEEN '2018-12-24' AND '2018-12-24'

          OR end BETWEEN '2018-12-24' AND '2018-12-24'
          Connection ID (thread ID): 8
          Status: NOT_KILLED

          Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=on,mrr_sort_keys=on,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on

          The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
          information that should help you find out what is causing the crash.
          2018-10-09 13:15:47 28 [ERROR] mysqld.exe: Out of memory (Needed 67104792 bytes)
          alice Alice Sherepa made changes -
          Labels need_feedback
          sstamm Sebastian Stamm made changes -
          Attachment mysqld.dmp [ 46582 ]
          elenst Elena Stepanova made changes -
          Labels need_feedback
          elenst Elena Stepanova made changes -
          Labels need_feedback
          sstamm Sebastian Stamm made changes -
          Affects Version/s 10.3.11 [ 23141 ]
          elenst Elena Stepanova made changes -
          Labels need_feedback
          elenst Elena Stepanova made changes -
          Component/s Optimizer [ 10200 ]
          Assignee Alice Sherepa [ alice ]
          Labels need_verification
          alice Alice Sherepa made changes -
          Labels need_verification need_feedback need_verification
          elenst Elena Stepanova made changes -
          Labels need_feedback need_verification need_verification
          alice Alice Sherepa made changes -
          Assignee Alice Sherepa [ alice ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 89999 ] MariaDB v4 [ 140969 ]
          serg Sergei Golubchik made changes -
          Description 181009 13:15:36 [ERROR] mysqld got exception 0xc0000005 ;
          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 https://mariadb.com/kb/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.3.10-MariaDB
          key_buffer_size=134217728
          read_buffer_size=67108864
          max_used_connections=9
          max_threads=65537
          thread_count=15
          It is possible that mysqld could use up to
          key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 266025 K bytes of memory
          Hope that's ok; if not, decrease some variables in the equation.

          Thread pointer: 0xd8581db018
          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...
          mysqld.exe!Field::eq()[field.h:886]
          mysqld.exe!Item_bool_func::get_mm_parts()[opt_range.cc:7861]
          mysqld.exe!Item_bool_func::get_ne_mm_tree()[opt_range.cc:7024]
          mysqld.exe!Item_func_ne::get_func_mm_tree()[item_cmpfunc.h:828]
          mysqld.exe!Item_bool_func::get_full_func_mm_tree()[opt_range.cc:7558]
          mysqld.exe!Item_bool_func::get_full_func_mm_tree_for_args()[item_cmpfunc.h:201]
          mysqld.exe!Item_bool_func2_with_rev::get_mm_tree()[item_cmpfunc.h:488]
          mysqld.exe!Item_cond_and::get_mm_tree()[opt_range.cc:7613]
          mysqld.exe!calculate_cond_selectivity_for_table()[opt_range.cc:3078]
          mysqld.exe!make_join_statistics()[sql_select.cc:4919]
          mysqld.exe!JOIN::optimize_inner()[sql_select.cc:1896]
          mysqld.exe!JOIN::optimize()[sql_select.cc:1450]
          mysqld.exe!mysql_select()[sql_select.cc:4220]
          mysqld.exe!handle_select()[sql_select.cc:370]
          mysqld.exe!execute_sqlcom_select()[sql_parse.cc:6547]
          mysqld.exe!mysql_execute_command()[sql_parse.cc:3769]
          mysqld.exe!mysql_parse()[sql_parse.cc:8096]
          mysqld.exe!dispatch_command()[sql_parse.cc:1852]
          mysqld.exe!do_command()[sql_parse.cc:1394]
          mysqld.exe!threadpool_process_request()[threadpool_common.cc:358]
          mysqld.exe!tp_callback()[threadpool_common.cc:186]
          ntdll.dll!RtlFreeUnicodeString()
          ntdll.dll!RtlFreeUnicodeString()
          KERNEL32.DLL!BaseThreadInitThunk()
          ntdll.dll!RtlUserThreadStart()

          Trying to get some variables.
          Some pointers may be invalid and cause the dump to abort.
          Query (0xc177cbc040): SELECT absenceId

          FROM absence

          JOIN employee USING(employeeid)

          WHERE name='...' AND absenceId <> -1

          AND start BETWEEN '2018-12-24' AND '2018-12-24'

          OR end BETWEEN '2018-12-24' AND '2018-12-24'
          Connection ID (thread ID): 8
          Status: NOT_KILLED

          Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=on,mrr_sort_keys=on,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on

          The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
          information that should help you find out what is causing the crash.
          2018-10-09 13:15:47 28 [ERROR] mysqld.exe: Out of memory (Needed 67104792 bytes)
          {noformat}181009 13:15:36 [ERROR] mysqld got exception 0xc0000005 ;
          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 https://mariadb.com/kb/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.3.10-MariaDB
          key_buffer_size=134217728
          read_buffer_size=67108864
          max_used_connections=9
          max_threads=65537
          thread_count=15
          It is possible that mysqld could use up to
          key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 266025 K bytes of memory
          Hope that's ok; if not, decrease some variables in the equation.

          Thread pointer: 0xd8581db018
          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...
          mysqld.exe!Field::eq()[field.h:886]
          mysqld.exe!Item_bool_func::get_mm_parts()[opt_range.cc:7861]
          mysqld.exe!Item_bool_func::get_ne_mm_tree()[opt_range.cc:7024]
          mysqld.exe!Item_func_ne::get_func_mm_tree()[item_cmpfunc.h:828]
          mysqld.exe!Item_bool_func::get_full_func_mm_tree()[opt_range.cc:7558]
          mysqld.exe!Item_bool_func::get_full_func_mm_tree_for_args()[item_cmpfunc.h:201]
          mysqld.exe!Item_bool_func2_with_rev::get_mm_tree()[item_cmpfunc.h:488]
          mysqld.exe!Item_cond_and::get_mm_tree()[opt_range.cc:7613]
          mysqld.exe!calculate_cond_selectivity_for_table()[opt_range.cc:3078]
          mysqld.exe!make_join_statistics()[sql_select.cc:4919]
          mysqld.exe!JOIN::optimize_inner()[sql_select.cc:1896]
          mysqld.exe!JOIN::optimize()[sql_select.cc:1450]
          mysqld.exe!mysql_select()[sql_select.cc:4220]
          mysqld.exe!handle_select()[sql_select.cc:370]
          mysqld.exe!execute_sqlcom_select()[sql_parse.cc:6547]
          mysqld.exe!mysql_execute_command()[sql_parse.cc:3769]
          mysqld.exe!mysql_parse()[sql_parse.cc:8096]
          mysqld.exe!dispatch_command()[sql_parse.cc:1852]
          mysqld.exe!do_command()[sql_parse.cc:1394]
          mysqld.exe!threadpool_process_request()[threadpool_common.cc:358]
          mysqld.exe!tp_callback()[threadpool_common.cc:186]
          ntdll.dll!RtlFreeUnicodeString()
          ntdll.dll!RtlFreeUnicodeString()
          KERNEL32.DLL!BaseThreadInitThunk()
          ntdll.dll!RtlUserThreadStart()

          Trying to get some variables.
          Some pointers may be invalid and cause the dump to abort.
          Query (0xc177cbc040): SELECT absenceId

          FROM absence

          JOIN employee USING(employeeid)

          WHERE name='...' AND absenceId <> -1

          AND start BETWEEN '2018-12-24' AND '2018-12-24'

          OR end BETWEEN '2018-12-24' AND '2018-12-24'
          Connection ID (thread ID): 8
          Status: NOT_KILLED

          Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=on,mrr_sort_keys=on,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on

          The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
          information that should help you find out what is causing the crash.
          2018-10-09 13:15:47 28 [ERROR] mysqld.exe: Out of memory (Needed 67104792 bytes){noformat}

          People

            Unassigned Unassigned
            sstamm Sebastian Stamm
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.