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

PBXT: Server crashes in in xt_spinlock_set on HANDLER .. READ `PRIMARY` NEXT

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Won't Fix
    • 5.5.30, 5.1.67, 5.2.14, 5.3.12
    • None
    • None

    Description

      #3  <signal handler called>
      #4  0x0000000000bf0de6 in xt_spinlock_set (spl=0x10) at /data/bzr/5.5/storage/pbxt/src/lock_xt.h:251
      #5  0x0000000000bf0e35 in xt_spinlock_lock (spl=0x10) at /data/bzr/5.5/storage/pbxt/src/lock_xt.h:301
      #6  0x0000000000c3e92e in xt_ind_lock_handle (handle=0x0) at /data/bzr/5.5/storage/pbxt/src/cache_xt.cc:599
      #7  0x0000000000bf8335 in xt_idx_next (ot=0x7fed8c024b10, ind=0x7fed8c023560, search_key=0x0) at /data/bzr/5.5/storage/pbxt/src/index_xt.cc:2952
      #8  0x0000000000bec0bc in ha_pbxt::index_next (this=0x7fed8c04af08, buf=0x7fed8c019bf8 "\377\217\217\217\217\245\245\245\377\245\245\245\245\245\245\245\030\234\001\214\355\177") at /data/bzr/5.5/storage/pbxt/src/ha_pbxt.cc:3529
      #9  0x00000000005a7d96 in handler::ha_index_next (this=0x7fed8c04af08, buf=0x7fed8c019bf8 "\377\217\217\217\217\245\245\245\377\245\245\245\245\245\245\245\030\234\001\214\355\177") at /data/bzr/5.5/sql/sql_class.h:4213
      #10 0x00000000005edfa1 in mysql_ha_read (thd=0x22db2a0, tables=0x7fed8c007640, mode=RNEXT, keyname=0x7fed8c007c10 "PRIMARY", key_expr=0xa5a5a5a5a5a5a5a5, ha_rkey_mode=HA_READ_KEY_EXACT, cond=0x0, select_limit_cnt=1, offset_limit_cnt=0) at /data/bzr/5.5/sql/sql_handler.cc:839
      #11 0x0000000000613107 in mysql_execute_command (thd=0x22db2a0) at /data/bzr/5.5/sql/sql_parse.cc:3774
      #12 0x0000000000618362 in mysql_parse (thd=0x22db2a0, rawbuf=0x7fed8c0074c8 "HANDLER h1 READ `PRIMARY` NEXT", length=30, parser_state=0x7fedb4790500) at /data/bzr/5.5/sql/sql_parse.cc:5756
      #13 0x000000000060bb04 in dispatch_command (command=COM_QUERY, thd=0x22db2a0, packet=0x23cd4a1 "", packet_length=30) at /data/bzr/5.5/sql/sql_parse.cc:1068
      #14 0x000000000060ad49 in do_command (thd=0x22db2a0) at /data/bzr/5.5/sql/sql_parse.cc:794
      #15 0x000000000070f2ea in do_handle_one_connection (thd_arg=0x22db2a0) at /data/bzr/5.5/sql/sql_connect.cc:1266
      #16 0x000000000070ecd5 in handle_one_connection (arg=0x22db2a0) at /data/bzr/5.5/sql/sql_connect.cc:1181
      #17 0x0000000000c8bfe8 in pfs_spawn_thread (arg=0x2373750) at /data/bzr/5.5/storage/perfschema/pfs.cc:1015
      #18 0x00007fedc1ea6e9a in start_thread (arg=0x7fedb4791700) at pthread_create.c:308
      #19 0x00007fedc119acbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

      Test case (make sure to run server with pbxt):

      CREATE TABLE t1 (pk INT PRIMARY KEY) ENGINE=PBXT;
      HANDLER t1 OPEN AS h1;
      HANDLER h1 READ `PRIMARY` FIRST;
      HANDLER h1 READ `PRIMARY` NEXT;

      Tried 5.1 and 5.5; extrapolating on 5.2 and 5.3.
      Could not try on 10.0 as PBXT currently doesn't build there.

      Attachments

        Activity

          People

            Unassigned Unassigned
            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.