root@carbon:/var/lib/mysql# gdb /usr/libexec/mysqld core
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-slackware-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/libexec/mysqld...done.
[New LWP 27681]
[New LWP 27639]
[New LWP 27641]
[New LWP 27642]
[New LWP 27643]
[New LWP 27644]
[New LWP 27645]
[New LWP 27646]
[New LWP 27647]
[New LWP 27648]
[New LWP 27649]
[New LWP 27650]
[New LWP 27652]
[New LWP 27653]
[New LWP 27654]
[New LWP 27655]
[New LWP 27656]
[New LWP 27657]
[New LWP 27658]
[New LWP 27659]
[New LWP 27660]
[New LWP 27661]
[New LWP 27662]
[New LWP 27663]
[New LWP 27664]
[New LWP 27665]
[New LWP 27666]
[New LWP 27667]
[New LWP 27668]
[New LWP 27669]
[New LWP 27670]
[New LWP 27671]
[New LWP 27672]
[New LWP 27679]

warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/l'.
Program terminated with signal 11, Segmentation fault.
#0  0x000000000073a24d in check_limit_rows_examined (this=0x7f4352fce070) at /tmp/mariadb-10.0.11/sql/sql_class.h:2478
2478        if (++accessed_rows_and_keys > lex->limit_rows_examined_cnt)
(gdb) bt
#0  0x000000000073a24d in check_limit_rows_examined (this=0x7f4352fce070) at /tmp/mariadb-10.0.11/sql/sql_class.h:2478
#1  increment_statistics (offset=&system_status_var::ha_read_key_count, this=0x7f4352d9b088) at /tmp/mariadb-10.0.11/sql/sql_class.h:4866
#2  handler::ha_index_read_map (this=0x7f4352d9b088, buf=0x7f4352d7dc88 "\376\005\060.0.2", key=<optimized out>, keypart_map=1, find_flag=HA_READ_KEY_OR_NEXT) at /tmp/mariadb-10.0.11/sql/handler.cc:2587
#3  0x00007f43594614e7 in oqgraph3::cursor::seek_to (this=this@entry=0x7f4352e05060, origid=..., destid=...) at /tmp/mariadb-10.0.11/storage/oqgraph/oqgraph_thunk.cc:503
#4  0x00007f4359454d68 in find_vertex (g=..., id=1) at /tmp/mariadb-10.0.11/storage/oqgraph/oqgraph_shim.h:480
#5  open_query::oqgraph_share::find_vertex (this=<optimized out>, id=1) at /tmp/mariadb-10.0.11/storage/oqgraph/graphcore.cc:485
#6  0x00007f4359455be3 in open_query::oqgraph::search (this=0x7f4352ff4740, latch=latch@entry=0x7f436e9450cc, orig_id=orig_id@entry=0x7f436e9450d0, dest_id=dest_id@entry=0x0) at /tmp/mariadb-10.0.11/storage/oqgraph/graphcore.cc:726
#7  0x00007f43594535b7 in ha_oqgraph::index_read_idx (this=this@entry=0x7f43528e2088, buf=buf@entry=0x7f4352d7be88 "\374\rbreadth_first", index=<optimized out>, key=key@entry=0x7f4352dde0b0 "", key_len=key_len@entry=44,
    find_flag=find_flag@entry=HA_READ_KEY_EXACT) at /tmp/mariadb-10.0.11/storage/oqgraph/ha_oqgraph.cc:966
#8  0x00007f4359453748 in ha_oqgraph::index_read (this=0x7f43528e2088, buf=0x7f4352d7be88 "\374\rbreadth_first", key=0x7f4352dde0b0 "", key_len=44, find_flag=HA_READ_KEY_EXACT) at /tmp/mariadb-10.0.11/storage/oqgraph/ha_oqgraph.cc:815
#9  0x00007f4359454002 in handler::index_read_map (this=0x7f43528e2088, buf=0x7f4352d7be88 "\374\rbreadth_first", key=0x7f4352dde0b0 "", keypart_map=<optimized out>, find_flag=HA_READ_KEY_EXACT)
    at /tmp/mariadb-10.0.11/sql/handler.h:2888
#10 0x000000000073a1e3 in handler::ha_index_read_map (this=this@entry=0x7f43528e2088, buf=0x7f4352d7be88 "\374\rbreadth_first", key=0x7f4352dde0b0 "", keypart_map=3, find_flag=HA_READ_KEY_EXACT)
    at /tmp/mariadb-10.0.11/sql/handler.cc:2585
