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

Server crashes in ARRAY::AddValue upon query from Connect table

    XMLWordPrintable

Details

    Description

      INSTALL SONAME 'ha_connect';
       
      CREATE TABLE t (f char(16)) ENGINE=Connect TABLE_TYPE=DOS CHARACTER SET utf16;
      INSERT INTO t VALUES ('foo'),('bar');
      SELECT * FROM t WHERE f IN ('baz','qux');
       
      # Cleanup
      DROP TABLE t;
      UNINSTALL SONAME 'ha_connect';
      

      10.4 87a5d16911bb94d383480fdd49e20876ed1400f2

      #3  <signal handler called>
      #4  0x00007f60ecf46d7f in ARRAY::AddValue (this=0x7f60e2bfdd48, g=0x6250000fa100, strp=0x7f60e2bfdd40 "") at /data/bld/10.4-asan/storage/connect/array.cpp:293
      #5  0x00007f60ecf46074 in MakeValueArray (g=0x6250000fa100, pp=0x7f60e2bfdd08) at /data/bld/10.4-asan/storage/connect/array.cpp:111
      #6  0x00007f60ecf95657 in MakeFilter (g=0x6250000fa100, colp=0x7f60ee008b40, pop=0x7f60e2bfdc38, pfirst=0x7f60e2bfdd08, neg=false) at /data/bld/10.4-asan/storage/connect/filter.cpp:115
      #7  0x00007f60ecf11183 in ha_connect::CondFilter (this=0x61d0002012a8, g=0x6250000fa100, cond=0x62b000063368) at /data/bld/10.4-asan/storage/connect/ha_connect.cc:2889
      #8  0x00007f60ecf1503a in ha_connect::cond_push (this=0x61d0002012a8, cond=0x62b000063368) at /data/bld/10.4-asan/storage/connect/ha_connect.cc:3371
      #9  0x000055cf4eafc818 in make_join_select (join=0x62b000063e80, select=0x62b0000667d0, cond=0x62b000063368) at /data/bld/10.4-asan/sql/sql_select.cc:11884
      #10 0x000055cf4eab259e in JOIN::optimize_stage2 (this=0x62b000063e80) at /data/bld/10.4-asan/sql/sql_select.cc:2664
      #11 0x000055cf4eaaf7d3 in JOIN::optimize_inner (this=0x62b000063e80) at /data/bld/10.4-asan/sql/sql_select.cc:2414
      #12 0x000055cf4eaa8471 in JOIN::optimize (this=0x62b000063e80) at /data/bld/10.4-asan/sql/sql_select.cc:1731
      #13 0x000055cf4eac933d in mysql_select (thd=0x62b00005b208, tables=0x62b000062948, wild_num=1, fields=..., conds=0x62b000063368, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x62b000063e50, unit=0x62b00005f130, select_lex=0x62b0000622e8) at /data/bld/10.4-asan/sql/sql_select.cc:4832
      #14 0x000055cf4ea99e11 in handle_select (thd=0x62b00005b208, lex=0x62b00005f070, result=0x62b000063e50, setup_tables_done_option=0) at /data/bld/10.4-asan/sql/sql_select.cc:442
      #15 0x000055cf4ea04704 in execute_sqlcom_select (thd=0x62b00005b208, all_tables=0x62b000062948) at /data/bld/10.4-asan/sql/sql_parse.cc:6523
      #16 0x000055cf4e9f1aca in mysql_execute_command (thd=0x62b00005b208) at /data/bld/10.4-asan/sql/sql_parse.cc:3980
      #17 0x000055cf4ea0d9f3 in mysql_parse (thd=0x62b00005b208, rawbuf=0x62b000062228 "SELECT * FROM t WHERE f IN ('baz','qux')", length=40, parser_state=0x7f60ee00bc60, is_com_multi=false, is_next_command=false) at /data/bld/10.4-asan/sql/sql_parse.cc:8062
      #18 0x000055cf4e9e3a4e in dispatch_command (command=COM_QUERY, thd=0x62b00005b208, packet=0x62900021c209 "SELECT * FROM t WHERE f IN ('baz','qux')", packet_length=40, is_com_multi=false, is_next_command=false) at /data/bld/10.4-asan/sql/sql_parse.cc:1857
      #19 0x000055cf4e9e05bd in do_command (thd=0x62b00005b208) at /data/bld/10.4-asan/sql/sql_parse.cc:1378
      #20 0x000055cf4ede7135 in do_handle_one_connection (connect=0x6080000009a8) at /data/bld/10.4-asan/sql/sql_connect.cc:1419
      #21 0x000055cf4ede6a4c in handle_one_connection (arg=0x6080000009a8) at /data/bld/10.4-asan/sql/sql_connect.cc:1323
      #22 0x000055cf4fa4b992 in pfs_spawn_thread (arg=0x615000003508) at /data/bld/10.4-asan/storage/perfschema/pfs.cc:1869
      #23 0x00007f60f70a8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #24 0x00007f60f712861c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
      

      Attachments

        Activity

          People

            TheLinuxJedi Andrew Hutchings
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.