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

crash in MariaDB galera 10.5.9 lock0lock.cc

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.5.9
    • 10.5.10
    • Galera
    • None

    Description

      I'm assuming this is related to the other issues reported, but reporting anyways, because the stack trace looks a bit different.

      ```
      2021-04-13 12:49:38 1 [ERROR] InnoDB: Conflicting lock on table: `<<removed>>`.`<<table1>` index: PRIMARY that has lock
      RECORD LOCKS space id 798 page no 29630 n bits 112 index PRIMARY of table `<<removed>>`.`<<table1>>` trx id 198103329 lock_mode X locks rec but not gap
      Record lock, heap no 45 PHYSICAL RECORD: n_fields 8; compact format; info bits 0
      0: len 8; hex 000000000058a87e; asc X ~;;
      1: len 6; hex 00000bced121; asc !;;
      2: len 7; hex 4600000594126f; asc F o;;
      3: len 4; hex 80000335; asc 5;;
      4: len 8; hex 00000000005568a6; asc Uh ;;
      5: len 11; hex 424d5f5748415453415050; asc BM_WHATSAPP;;
      6: len 12; hex 2b3237373333343538363838; asc +;;
      7: len 1; hex 80; asc ;;

      2021-04-13 12:49:38 1 [ERROR] InnoDB: WSREP state:
      2021-04-13 12:49:38 1 [ERROR] WSREP: Thread BF trx_id: 198103331 thread: 1 seqno: 345076 client_state: exec client_mode: high priority transaction_mode: replaying applier: 1 toi: 0 local: 0 query: INSERT INTO Messages (`type`, `uuid`, `conversationId`, `sent`, `received`, `channelAccountId`, `channelUserId`, `status`, `url`, `text`, `urlContentType`) VALUES (<<removed>>)Awu`^S^A
      2021-04-13 12:49:38 1 [ERROR] WSREP: Thread BF trx_id: 198103329 thread: 21 seqno: 345075 client_state: exec client_mode: high priority transaction_mode: executing applier: 1 toi: 0 local: 0 query: INSERT INTO ProfileIdentifiers (`timestamp`, `label`, `value`, `type`, `uuid`, `profileId`, `originalValue`) VALUES (<<removed>>)Awu`^S^A
      2021-04-13 12:49:37 0x7f6c5795c700 InnoDB: Assertion failure in file /home/buildbot/buildbot/build/mariadb-10.5.9/storage/innobase/lock/lock0lock.cc line 674
      InnoDB: We intentionally generate a memory trap.
      InnoDB: Submit a detailed bug report to https://jira.mariadb.org/
      InnoDB: If you get repeated assertion failures or crashes, even
      InnoDB: immediately after the mysqld startup, there may be
      InnoDB: corruption in the InnoDB tablespace. Please refer to
      InnoDB: https://mariadb.com/kb/en/library/innodb-recovery-modes/
      InnoDB: about forcing recovery.
      210413 12:49:38 [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 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.5.9-MariaDB-1:10.5.9+maria~bionic-log
      key_buffer_size=134217728
      read_buffer_size=2097152
      max_used_connections=161
      max_threads=65537
      thread_count=135
      It is possible that mysqld could use up to
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 402892112 K bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.

      Thread pointer: 0x7f6b9c054ea8
      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 = 0x7f6c5795bcb8 thread_stack 0x49000
      /usr/sbin/mariadbd(my_print_stacktrace+0x2e)[0x55b723b6f1de]
      Printing to addr2line failed
      /usr/sbin/mariadbd(handle_fatal_signal+0x545)[0x55b72357b0d5]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0x12980)[0x7f72757be980]
      /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f7274acefb7]
      /lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f7274ad0921]
      /usr/sbin/mariadbd(+0x60592e)[0x55b72327b92e]
      /usr/sbin/mariadbd(+0xc48832)[0x55b7238be832]
      /usr/sbin/mariadbd(+0xc49924)[0x55b7238bf924]
      /usr/sbin/mariadbd(+0xc4f21f)[0x55b7238c521f]
      /usr/sbin/mariadbd(+0xcbe28e)[0x55b72393428e]
      /usr/sbin/mariadbd(+0xcbfa8a)[0x55b723935a8a]
      /usr/sbin/mariadbd(+0xcc0280)[0x55b723936280]
      /usr/sbin/mariadbd(+0xcc06a1)[0x55b7239366a1]
      /usr/sbin/mariadbd(+0xcd3b74)[0x55b723949b74]
      /usr/sbin/mariadbd(+0xc0c349)[0x55b723882349]
      /usr/sbin/mariadbd(_ZN7handler12ha_write_rowEPKh+0x1cf)[0x55b7235872df]
      /usr/sbin/mariadbd(_ZN14Rows_log_event9write_rowEP14rpl_group_infob+0x16f)[0x55b723686a2f]
      /usr/sbin/mariadbd(_ZN20Write_rows_log_event11do_exec_rowEP14rpl_group_info+0x7d)[0x55b723686fdd]
      /usr/sbin/mariadbd(_ZN14Rows_log_event14do_apply_eventEP14rpl_group_info+0x277)[0x55b72367bdc7]
      /usr/sbin/mariadbd(_Z18wsrep_apply_eventsP3THDP14Relay_log_infoPKvm+0x286)[0x55b72384a646]
      /usr/sbin/mariadbd(_ZN22Wsrep_replayer_service15apply_write_setERKN5wsrep7ws_metaERKNS0_12const_bufferERNS0_14mutable_bufferE+0xf3)[0x55b723830023]
      /usr/sbin/mariadbd(+0xf84b02)[0x55b723bfab02]
      /usr/sbin/mariadbd(_ZN5wsrep12server_state8on_applyERNS_21high_priority_serviceERKNS_9ws_handleERKNS_7ws_metaERKNS_12const_bufferE+0x155)[0x55b723bfb915]
      /usr/sbin/mariadbd(+0xf9a1c4)[0x55b723c101c4]
      /usr/lib/galera/libgalera_smm.so(+0x30fb5)[0x7f72732b3fb5]
      /usr/lib/galera/libgalera_smm.so(+0x4845c)[0x7f72732cb45c]
      /usr/lib/galera/libgalera_smm.so(+0x1fd75)[0x7f72732a2d75]
      /usr/sbin/mariadbd(_ZN5wsrep18wsrep_provider_v266replayERKNS_9ws_handleEPNS_21high_priority_serviceE+0x29)[0x55b723c10b29]
      /usr/sbin/mariadbd(_ZN20Wsrep_client_service6replayEv+0xf6)[0x55b72382fdc6]
      /usr/sbin/mariadbd(_ZN5wsrep11transaction6replayERSt11unique_lockINS_5mutexEE+0x96)[0x55b723c0a066]
      /usr/sbin/mariadbd(_ZN5wsrep11transaction15after_statementEv+0x1b4)[0x55b723c0bc74]
      /usr/sbin/mariadbd(_ZN5wsrep12client_state15after_statementEv+0xb9)[0x55b723bee8f9]
      /usr/sbin/mariadbd(+0x70f06c)[0x55b72338506c]
      /usr/sbin/mariadbd(_Z16dispatch_command19enum_server_commandP3THDPcjbb+0x2616)[0x55b72337b786]
      /usr/sbin/mariadbd(_Z10do_commandP3THD+0x11c)[0x55b723378b9c]
      /usr/sbin/mariadbd(_Z11tp_callbackP13TP_connection+0xdf)[0x55b72350381f]
      /usr/sbin/mariadbd(+0xa92030)[0x55b723708030]
      /usr/sbin/mariadbd(+0xb4645a)[0x55b7237bc45a]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0x76db)[0x7f72757b36db]
      /lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x7f7274bb171f]
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7f724d335dab): INSERT INTO Messages (`type`, `uuid`, `conversationId`, `sent`, `received`, `channelAccountId`, `channelUserId`, `status`, `url`, `text`, `urlContentType`) VALUES (<<removed>>)

      Connection ID (thread ID): 1
      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=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,extended_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...
      Working directory at /data/local/mysql/mysql-data
      Resource Limits:
      Limit Soft Limit Hard Limit Units
      Max cpu time unlimited unlimited seconds
      Max file size unlimited unlimited bytes
      Max data size unlimited unlimited bytes
      Max stack size 8388608 unlimited bytes
      Max core file size 0 unlimited bytes
      Max resident set unlimited unlimited bytes
      Max processes 128423 128423 processes
      Max open files 128000 128000 files
      Max locked memory 67108864 67108864 bytes
      Max address space unlimited unlimited bytes
      Max file locks unlimited unlimited locks
      Max pending signals 128423 128423 signals
      Max msgqueue size 819200 819200 bytes
      Max nice priority 0 0
      Max realtime priority 0 0
      Max realtime timeout unlimited unlimited us
      Core pattern: |/usr/share/apport/apport %p %s %c %d %P %E

      2021-04-13 12:49:52 0 [Note] WSREP: Loading provider /usr/lib/galera/libgalera_smm.so initial position: 59b8daaa-9ab3-11eb-8905-47409985deff:345074
      2021-04-13 12:49:52 0 [Note] WSREP: wsrep_load(): loading provider library '/usr/lib/galera/libgalera_smm.so'
      2021-04-13 12:49:52 0 [Note] WSREP: wsrep_load(): Galera 4.7(ree4f10fc) by Codership Oy <info@codership.com> loaded successfully.
      2021-04-13 12:49:52 0 [Note] WSREP: CRC-32C: using 64-bit x86 acceleration.
      2021-04-13 12:49:52 0 [Note] WSREP: Found saved state: 59b8daaa-9ab3-11eb-8905-47409985deff:-1, safe_to_bootstrap: 0
      2021-04-13 12:49:52 0 [Note] WSREP: GCache DEBUG: opened preamble:
      Version: 2
      UUID: 59b8daaa-9ab3-11eb-8905-47409985deff
      Seqno: -1 - -1
      Offset: -1
      Synced: 0
      ```

      Attachments

        Activity

          People

            jplindst Jan Lindström (Inactive)
            djhartman Derk-Jan Hartman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

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