#11 0x000000000073f72f in handler::read_range_first (this=0x7f43528e2088, start_key=0x7f43528e2170, end_key=0x7f43528e2190, eq_range_arg=<optimized out>, sorted=<optimized out>) at /tmp/mariadb-10.0.11/sql/handler.cc:5362
#12 0x00000000006c4b49 in handler::multi_range_read_next (this=0x7f43528e2088, range_info=0x7f436e945358) at /tmp/mariadb-10.0.11/sql/multi_range_read.cc:296
#13 0x000000000082d6bf in QUICK_RANGE_SELECT::get_next (this=0x7f435285a280) at /tmp/mariadb-10.0.11/sql/opt_range.cc:11673
#14 0x0000000000732f49 in find_all_keys (found_rows=0x7f436e945e18, pq=<optimized out>, tempfile=0x7f436e945630, buffpek_pointers=0x7f436e9457d0, fs_info=0x7f436e945540, select=0x7f4352d05198, param=0x7f436e9455b0)
    at /tmp/mariadb-10.0.11/sql/filesort.cc:739
#15 filesort (thd=thd@entry=0x7f4352bd4070, table=table@entry=0x7f4352d5f070, sortorder=<optimized out>, s_length=<optimized out>, select=select@entry=0x7f4352d05198, max_rows=max_rows@entry=18446744073709551615,
    sort_positions=sort_positions@entry=false, examined_rows=examined_rows@entry=0x7f436e945e10, found_rows=found_rows@entry=0x7f436e945e18) at /tmp/mariadb-10.0.11/sql/filesort.cc:295
#16 0x00000000005f75f4 in create_sort_index (thd=0x7f4352bd4070, join=join@entry=0x7f4352fce560, order=order@entry=0x7f435293d030, filesort_limit=filesort_limit@entry=18446744073709551615, select_limit=select_limit@entry=1,
    is_order_by=<optimized out>) at /tmp/mariadb-10.0.11/sql/sql_select.cc:20557
#17 0x000000000060b252 in JOIN::exec_inner (this=this@entry=0x7f4352fce560) at /tmp/mariadb-10.0.11/sql/sql_select.cc:3045
#18 0x000000000060b9c3 in JOIN::exec (this=this@entry=0x7f4352fce560) at /tmp/mariadb-10.0.11/sql/sql_select.cc:2365
#19 0x0000000000608486 in mysql_select (thd=thd@entry=0x7f4352bd4070, rref_pointer_array=rref_pointer_array@entry=0x7f4352bd86d8, tables=0x7f435293b538, wild_num=0, fields=..., conds=0x7f4352fce288, og_num=1, order=0x7f435293d030,
    group=0x0, having=0x0, proc_param=0x0, select_options=select_options@entry=2147748608, result=result@entry=0x7f4352fce540, unit=unit@entry=0x7f4352bd7d78, select_lex=select_lex@entry=0x7f4352bd8460)
    at /tmp/mariadb-10.0.11/sql/sql_select.cc:3303
#20 0x000000000060869b in handle_select (thd=thd@entry=0x7f4352bd4070, lex=lex@entry=0x7f4352bd7cb0, result=result@entry=0x7f4352fce540, setup_tables_done_option=setup_tables_done_option@entry=0)
    at /tmp/mariadb-10.0.11/sql/sql_select.cc:372
#21 0x00000000005a798e in execute_sqlcom_select (thd=thd@entry=0x7f4352bd4070, all_tables=<optimized out>) at /tmp/mariadb-10.0.11/sql/sql_parse.cc:5263
#22 0x00000000005ae066 in mysql_execute_command (thd=thd@entry=0x7f4352bd4070) at /tmp/mariadb-10.0.11/sql/sql_parse.cc:2554
#23 0x00000000005b6da6 in mysql_parse (thd=thd@entry=0x7f4352bd4070, rawbuf=<optimized out>, length=212, parser_state=parser_state@entry=0x7f436e9475c0) at /tmp/mariadb-10.0.11/sql/sql_parse.cc:6409
#24 0x00000000005b81ae in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x7f4352bd4070,
    packet=packet@entry=0x7f43529c4071 "SELECT `db`.`version`, `db`.`nodeID` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'breadth_first' AND `origid` = '1' ORDER BY `weight` "..., packet_length=packet_length@entry=212) at /tmp/mariadb-10.0.11/sql/sql_parse.cc:1309
#25 0x00000000005b9ef5 in do_command (thd=0x7f4352bd4070) at /tmp/mariadb-10.0.11/sql/sql_parse.cc:1006
#26 0x000000000068f7fd in do_handle_one_connection (thd_arg=thd_arg@entry=0x7f4352bd4070) at /tmp/mariadb-10.0.11/sql/sql_connect.cc:1379
#27 0x000000000068f8dd in handle_one_connection (arg=arg@entry=0x7f4352bd4070) at /tmp/mariadb-10.0.11/sql/sql_connect.cc:1293
#28 0x00000000008d42fa in pfs_spawn_thread (arg=0x7f4352c27ff0) at /tmp/mariadb-10.0.11/storage/perfschema/pfs.cc:1860
#29 0x00007f43703d00d2 in start_thread () from /lib64/libpthread.so.0
#30 0x00007f436ec58f6d in clone () from /lib64/libc.so.6
