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

Assertion `trx->state == TRX_STATE_ACTIVE || trx->state == TRX_STATE_PREPARED' failed in ReadView::copy_trx_ids, innodb.xa_debug, innodb.innodb fail in buildbot

    XMLWordPrintable

Details

    Description

      http://buildbot.askmonty.org/buildbot/builders/kvm-asan/builds/1149

      10.2 ce195987c

      2019-05-03 16:15:41 140540140169472 [Note] InnoDB: Transaction contains changes to 1 rows
      2019-05-03 16:15:41 140540140169472 [Note] InnoDB: 8 transactions in prepared state after recovery
      2019-05-03 16:15:41 140540140169472 [Note] Found 8 prepared transaction(s) in InnoDB
      mysqld: /home/buildbot/buildbot/build/mariadb-10.2.24/storage/innobase/read/read0read.cc:433: void ReadView::copy_trx_ids(const trx_ids_t&): Assertion `trx->state == TRX_STATE_ACTIVE || trx->state == TRX_STATE_PREPARED' failed.
      190503 16:15:41 [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.2.24-MariaDB-debug-log
      key_buffer_size=1048576
      read_buffer_size=131072
      max_used_connections=0
      max_threads=153
      thread_count=5
      It is possible that mysqld could use up to 
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 63102 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x62a00002a208
      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 = 0x7fd1f866ebe0 thread_stack 0x5b000
      /usr/lib/x86_64-linux-gnu/libasan.so.2(+0x4a077)[0x7fd20c173077]
      /home/buildbot/buildbot/build/mariadb-10.2.24/sql/mysqld(my_print_stacktrace+0xab)[0x56315a4b4133]
      mysys/stacktrace.c:267(my_print_stacktrace)[0x5631594af3dc]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7fd20a9ed390]
      /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7fd209da7428]
      /lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7fd209da902a]
      /lib/x86_64-linux-gnu/libc.so.6(+0x2dbd7)[0x7fd209d9fbd7]
      /lib/x86_64-linux-gnu/libc.so.6(+0x2dc82)[0x7fd209d9fc82]
      read/read0read.cc:428(ReadView::copy_trx_ids(std::vector<unsigned long, ut_allocator<unsigned long, true> > const&))[0x563159df9c99]
      read/read0read.cc:454(ReadView::prepare(unsigned long))[0x563159df9ed9]
      read/read0read.cc:695(MVCC::clone_oldest_view(ReadView*))[0x563159df8b80]
      trx/trx0purge.cc:1695(trx_purge(unsigned long, unsigned long, bool))[0x563159fa0197]
      srv/srv0srv.cc:2708(srv_do_purge(unsigned long*))[0x563159f4be90]
      srv/srv0srv.cc:2850(srv_purge_coordinator_thread)[0x563159f4cc19]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7fd20a9e36ba]
      /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7fd209e7882d]
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x0): 
      Connection ID (thread ID): 2
      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=off,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=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.
      Writing a core file...
      Working directory at /dev/shm/var/4/mysqld.1/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                    0                    bytes     
      Max resident set          unlimited            unlimited            bytes     
      Max processes             23715                23715                processes 
      Max open files            1024                 1024                 files     
      Max locked memory         65536                65536                bytes     
      Max address space         unlimited            unlimited            bytes     
      Max file locks            unlimited            unlimited            locks     
      Max pending signals       23715                23715                signals   
      Max msgqueue size         819200               819200               bytes     
      Max nice priority         0                    0                    
      Max realtime priority     0                    0                    
      Max realtime timeout      unlimited            unlimited            us        
      

      Attachments

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              elenst Elena Stepanova
              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.