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

Assertion `inited==NONE || (inited==RND && scan)' failed in handler::ha_rnd_init

    XMLWordPrintable

Details

    Description

      CREATE TABLE t1 (b1 text NOT NULL);
      INSERT INTO t1 VALUES  ('2'),('1');
       
      SELECT DISTINCT MIN(b1) OVER () FROM t1;
       

       10.2 a12b8ac8e9636f8258bcb17a0845b9317d870fd9
       /git/10.2/sql/handler.h:2838: int handler::ha_rnd_init(bool): Assertion `inited==NONE || (inited==RND && scan)' failed.
      181112 13:10:13 [ERROR] mysqld got signal 6 ;
       
      #4  0x00007f4413df1428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
      #5  0x00007f4413df302a in __GI_abort () at abort.c:89
      #6  0x00007f4413de9bd7 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x559fc3ca6828 "inited==NONE || (inited==RND && scan)", file=file@entry=0x559fc3ca67b0 " /git/10.2/sql/handler.h", line=line@entry=2838, function=function@entry=0x559fc3caa890 <handler::ha_rnd_init(bool)::__PRETTY_FUNCTION__> "int handler::ha_rnd_init(bool)") at assert.c:92
      #7  0x00007f4413de9c82 in __GI___assert_fail (assertion=0x559fc3ca6828 "inited==NONE || (inited==RND && scan)", file=0x559fc3ca67b0 " /git/10.2/sql/handler.h", line=2838, function=0x559fc3caa890 <handler::ha_rnd_init(bool)::__PRETTY_FUNCTION__> "int handler::ha_rnd_init(bool)") at assert.c:101
      #8  0x0000559fc319445d in handler::ha_rnd_init (this=0x7f43b8137aa8, scan=false) at /git/10.2/sql/handler.h:2838
      #9  0x0000559fc348d451 in handler::ha_rnd_init_with_error (this=0x7f43b8137aa8, scan=false) at /git/10.2/sql/handler.cc:2787
      #10 0x0000559fc35f7a56 in init_read_record (info=0x7f43b8014a98, thd=0x7f43b8000b00, table=0x7f43b8136658, select=0x0, filesort=0x7f43b808bbf0, use_record_cache=1, print_error=true, disable_rr_cache=false) at /git/10.2/sql/records.cc:275
      #11 0x0000559fc3281bd8 in join_init_read_record (tab=0x7f43b80149d0) at /git/10.2/sql/sql_select.cc:19681
      #12 0x0000559fc32943f3 in AGGR_OP::end_send (this=0x7f43b8015680) at /git/10.2/sql/sql_select.cc:26680
      #13 0x0000559fc327f4f7 in sub_select_postjoin_aggr (join=0x7f43b8013038, join_tab=0x7f43b80149d0, end_of_records=true) at /git/10.2/sql/sql_select.cc:18477
      #14 0x0000559fc327f81b in sub_select (join=0x7f43b8013038, join_tab=0x7f43b8014620, end_of_records=true) at /git/10.2/sql/sql_select.cc:18713
      #15 0x0000559fc327f033 in do_select (join=0x7f43b8013038, procedure=0x0) at /git/10.2/sql/sql_select.cc:18308
      #16 0x0000559fc3259a59 in JOIN::exec_inner (this=0x7f43b8013038) at /git/10.2/sql/sql_select.cc:3621
      #17 0x0000559fc3258f08 in JOIN::exec (this=0x7f43b8013038) at /git/10.2/sql/sql_select.cc:3416
      #18 0x0000559fc325a0ca in mysql_select (thd=0x7f43b8000b00, tables=0x7f43b8012928, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748609, result=0x7f43b8013018, unit=0x7f43b80046e0, select_lex=0x7f43b8004e18) at /git/10.2/sql/sql_select.cc:3816
      #19 0x0000559fc324e388 in handle_select (thd=0x7f43b8000b00, lex=0x7f43b8004618, result=0x7f43b8013018, setup_tables_done_option=0) at /git/10.2/sql/sql_select.cc:376
      #20 0x0000559fc32199dd in execute_sqlcom_select (thd=0x7f43b8000b00, all_tables=0x7f43b8012928) at /git/10.2/sql/sql_parse.cc:6478
      #21 0x0000559fc320f659 in mysql_execute_command (thd=0x7f43b8000b00) at /git/10.2/sql/sql_parse.cc:3484
      #22 0x0000559fc321d869 in mysql_parse (thd=0x7f43b8000b00, rawbuf=0x7f43b8012448 "SELECT DISTINCT MIN(b1) OVER () FROM t1", length=39, parser_state=0x7f440c407080, is_com_multi=false, is_next_command=false) at /git/10.2/sql/sql_parse.cc:8012
      #23 0x0000559fc320aeca in dispatch_command (command=COM_QUERY, thd=0x7f43b8000b00, packet=0x7f43b8096121 "", packet_length=39, is_com_multi=false, is_next_command=false) at /git/10.2/sql/sql_parse.cc:1824
      #24 0x0000559fc3209826 in do_command (thd=0x7f43b8000b00) at /git/10.2/sql/sql_parse.cc:1378
      #25 0x0000559fc335b8d6 in do_handle_one_connection (connect=0x559fc5e27cc0) at /git/10.2/sql/sql_connect.cc:1335
      #26 0x0000559fc335b656 in handle_one_connection (arg=0x559fc5e27cc0) at /git/10.2/sql/sql_connect.cc:1241
      #27 0x0000559fc3b8a56a in pfs_spawn_thread (arg=0x559fc5d73360) at /git/10.2/storage/perfschema/pfs.cc:1862
      #28 0x00007f4414a2e6ba in start_thread (arg=0x7f440c408700) at pthread_create.c:333
      #29 0x00007f4413ec341d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
      

      Attachments

        Issue Links

          Activity

            People

              varun Varun Gupta (Inactive)
              alice Alice Sherepa
              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.