Uploaded image for project: 'Percona Server'
  1. Percona Server
  2. PS-5508

native_part::Partition_base::<...> -> handler::ha_open -> __cxa_pure_virtual () -> ABORT

    XMLWordPrintable

    Details

      Description

      Running sysbench with 6 threads and 20 tables structured like

      CREATE TABLE `sbtest11` (
        `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
        `k` int(10) unsigned NOT NULL DEFAULT '0',
        `c` char(120) NOT NULL DEFAULT '',
        `pad` char(60) NOT NULL DEFAULT '',
        PRIMARY KEY (`id`),
        KEY `k_1` (`k`)
      ) ENGINE=ROCKSDB DEFAULT CHARSET=utf8
      /*!50100 PARTITION BY RANGE (`id`)
      SUBPARTITION BY HASH (`id`)
      SUBPARTITIONS 5
      (PARTITION p0 VALUES LESS THAN (333333) ENGINE = ROCKSDB,
       PARTITION p1 VALUES LESS THAN (666666) ENGINE = ROCKSDB,
       PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ROCKSDB)
      

      with table_open_cache=10 and table_open_cache_instances=8 on 8 core machine aborts with:

      #0  0x00007ffff5c75428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
      #1  0x00007ffff5c7702a in __GI_abort () at abort.c:89
      #2  0x00007ffff65b884d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
      #3  0x00007ffff65b66b6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
      #4  0x00007ffff65b6701 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
      #5  0x00007ffff65b723f in __cxa_pure_virtual () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
      #6  0x0000000002fdbeab in handler::ha_open (this=0x7ffe99fde1d0, table_arg=0x7fffc608ac20, name=0x7fffe0726a10 "./sbtest/sbtest13#P#p3#SP#p3sp4", mode=2, test_if_locked=2, table_def=0x7fffcb18b848) at /home/glorch/dev/PS/percona-server-8.0/sql/handler.cc:2836
      #7  0x0000000002fb7eee in native_part::Partition_base::<lambda(const partition_element*, const partition_element*)>::operator()(const partition_element *, const partition_element *) const (__closure=0x7fffe0726d40, parent_part_elem=0x7fff3ab3fac8,
          part_elem=0x7fff3aafd0d0) at /home/glorch/dev/PS/percona-server-8.0/sql/partitioning/partition_base.cc:1663
      #8  0x0000000002fbea62 in native_part::Partition_base::foreach_partition<native_part::Partition_base::open(char const*, int, uint, const dd::Table*)::<lambda(const partition_element*, const partition_element*)> >(const native_part::Partition_base::<lambda(const partition_element*, const partition_element*)> &) (this=0x7fff3fdcc028, fn=...) at /home/glorch/dev/PS/percona-server-8.0/sql/partitioning/partition_base.cc:416
      #9  0x0000000002fb8531 in native_part::Partition_base::open (this=0x7fff3fdcc028, name=0x7fffc3c5f990 "./sbtest/sbtest13", mode=2, test_if_locked=2, table_def=0x7fffcb18b848) at /home/glorch/dev/PS/percona-server-8.0/sql/partitioning/partition_base.cc:1656
      #10 0x00007fffb7e50683 in ha_rockspart::open (this=0x7fff3fdcc028, name=0x7fffc3c5f990 "./sbtest/sbtest13", mode=2, test_if_locked=2, table_def=0x7fffcb18b848) at /home/glorch/dev/PS/percona-server-8.0/storage/rocksdb/ha_rockspart.cc:39
      #11 0x0000000002fdbeab in handler::ha_open (this=0x7fff3fdcc028, table_arg=0x7fffc608ac20, name=0x7fffc3c5f990 "./sbtest/sbtest13", mode=2, test_if_locked=2, table_def=0x7fffcb18b848) at /home/glorch/dev/PS/percona-server-8.0/sql/handler.cc:2836
      #12 0x00000000034eb2e4 in open_table_from_share (thd=0x7fffc6024000, share=0x7fffc3c5f628, alias=0x7fffc6078198 "sbtest13", db_stat=39, prgflag=8, ha_open_flags=0, outparam=0x7fffc608ac20, is_create_table=false, table_def_param=0x7fffcb18b848)
          at /home/glorch/dev/PS/percona-server-8.0/sql/table.cc:3180
      #13 0x00000000032bcf79 in open_table (thd=0x7fffc6024000, table_list=0x7fffc60781a8, ot_ctx=0x7fffe07275e0) at /home/glorch/dev/PS/percona-server-8.0/sql/sql_base.cc:3378
      #14 0x00000000032c0e5c in open_and_process_table (thd=0x7fffc6024000, lex=0x7fffc6029800, tables=0x7fffc60781a8, counter=0x7fffc6029858, prelocking_strategy=0x7fffe0727660, has_prelocking_list=false, ot_ctx=0x7fffe07275e0)
          at /home/glorch/dev/PS/percona-server-8.0/sql/sql_base.cc:5056
      #15 0x00000000032c248b in open_tables (thd=0x7fffc6024000, start=0x7fffe0727650, counter=0x7fffc6029858, flags=0, prelocking_strategy=0x7fffe0727660) at /home/glorch/dev/PS/percona-server-8.0/sql/sql_base.cc:5707
      #16 0x00000000032c4016 in open_tables_for_query (thd=0x7fffc6024000, tables=0x7fffc60781a8, flags=0) at /home/glorch/dev/PS/percona-server-8.0/sql/sql_base.cc:6584
      #17 0x00000000033fb6ed in Sql_cmd_dml::prepare (this=0x7fffc6078a30, thd=0x7fffc6024000) at /home/glorch/dev/PS/percona-server-8.0/sql/sql_select.cc:385
      #18 0x00000000033fbe91 in Sql_cmd_dml::execute (this=0x7fffc6078a30, thd=0x7fffc6024000) at /home/glorch/dev/PS/percona-server-8.0/sql/sql_select.cc:534
      #19 0x0000000003394c75 in mysql_execute_command (thd=0x7fffc6024000, first_level=true) at /home/glorch/dev/PS/percona-server-8.0/sql/sql_parse.cc:4576
      #20 0x0000000003397466 in mysql_parse (thd=0x7fffc6024000, parser_state=0x7fffe0728bc0, update_userstat=false, force_primary_storage_engine=false) at /home/glorch/dev/PS/percona-server-8.0/sql/sql_parse.cc:5334
      #21 0x000000000338c1b8 in dispatch_command (thd=0x7fffc6024000, com_data=0x7fffe0729c90, command=COM_QUERY) at /home/glorch/dev/PS/percona-server-8.0/sql/sql_parse.cc:1761
      #22 0x000000000338a608 in do_command (thd=0x7fffc6024000) at /home/glorch/dev/PS/percona-server-8.0/sql/sql_parse.cc:1292
      #23 0x00000000035592b6 in handle_connection (arg=0x7fffa0f0cd60) at /home/glorch/dev/PS/percona-server-8.0/sql/conn_handler/connection_handler_per_thread.cc:311
      #24 0x00000000047ea334 in pfs_spawn_thread (arg=0x7fff97832820) at /home/glorch/dev/PS/percona-server-8.0/storage/perfschema/pfs.cc:2836
      #25 0x00007ffff77876ba in start_thread (arg=0x7fffe072a700) at pthread_create.c:333
      #26 0x00007ffff5d4741d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
      

      Attached is a gdb thread apply all bt full. Reproduce a few times.

      Very possibly related to PS-5206

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  satya.bodapati Satya Bodapati
                  Reporter:
                  george.lorch George Lorch
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 4 days, 7 hours, 30 minutes
                    4d 7h 30m