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

Crash in "mysqld" when importing data - 0xc0000005

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.6.0
    • None
    • None
    • None
    • Happens also with MariaDB 10.5.x, x86 installation on x86 Windows 10 Pro. Database size is around 5.5 GB. 4 GB of RAM.

    Description

      Below output of "mysqld". I was running "source mydata.sql" on the other machine and when command completed I entered "quit" command in "mysql.exe" and then "mysqld" immediately crashed.

      Crashes with basically same error output occured also randomly with same dataset when someone ran any query against the DB.

      Any help appreciated.

      PS C:\Program Files\MariaDB 10.6\bin> .\mysqld --console
      2021-05-10  9:15:56 0 [Note] C:\Program Files\MariaDB 10.6\bin\mysqld.exe (mysqld 10.6.0-MariaDB) starting as process 44
      084 ...
      2021-05-10  9:15:56 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
      2021-05-10  9:15:56 0 [Note] InnoDB: Number of pools: 1
      2021-05-10  9:15:56 0 [Note] InnoDB: Using SSE4.2 crc32 instructions
      2021-05-10  9:15:56 0 [Note] InnoDB: Initializing buffer pool, total size = 536870912, chunk size = 134217728
      2021-05-10  9:15:56 0 [Note] InnoDB: Completed initialization of buffer pool
      2021-05-10  9:15:56 0 [Note] InnoDB: 128 rollback segments are active.
      2021-05-10  9:15:57 0 [Note] InnoDB: Creating shared tablespace for temporary tables
      2021-05-10  9:15:57 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wai
      t ...
      2021-05-10  9:15:57 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
      2021-05-10  9:15:57 0 [Note] InnoDB: 10.6.0 started; log sequence number 153170; transaction id 112
      2021-05-10  9:15:57 0 [Note] Plugin 'FEEDBACK' is disabled.
      2021-05-10  9:15:57 0 [Note] InnoDB: Loading buffer pool(s) from C:\Program Files\MariaDB 10.6\data\ib_buffer_pool
      2021-05-10  9:15:57 0 [Note] Server socket created on IP: '::'.
      2021-05-10  9:15:57 0 [Note] Server socket created on IP: '0.0.0.0'.
      2021-05-10  9:15:57 0 [Note] InnoDB: Buffer pool(s) load completed at 210510  9:15:57
      2021-05-10  9:15:57 0 [Note] Reading of all Master_info entries succeeded
      2021-05-10  9:15:57 0 [Note] Added new Master_info '' to hash table
      2021-05-10  9:15:57 0 [Note] C:\Program Files\MariaDB 10.6\bin\mysqld.exe: ready for connections.
      Version: '10.6.0-MariaDB'  socket: ''  port: 3306  mariadb.org binary distribution
      2021-05-10  9:23:15 6 [ERROR] InnoDB: Space id and page no stored in the page, read in are [page id: space=8, page numbe
      r=128], should be [page id: space=8, page number=262272]
      210510  9:23:15 [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.6.0-MariaDB
      key_buffer_size=134217728
      read_buffer_size=131072
      max_used_connections=2
      max_threads=65537
      thread_count=2
      It is possible that mysqld could use up to
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 135636 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x360c39f8
      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...
      server.dll!page_cur_search_with_match()[page0cur.cc:390]
      server.dll!btr_cur_search_to_nth_level_func()[btr0cur.cc:1983]
      server.dll!Row_sel_get_clust_rec_for_mysql::operator()()[row0sel.cc:3283]
      server.dll!row_search_mvcc()[row0sel.cc:5388]
      server.dll!ha_innobase::index_read()[ha_innodb.cc:8616]
      server.dll!handler::index_read_map()[handler.h:3857]
      server.dll!handler::ha_index_read_map()[handler.cc:3125]
      server.dll!join_read_always_key()[sql_select.cc:21606]
      server.dll!sub_select()[sql_select.cc:20842]
      server.dll!evaluate_join_record()[sql_select.cc:21069]
      server.dll!sub_select()[sql_select.cc:20884]
      server.dll!do_select()[sql_select.cc:20392]
      server.dll!JOIN::exec_inner()[sql_select.cc:4598]
      server.dll!JOIN::exec()[sql_select.cc:4379]
      server.dll!mysql_select()[sql_select.cc:4856]
      server.dll!handle_select()[sql_select.cc:446]
      server.dll!execute_sqlcom_select()[sql_parse.cc:6244]
      server.dll!mysql_execute_command()[sql_parse.cc:3940]
      server.dll!mysql_parse()[sql_parse.cc:8018]
      server.dll!dispatch_command()[sql_parse.cc:1897]
      server.dll!do_command()[sql_parse.cc:1406]
      server.dll!threadpool_process_request()[threadpool_common.cc:394]
      server.dll!tp_callback()[threadpool_common.cc:203]
      server.dll!io_completion_callback()[threadpool_win.cc:299]
      KERNEL32.DLL!FlsSetValue()
      ntdll.dll!TpWaitForWait()
      ntdll.dll!TpCallbackIndependent()
      KERNEL32.DLL!BaseThreadInitThunk()
      ntdll.dll!RtlExpandEnvironmentStrings_U()
      ntdll.dll!RtlExpandEnvironmentStrings_U()
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x35dae560): SELECT MAX(IdRadek) FROM dokumentace_Soubory s JOIN dokumentace_Navstevy n ON n.IdPacienta = '909808
      640' AND s.TypObsahu = 1 AND s.IdNavstevy = n.IdNavstevy
      Connection ID (thread ID): 6
      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,fi
      rstmatch=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=off,mrr_sort_keys=off,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,exten
      ded_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on,condition
      _pushdown_for_subquery=on,rowid_filter=on,condition_pushdown_from_having=on,not_null_range_scan=off
       
      The manual page at https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mysqld/ contains
      information that should help you find out what is causing the crash.
      Writing a core file at C:\Program Files\MariaDB 10.6\data\
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            martinrotter Martin Rotter
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.