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

Packed keys: connect.mysql_index crashes in BB on 32-bit box

    XMLWordPrintable

Details

    Description

      The crash is here:

      http://buildbot.askmonty.org/buildbot/builders/kvm-bintar-quantal-x86/builds/21308/steps/mtr/logs/stdio

      It's reproducible in the buildbot VM:

      #1  0xb738daa2 in pthread_kill () from /lib/i386-linux-gnu/libpthread.so.0
      #2  0xb80ff4a7 in my_write_core (sig=11) at /home/buildbot/10.5/mysys/stacktrace.c:518
      #3  0xb7ab4b76 in handle_fatal_signal (sig=11) at /home/buildbot/10.5/sql/signal_handler.cc:343
      #4  <signal handler called>
      #5  read_addon_length (p=0x10b9850 <Address 0x10b9850 out of bounds>) at /home/buildbot/10.5/sql/sql_sort.h:223
      #6  get_addon_length (plen=0x10b9850 <Address 0x10b9850 out of bounds>, this=0xb11fdeb0) at /home/buildbot/10.5/sql/sql_sort.h:431
      #7  get_result_length (plen=0x10b9850 <Address 0x10b9850 out of bounds>, this=0xb11fdeb0) at /home/buildbot/10.5/sql/sql_sort.h:425
      #8  read_to_buffer (fromfile=fromfile@entry=0xb11fdf14, buffpek=buffpek@entry=0xb1057e4c, param=param@entry=0xb11fdeb0) at /home/buildbot/10.5/sql/filesort.cc:1742
      #9  0xb7ab15a1 in merge_buffers (param=param@entry=0xb11fdeb0, from_file=from_file@entry=0xb11fdf14, to_file=to_file@entry=0xb11fdd10, sort_buffer=..., lastbuff=lastbuff@entry=0xb1057c10, Fb=Fb@entry=0xb1057e20, Tb=Tb@entry=0xb1057f28, flag=flag@entry=0) at /home/buildbot/10.5/sql/filesort.cc:1882
      #10 0xb7ab1fd9 in merge_many_buff (param=param@entry=0xb11fdeb0, sort_buffer=..., buffpek=buffpek@entry=0xb1057bb8, maxbuffer=maxbuffer@entry=0xb11fde78, t_file=t_file@entry=0xb11fdf14) at /home/buildbot/10.5/sql/filesort.cc:1664
      #11 0xb7ab3da4 in filesort (thd=0xb1000508, table=0xb103e920, filesort=0xb100faf0, tracker=0xb100ff90, join=0xb100e7d0, first_table_bit=1) at /home/buildbot/10.5/sql/filesort.cc:383
      #12 0xb78d671d in create_sort_index (thd=0xb1000508, join=0xb100e7d0, tab=tab@entry=0xb100f480, fsort=0xb100faf0, fsort@entry=0x0) at /home/buildbot/10.5/sql/sql_select.cc:23696
      #13 0xb78d6ade in st_join_table::sort_table (this=this@entry=0xb100f480) at /home/buildbot/10.5/sql/sql_select.cc:21435
      #14 0xb78d6b7a in join_init_read_record (tab=0xb100f480) at /home/buildbot/10.5/sql/sql_select.cc:21374
      #15 0xb78c78c6 in sub_select (join=0xb100e7d0, join_tab=0xb100f480, end_of_records=false) at /home/buildbot/10.5/sql/sql_select.cc:20451
      #16 0xb78eb3d6 in do_select (procedure=<optimized out>, join=0xb100e7d0) at /home/buildbot/10.5/sql/sql_select.cc:19992
      #17 JOIN::exec_inner (this=this@entry=0xb100e7d0) at /home/buildbot/10.5/sql/sql_select.cc:4457
      #18 0xb78eb699 in JOIN::exec (this=0xb100e7d0) at /home/buildbot/10.5/sql/sql_select.cc:4238
      #19 0xb78e97dd in mysql_select (thd=thd@entry=0xb1000508, tables=0xb100dac8, fields=..., conds=0x0, og_num=2, order=0xb100e5c8, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=result@entry=0xb100e7b8, unit=unit@entry=0xb1002bd0, select_lex=select_lex@entry=0xb100d5a0) at /home/buildbot/10.5/sql/sql_select.cc:4662
      #20 0xb78ea3ba in handle_select (thd=0xb1000508, lex=0xb1002b60, result=0xb100e7b8, setup_tables_done_option=0) at /home/buildbot/10.5/sql/sql_select.cc:428
      #21 0xb7741bbf in execute_sqlcom_select (thd=thd@entry=0xb1000508, all_tables=0xb100dac8) at /home/buildbot/10.5/sql/sql_parse.cc:6138
      #22 0xb788cfe7 in mysql_execute_command (thd=thd@entry=0xb1000508) at /home/buildbot/10.5/sql/sql_parse.cc:3904
      #23 0xb789056b in mysql_parse (thd=thd@entry=0xb1000508, rawbuf=0xb100d4c8 "SELECT matricule, nom, prenom FROM t2 ORDER BY nom,prenom LIMIT 10", length=66, parser_state=0xb11feb6c, is_com_multi=false, is_next_command=false) at /home/buildbot/10.5/sql/sql_parse.cc:7918
      

      Attachments

        1. bug.sql
          15 kB
          Roel Van de Paar

        Issue Links

          Activity

            People

              varun Varun Gupta (Inactive)
              psergei Sergei Petrunia
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.