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

Assertion `data' failed in crcr32_calc_pclmulqdq

    XMLWordPrintable

Details

    Description

      SELECT CRC32(ExtractValue('<a><b/></a>', '/a/b')) AS f;
      

      10.5 d25f806d

      mariadbd: /data/src/10.5/mysys/crc32/crc32_x86.c:222: crcr32_calc_pclmulqdq: Assertion `data' failed.
      200907  1:31:35 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007fd395b32f36 in __GI___assert_fail (assertion=0x562a51f1f600 "data", file=0x562a51f1f608 "/data/src/10.5/mysys/crc32/crc32_x86.c", line=222, function=0x562a51f1f670 <__PRETTY_FUNCTION__.33307> "crcr32_calc_pclmulqdq") at assert.c:101
      #8  0x0000562a518fb8f8 in crcr32_calc_pclmulqdq (data=0x0, data_len=0, crc=4294967295, params=0x562a51f1f640 <ether_crc32_clmul>) at /data/src/10.5/mysys/crc32/crc32_x86.c:222
      #9  0x0000562a518fbf57 in crc32_pclmul (crc32=0, buf=0x0, len=0) at /data/src/10.5/mysys/crc32/crc32_x86.c:357
      #10 0x0000562a51061607 in Item_func_crc32::val_int (this=0x7fd380014998) at /data/src/10.5/sql/item_strfunc.cc:4209
      #11 0x0000562a50e6dbf1 in Type_handler::Item_send_long (this=0x562a526c7880 <type_handler_ulong>, item=0x7fd380014998, protocol=0x7fd380001380, buf=0x7fd3904ee1f0) at /data/src/10.5/sql/sql_type.cc:7376
      #12 0x0000562a50e7c84a in Type_handler_long::Item_send (this=0x562a526c7880 <type_handler_ulong>, item=0x7fd380014998, protocol=0x7fd380001380, buf=0x7fd3904ee1f0) at /data/src/10.5/sql/sql_type.h:5571
      #13 0x0000562a50aeb13c in Item::send (this=0x7fd380014998, protocol=0x7fd380001380, buffer=0x7fd3904ee1f0) at /data/src/10.5/sql/item.h:1060
      #14 0x0000562a50ae4493 in Protocol::send_result_set_row (this=0x7fd380001380, row_items=0x7fd3800142a0) at /data/src/10.5/sql/protocol.cc:1083
      #15 0x0000562a50ba1173 in select_send::send_data (this=0x7fd380015358, items=...) at /data/src/10.5/sql/sql_class.cc:3024
      #16 0x0000562a50cbb773 in select_result_sink::send_data_with_check (this=0x7fd380015358, items=..., u=0x7fd380004f50, sent=0) at /data/src/10.5/sql/sql_class.h:5310
      #17 0x0000562a50c70e2e in JOIN::exec_inner (this=0x7fd380015380) at /data/src/10.5/sql/sql_select.cc:4323
      #18 0x0000562a50c706bd in JOIN::exec (this=0x7fd380015380) at /data/src/10.5/sql/sql_select.cc:4236
      #19 0x0000562a50c71e29 in mysql_select (thd=0x7fd380000db8, tables=0x0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7fd380015358, unit=0x7fd380004f50, select_lex=0x7fd380014150) at /data/src/10.5/sql/sql_select.cc:4663
      #20 0x0000562a50c61a1b in handle_select (thd=0x7fd380000db8, lex=0x7fd380004e88, result=0x7fd380015358, setup_tables_done_option=0) at /data/src/10.5/sql/sql_select.cc:417
      #21 0x0000562a50c24ec5 in execute_sqlcom_select (thd=0x7fd380000db8, all_tables=0x0) at /data/src/10.5/sql/sql_parse.cc:6210
      #22 0x0000562a50c1c20e in mysql_execute_command (thd=0x7fd380000db8) at /data/src/10.5/sql/sql_parse.cc:3932
      #23 0x0000562a50c29d98 in mysql_parse (thd=0x7fd380000db8, rawbuf=0x7fd380014080 "SELECT CRC32(ExtractValue('<a><b/></a>', '/a/b')) AS f", length=54, parser_state=0x7fd3904ef510, is_com_multi=false, is_next_command=false) at /data/src/10.5/sql/sql_parse.cc:7994
      #24 0x0000562a50c160d6 in dispatch_command (command=COM_QUERY, thd=0x7fd380000db8, packet=0x7fd380009099 "", packet_length=54, is_com_multi=false, is_next_command=false) at /data/src/10.5/sql/sql_parse.cc:1867
      #25 0x0000562a50c148ca in do_command (thd=0x7fd380000db8) at /data/src/10.5/sql/sql_parse.cc:1348
      #26 0x0000562a50dc067a in do_handle_one_connection (connect=0x562a54513268, put_in_cache=true) at /data/src/10.5/sql/sql_connect.cc:1410
      #27 0x0000562a50dc03e2 in handle_one_connection (arg=0x562a54600d28) at /data/src/10.5/sql/sql_connect.cc:1312
      #28 0x0000562a5131ae07 in pfs_spawn_thread (arg=0x562a5454b2a8) at /data/src/10.5/storage/perfschema/pfs.cc:2201
      #29 0x00007fd39604a609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #30 0x00007fd395c1e103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Reproducible on 10.5.
      Not reproducible on 10.4.
      No obvious effect on a non-debug build.

      The failure started happening on 10.5 after this commit:

      commit d25f806d73d9984f0c9f2a346dcebb01a0eaa109 (origin/HEAD, origin/10.5, 10.5)
      Author: Vladislav Vaintroub
      Date:   Fri Sep 4 14:33:13 2020 +0200
       
          MDEV-22749 Implement portable PCLMUL accelerated crc32() with Intel intrinsics
      

      Attachments

        Issue Links

          Activity

            People

              wlad Vladislav Vaintroub
              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.