on bzr trunk 10.0 MariaDB [t1]> SET use_stat_tables = COMPLEMENTARY; MariaDB [t1]> analyze table eventum_support_email_body; update_statistics_for_table (thd=thd@entry=0x7f2ccdbea008, table=0x7f2cc506a208) at /home/dan/software_projects/mariadb-trunk/sql/sql_statistics.cc:2628 2628 if (!bitmap_is_set(table->read_set, table_field->field_index)) #1 0x000000000066c1b3 in mysql_admin_table (thd=thd@entry=0x7f2ccdbea008, tables=tables@entry=0x7f2cc501f150, check_opt=check_opt@entry=0x7f2ccdbeea00, operator_name=operator_name@entry=0xafd50f "analyze", lock_type=lock_type@entry=TL_READ_NO_INSERT, open_for_modify=open_for_modify@entry=true, repair_table_use_frm=repair_table_use_frm@entry=false, extra_open_options=extra_open_options@entry=0, prepare_func=prepare_func@entry=0x0, operator_func=, view_operator_func=view_operator_func@entry=0x0) at /home/dan/software_projects/mariadb-trunk/sql/sql_admin.cc:738 #2 0x000000000066c67c in Sql_cmd_analyze_table::execute (this=, thd=0x7f2ccdbea008) at /home/dan/software_projects/mariadb-trunk/sql/sql_admin.cc:1148 #3 0x00000000005b085d in mysql_execute_command (thd=thd@entry=0x7f2ccdbea008) at /home/dan/software_projects/mariadb-trunk/sql/sql_parse.cc:5078 #4 0x00000000005b6d88 in mysql_parse (thd=0x7f2ccdbea008, rawbuf=, length=40, parser_state=0x7f2cd768e5b0) at /home/dan/software_projects/mariadb-trunk/sql/sql_parse.cc:6407 #5 0x00000000005b89b7 in dispatch_command (command=COM_QUERY, thd=0x7f2ccdbea008, packet=, packet_length=) at /home/dan/software_projects/mariadb-trunk/sql/sql_parse.cc:1299 #6 0x00000000005b945b in do_command (thd=) at /home/dan/software_projects/mariadb-trunk/sql/sql_parse.cc:996 #7 0x0000000000660874 in do_handle_one_connection (thd_arg=thd_arg@entry=0x7f2ccdbea008) at /home/dan/software_projects/mariadb-trunk/sql/sql_connect.cc:1375 #8 0x00000000006608d8 in handle_one_connection (arg=arg@entry=0x7f2ccdbea008) at /home/dan/software_projects/mariadb-trunk/sql/sql_connect.cc:1289 #9 0x00000000009bdc44 in pfs_spawn_thread (arg=0x7f2cd6c2f208) at /home/dan/software_projects/mariadb-trunk/storage/perfschema/pfs.cc:1860 #10 0x0000003911207ee5 in start_thread (arg=0x7f2cd768f700) at pthread_create.c:309 #11 0x0000003910af4b8d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 (gdb) p *table $1 = {s = 0x7f2cc6e8e320, file = 0x7f2cc509ed20, next = 0x0, prev = 0x7f2cc6e8e500, share_all_next = 0x0, share_all_prev = 0x7f2cc6e8e4f8, in_use = 0x7f2ccdbea008, tc_time = 651749560171946, field = 0x7f2cc5026c60, record = {0x7f2cc5026c20 ">F\223i\b", 0x7f2cc5026c40 '_' , "aW5shzUBiR"}, write_row_record = 0x0, insert_values = 0x0, covering_keys = {map = 0}, quick_keys = {map = 0}, merge_keys = {map = 0}, intersect_keys = {map = 0}, keys_in_use_for_query = {map = 3}, keys_in_use_for_group_by = {map = 0}, keys_in_use_for_order_by = {map = 0}, key_info = 0x7f2cc5027020, next_number_field = 0x0, found_next_number_field = 0x0, vfield = 0x0, default_field = 0x0, triggers = 0x0, pos_in_table_list = 0x7f2cc501f150, pos_in_locked_tables = 0x0, group = 0x0, alias = {Ptr = 0x7f2cc50123d8 "eventum_support_email_body", str_length = 26, Alloced_length = 32, extra_alloc = 0, alloced = true, thread_specific = false, str_charset = 0x123a0c0 }, null_flags = 0x7f2cc5026c20 ">F\223i\b", def_read_set = {bitmap = 0x7f2cc5026f20, last_word_ptr = 0x7f2cc5026f20, mutex = 0x0, last_word_mask = 4294967288, n_bits = 3}, def_write_set = {bitmap = 0x7f2cc5026f24, last_word_ptr = 0x7f2cc5026f24, mutex = 0x0, last_word_mask = 4294967288, n_bits = 3}, def_vcol_set = {bitmap = 0x7f2cc5026f28, last_word_ptr = 0x7f2cc5026f28, mutex = 0x0, last_word_mask = 4294967288, n_bits = 3}, tmp_set = {bitmap = 0x7f2cc5026f2c, last_word_ptr = 0x7f2cc5026f2c, mutex = 0x0, last_word_mask = 4294967288, n_bits = 3}, eq_join_set = { bitmap = 0x7f2cc5026f30, last_word_ptr = 0x7f2cc5026f30, mutex = 0x0, last_word_mask = 4294967288, n_bits = 3}, cond_set = {bitmap = 0x7f2cc5026f34, last_word_ptr = 0x7f2cc5026f34, mutex = 0x0, last_word_mask = 4294967288, n_bits = 3}, read_set = 0x7f2cc506a318, write_set = 0x7f2cc506a338, vcol_set = 0x7f2cc506a358, query_id = 0, collected_stats = 0x7f2cc5026f48, used_stat_records = 0, quick_rows = {0 }, const_key_parts = {0 }, quick_key_parts = {0 }, quick_n_ranges = {0 }, quick_condition_rows = 0, cond_selectivity = 1, cond_selectivity_sampling_explain = 0x0, map = 0, lock_position = 0, lock_data_start = 0, lock_count = 1, tablenr = 0, used_fields = 0, temp_pool_slot = 0, status = 2, db_stat = 39, derived_select_number = 0, maybe_null = 0, current_lock = 0, copy_blobs = false, next_number_field_updated = false, null_row = false, no_rows_with_nulls = false, null_catch_flags = 0 '\000', force_index = false, force_index_order = false, force_index_group = false, distinct = false, const_table = false, no_rows = false, used_for_duplicate_elimination = false, keep_row_order = false, key_read = false, no_keyread = false, locked_by_logger = false, no_replicate = false, locked_by_name = false, fulltext_searched = false, no_cache = false, open_by_handler = false, auto_increment_field_not_null = false, insert_or_update = false, alias_name_used = false, get_fields_in_item_tree = false, m_needs_reopen = false, created = true, master_had_triggers = false, reginfo = {join_tab = 0x0, lock_type = TL_READ_NO_INSERT, not_exists_optimize = false, impossible_range = false}, mem_root = {free = 0x7f2cc5026c08, used = 0x7f2cc509ed08, pre_alloc = 0x0, min_malloc = 32, block_size = 984, block_num = 9, first_block_usage = 9, error_handler = 0x6449a0 }, grant = { grant_table_user = 0x0, grant_table_role = 0x0, version = 0, privilege = 536870911, want_privilege = 0, orig_want_privilege = 3, m_internal = {m_schema_lookup_done = true, m_schema_access = 0x0, m_table_lookup_done = true, m_table_access = 0x0}}, sort = {filesort_buffer = {m_idx_array = {m_array = 0x0, m_size = 0}, m_record_length = 0, m_start_of_data = 0x0}, io_cache = 0x0, buffpek = 0x0, buffpek_len = 0, addon_buf = 0x0, addon_length = 0, addon_field = 0x0, unpack = 0x0, record_pointers = 0x0, found_records = 0}, expr_arena = 0x0, part_info = 0x0, all_partitions_pruned_away = false, max_keys = 0, stats_is_read = false, histograms_are_read = false, mdl_ticket = 0x7f2cc5018040} (gdb) p *table_field Cannot access memory at address 0x5f5f5f5f5f5f5f5f (gdb) p *(table->field) $7 = (Field *) 0x5f5f5f5f5f5f5f5f