Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-3841 LevelDB storage engine
  3. MDEV-4041

Server crashes in Primary_key_comparator::get_hashnr on INSERT into a LevelDB table with varbinary PK

    XMLWordPrintable

Details

    • Technical task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      create table t1 (v varbinary(16) primary key, i int) engine=LevelDB;
      insert into t1 values ('a',1);

      #4  <signal handler called>
      #5  0x0891de7d in Primary_key_comparator::get_hashnr (key_arg=0xb6b72410 "test.t1", key_len=10) at mysql-5.6-leveldb/storage/leveldb/ha_leveldb.cc:1477
      #6  0x08935c55 in calc_hash (hash=0x90971a0 <row_locks>, key=0xb6b72410 "test.t1", keylen=10) at mysql-5.6-leveldb/mysys/lf_hash.c:302
      #7  0x08936176 in lf_hash_search (hash=0x90971a0 <row_locks>, pins=0xb6b6b6c0, key=0xb6b72410, keylen=10) at mysql-5.6-leveldb/mysys/lf_hash.c:470
      #8  0x08920930 in LockTable::get_lock (this=0x90971a0 <row_locks>, pins=0xb6b6b6c0, key=0xb6b72410 "test.t1", keylen=10, timeout_sec=1) at mysql-5.6-leveldb/storage/leveldb/ldb_locks.cc:117
      #9  0x0891c74d in ha_leveldb::write_row (this=0xb6b6b280, buf=0xb6b6b448 "\376\001a\217\217\217\217\217\217\217\217\217\217\217\217\217\217\217\001") at mysql-5.6-leveldb/storage/leveldb/ha_leveldb.cc:854
      #10 0x082575fa in handler::ha_write_row (this=0xb6b6b280, buf=0xb6b6b448 "\376\001a\217\217\217\217\217\217\217\217\217\217\217\217\217\217\217\001") at mysql-5.6-leveldb/sql/handler.cc:7131
      #11 0x0838c39a in write_record (thd=0xb05ae08, table=0xb6b6aba8, info=0xaf8b69a0, update=0xaf8b69fc) at mysql-5.6-leveldb/sql/sql_insert.cc:1858
      #12 0x0838a53a in mysql_insert (thd=0xb05ae08, table_list=0xb6b2bab8, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false) at mysql-5.6-leveldb/sql/sql_insert.cc:1036
      #13 0x083a7663 in mysql_execute_command (thd=0xb05ae08) at mysql-5.6-leveldb/sql/sql_parse.cc:3344
      #14 0x083ae848 in mysql_parse (thd=0xb05ae08, rawbuf=0xb6b2ba00 "insert into t1 values ('a',1)", length=29, parser_state=0xaf8b7758) at mysql-5.6-leveldb/sql/sql_parse.cc:6097
      #15 0x083a322e in dispatch_command (command=COM_QUERY, thd=0xb05ae08, packet=0xb0fa7c9 "insert into t1 values ('a',1)", packet_length=29) at mysql-5.6-leveldb/sql/sql_parse.cc:1312
      #16 0x083a265e in do_command (thd=0xb05ae08) at mysql-5.6-leveldb/sql/sql_parse.cc:1036
      #17 0x08372019 in do_handle_one_connection (thd_arg=0xb05ae08) at mysql-5.6-leveldb/sql/sql_connect.cc:969
      #18 0x08371bc2 in handle_one_connection (arg=0xb05ae08) at mysql-5.6-leveldb/sql/sql_connect.cc:885
      #19 0x08650a37 in pfs_spawn_thread (arg=0xafde938) at mysql-5.6-leveldb/storage/perfschema/pfs.cc:1853
      #20 0xb77a3e32 in start_thread () from /lib/libpthread.so.0
      #21 0xb75128ee in clone () from /lib/libc.so.6

      revision-id: psergey@askmonty.org-20130114195003-fgp08gh4swgcf1cx
      revno: 4486
      branch-nick: mysql-5.6-leveldb

      Attachments

        Activity

          People

            psergei Sergei Petrunia
            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.