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

[Draft] Assertion `n < m_size' failed in Element_type& Bounds_checked_array<Element_type>::operator[](size_t) [with Element_type = unsigned char*; size_t = long unsigned int]

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Cannot Reproduce
    • 10.2(EOL)
    • N/A
    • Server
    • None

    Description

      https://travis-ci.org/elenst/travis-tests/jobs/415992286

      10.2 964ad0c426926034933eb759d34de7379dbf4aed

      mysqld: /home/travis/src/sql/sql_array.h:64: Element_type& Bounds_checked_array<Element_type>::operator[](size_t) [with Element_type = unsigned char*; size_t = long unsigned int]: Assertion `n < m_size' failed.
      180814 17:56:01 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007f78257bcca2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #8  0x000055b34ede02e9 in Bounds_checked_array<unsigned char*>::operator[] (this=0x7f7818671c80, n=0) at /home/travis/src/sql/sql_array.h:64
      #9  0x000055b34eddfe0d in Filesort_buffer::get_record_buffer (this=0x7f7818671c80, idx=0) at /home/travis/src/sql/filesort_utils.h:87
      #10 0x000055b34eddffb2 in SORT_INFO::get_record_buffer (this=0x7f7818671c80, idx=0) at /home/travis/src/sql/filesort.h:138
      #11 0x000055b34eddc90c in find_all_keys (thd=0x7f7818031010, param=0x7f781c6ec960, select=0x0, fs_info=0x7f7818671c80, buffpek_pointers=0x7f781c6ecb60, tempfile=0x7f781c6ec9f0, pq=0x0, found_rows=0x7f7818671e60) at /home/travis/src/sql/filesort.cc:862
      #12 0x000055b34eddabfa in filesort (thd=0x7f7818031010, table=0x7f7818712440, filesort=0x7f781c6ece00, tracker=0x7f7818044440, join=0x0, first_table_bit=0) at /home/travis/src/sql/filesort.cc:279
      #13 0x000055b34ef7eb36 in mysql_delete (thd=0x7f7818031010, table_list=0x7f781803ece8, conds=0x0, order_list=0x7f7818035580, limit=3, options=549755813888, result=0x7f781803fc10) at /home/travis/src/sql/sql_delete.cc:503
      #14 0x000055b34eb6993c in mysql_execute_command (thd=0x7f7818031010) at /home/travis/src/sql/sql_parse.cc:4633
      #15 0x000055b34eb7414e in mysql_parse (thd=0x7f7818031010, rawbuf=0x7f781803e978 "/* GenTest::Transform::ExecuteAsDeleteReturning */ DELETE LOW_PRIORITY FROM `view_table0_key_pk_parts_2_int_autoinc` ORDER BY `col_char_12`,`col_char_12_key`,`col_int`,`col_int_key`,`pk` LIMIT 3 /* QN"..., length=259, parser_state=0x7f781c6ee210, is_com_multi=false, is_next_command=false) at /home/travis/src/sql/sql_parse.cc:8009
      #16 0x000055b34eb61be7 in dispatch_command (command=COM_QUERY, thd=0x7f7818031010, packet=0x7f7818036841 "/* GenTest::Transform::ExecuteAsDeleteReturning */ DELETE LOW_PRIORITY FROM `view_table0_key_pk_parts_2_int_autoinc` ORDER BY `col_char_12`,`col_char_12_key`,`col_int`,`col_int_key`,`pk` LIMIT 3 /* QN"..., packet_length=260, is_com_multi=false, is_next_command=false) at /home/travis/src/sql/sql_parse.cc:1824
      #17 0x000055b34eb6054a in do_command (thd=0x7f7818031010) at /home/travis/src/sql/sql_parse.cc:1378
      #18 0x000055b34ecb2b78 in do_handle_one_connection (connect=0x55b352db76f0) at /home/travis/src/sql/sql_connect.cc:1335
      #19 0x000055b34ecb2905 in handle_one_connection (arg=0x55b352db76f0) at /home/travis/src/sql/sql_connect.cc:1241
      #20 0x00007f782637e184 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
      

      dev 539d817245163ef1be726695ffc5851e5879e959

      perl ./runall-new.pl --basedir=/home/travis/server --vardir=/home/travis/logs/vardir --duration=350 --threads=6 --seed=1534269041 --reporters=Backtrace,ErrorLog,Deadlock --validators=TransformerNoComparator --views --redefine=conf/mariadb/alter_table.yy --redefine=conf/mariadb/sp.yy --redefine=conf/mariadb/bulk_insert.yy --mysqld=--log_output=FILE --mysqld=--max-statement-time=30 --mysqld=--lock-wait-timeout=10 --mysqld=--loose-innodb-lock-wait-timeout=5 --mysqld=--loose-debug_assert_on_not_freed_memory=0 --mysqld=--default-storage-engine=MyISAM --grammar=conf/engines/engine_stress.yy --gendata=conf/engines/engine_stress.zz --transformers=ExecuteAsCTE,ExecuteAsExecuteImmediate,ExecuteAsDeleteReturning,ExecuteAsInsertSelect,ExecuteAsUnion,ExecuteAsUpdateDelete,ExecuteAsView,ExecuteAsPreparedTwice
      

      Not reproducible right away, mainly due to other bugs.

      Threads are attached. Datadir, coredump etc. are available on demand.

      Attachments

        1. threads_full
          128 kB
        2. threads
          50 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.