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

CONNECT: Server crashes in DOSFAM::Rewind on SELECT from an empty table with index

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 10.0.2
    • Fix Version/s: 10.0.4
    • Component/s: None
    • Labels:

      Description

      CREATE TABLE t1 (a INT NOT NULL, INDEX (a)) ENGINE=CONNECT;
      SELECT * FROM t1 WHERE a > 1;
      
      #2  0x00000000007fa5b6 in handle_fatal_signal (sig=11) at 10.0/sql/signal_handler.cc:262
      #3  <signal handler called>
      #4  __GI_rewind (fp=0x0) at rewind.c:36
      #5  0x0000000000b7906d in DOSFAM::Rewind (this=0x7f35fffff260) at 10.0/storage/connect/filamtxt.cpp:979
      #6  0x0000000000b89fdb in TDBDOS::OpenDB (this=0x7f35fffff320, g=0x7f360401f620) at 10.0/storage/connect/tabdos.cpp:730
      #7  0x0000000000b629c7 in CntRewindTable (g=0x7f360401f620, tdbp=0x7f35fffff320) at 10.0/storage/connect/connect.cc:373
      #8  0x0000000000b5d0f0 in ha_connect::rnd_init (this=0x7f360401f0d0, scan=true) at 10.0/storage/connect/ha_connect.cc:2365
      #9  0x00000000005b6f4d in handler::ha_rnd_init (this=0x7f360401f0d0, scan=true) at 10.0/sql/handler.h:2085
      #10 0x0000000000800a53 in handler::ha_rnd_init_with_error (this=0x7f360401f0d0, scan=true) at 10.0/sql/handler.cc:2584
      #11 0x000000000092c0cb in init_read_record (info=0x7f3604023680, thd=0x2951ad8, table=0x7f360401e718, select=0x7f3604023be0, use_record_cache=1, print_error=true, disable_rr_cache=false) at 10.0/sql/records.cc:276
      #12 0x000000000067ec52 in join_init_read_record (tab=0x7f36040235d0) at 10.0/sql/sql_select.cc:17633
      #13 0x000000000067cce0 in sub_select (join=0x7f3604021ef0, join_tab=0x7f36040235d0, end_of_records=false) at 10.0/sql/sql_select.cc:16748
      #14 0x000000000067c5fb in do_select (join=0x7f3604021ef0, fields=0x2954ed0, table=0x0, procedure=0x0) at 10.0/sql/sql_select.cc:16421
      #15 0x000000000065b5b8 in JOIN::exec_inner (this=0x7f3604021ef0) at 10.0/sql/sql_select.cc:3001
      #16 0x0000000000658825 in JOIN::exec (this=0x7f3604021ef0) at 10.0/sql/sql_select.cc:2291
      #17 0x000000000065be5c in mysql_select (thd=0x2951ad8, rref_pointer_array=0x2955068, tables=0x7f3604046b40, wild_num=1, fields=..., conds=0x7f36040099d0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f3604009930, unit=0x29546c0, select_lex=0x2954db8) at 10.0/sql/sql_select.cc:3229
      #18 0x000000000065257f in handle_select (thd=0x2951ad8, lex=0x2954608, result=0x7f3604009930, setup_tables_done_option=0) at 10.0/sql/sql_select.cc:371
      #19 0x0000000000627707 in execute_sqlcom_select (thd=0x2951ad8, all_tables=0x7f3604046b40) at 10.0/sql/sql_parse.cc:5021
      #20 0x000000000061fd29 in mysql_execute_command (thd=0x2951ad8) at 10.0/sql/sql_parse.cc:2482
      #21 0x0000000000629fc6 in mysql_parse (thd=0x2951ad8, rawbuf=0x7f360413c1a0 "SELECT * FROM t1 WHERE a > 1", length=28, parser_state=0x7f3610712500) at 10.0/sql/sql_parse.cc:6154
      #22 0x000000000061cf0e in dispatch_command (command=COM_QUERY, thd=0x2951ad8, packet=0x2955ea9 "", packet_length=28) at 10.0/sql/sql_parse.cc:1274
      #23 0x000000000061c384 in do_command (thd=0x2951ad8) at 10.0/sql/sql_parse.cc:983
      #24 0x0000000000736cc5 in do_handle_one_connection (thd_arg=0x2951ad8) at 10.0/sql/sql_connect.cc:1267
      #25 0x0000000000736a18 in handle_one_connection (arg=0x2951ad8) at 10.0/sql/sql_connect.cc:1181
      #26 0x00000000009c9893 in pfs_spawn_thread (arg=0x27c6848) at 10.0/storage/perfschema/pfs.cc:1800
      #27 0x00007f3622185e9a in start_thread (arg=0x7f3610713700) at pthread_create.c:308
      #28 0x00007f3621263cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
      

      bzr version-info

      revision-id: knielsen@knielsen-hq.org-20130429100354-0kujsw18axni9syq
      revno: 3748
      branch-nick: 10.0
      

        Gliffy Diagrams

          Attachments

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                bertrandop Olivier Bertrand
                Reporter:
                elenst Elena Stepanova
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: