Skip to content

Instantly share code, notes, and snippets.

@spetrunia
Created August 13, 2014 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spetrunia/514b92387c6a8de3b0b1 to your computer and use it in GitHub Desktop.
Save spetrunia/514b92387c6a8de3b0b1 to your computer and use it in GitHub Desktop.
Breakpoint 8, mysql_new_select (lex=0x7fffe1610088, move_down=true) at /home/psergey/dev-git/10.1/sql/sql_parse.cc:6252
(gdb) next
(gdb) next
(gdb) p lex
$315 = (LEX *) 0x7fffe1610088
(gdb) p select_lex
$316 = (SELECT_LEX *) 0x7fffe1611470
(gdb) p select_lex->select_number
$317 = 4
(gdb) wher
#0 mysql_new_select (lex=0x7fffe1610088, move_down=true) at /home/psergey/dev-git/10.1/sql/sql_parse.cc:6254
#1 0x0000555555bc7b70 in MYSQLparse (thd=0x7fffd1633070) at /home/psergey/dev-git/10.1/sql/sql_yacc.yy:15827
#2 0x0000555555a2474a in parse_sql (thd=0x7fffd1633070, parser_state=0x7fffc6bb2800, creation_ctx=0x7fffe148c8c8, do_pfs_digest=false) at /home/psergey/dev-git/10.1/sql/sql_parse.cc:8499
#3 0x0000555555ad95e7 in Table_triggers_list::check_n_load (thd=0x7fffd1633070, db=0x7fffe149cf70 "test", table_name=0x7fffe149cf75 "t1", table=0x7fffe1536c70, names_only=false) at /home/psergey/dev-git/10.1/sql/sql_trigger.cc:1337
#4 0x00005555559b510e in open_table_entry_fini (thd=0x7fffd1633070, share=0x7fffe149c988, entry=0x7fffe1536c70) at /home/psergey/dev-git/10.1/sql/sql_base.cc:3230
#5 0x00005555559b3cc5 in open_table (thd=0x7fffd1633070, table_list=0x7fffe15e6088, mem_root=0x7fffc6bb4e70, ot_ctx=0x7fffc6bb4e30) at /home/psergey/dev-git/10.1/sql/sql_base.cc:2473
#6 0x00005555559b61f6 in open_and_process_table (thd=0x7fffd1633070, lex=0x7fffe1581088, tables=0x7fffe15e6088, counter=0x7fffc6bb4f9c, flags=512, prelocking_strategy=0x7fffc6bb4f90, has_prelocking_list=false, ot_ctx=0x7fffc6bb4e30, new_frm_mem=0x7fffc6bb4e70) at /home/psergey/dev-git/10.1/sql/sql_base.cc:3881
#7 0x00005555559b75ca in open_tables (thd=0x7fffd1633070, start=0x7fffc6bb4f50, counter=0x7fffc6bb4f9c, flags=512, prelocking_strategy=0x7fffc6bb4f90) at /home/psergey/dev-git/10.1/sql/sql_base.cc:4459
#8 0x00005555559b8703 in open_normal_and_derived_tables (thd=0x7fffd1633070, tables=0x7fffe1582558, flags=512, dt_phases=1) at /home/psergey/dev-git/10.1/sql/sql_base.cc:5139
#9 0x0000555555a33630 in mysql_test_insert (stmt=0x7fffe156d470, table_list=0x7fffe1582558, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR) at /home/psergey/dev-git/10.1/sql/sql_prepare.cc:1282
#10 0x0000555555a350fb in check_prepared_statement (stmt=0x7fffe156d470) at /home/psergey/dev-git/10.1/sql/sql_prepare.cc:2102
#11 0x0000555555a37e19 in Prepared_statement::prepare (this=0x7fffe156d470, packet=0x7fffd1298071 "insert into t1 values (1)", packet_len=25) at /home/psergey/dev-git/10.1/sql/sql_prepare.cc:3427
#12 0x0000555555a3564f in mysqld_stmt_prepare (thd=0x7fffd1633070, packet=0x7fffd1298071 "insert into t1 values (1)", packet_length=25) at /home/psergey/dev-git/10.1/sql/sql_prepare.cc:2328
#13 0x0000555555a1289f in dispatch_command (command=COM_STMT_PREPARE, thd=0x7fffd1633070, packet=0x7fffd1298071 "insert into t1 values (1)", packet_length=25) at /home/psergey/dev-git/10.1/sql/sql_parse.cc:1275
#14 0x0000555555a11dea in do_command (thd=0x7fffd1633070) at /home/psergey/dev-git/10.1/sql/sql_parse.cc:1006
#15 0x0000555555b36fce in do_handle_one_connection (thd_arg=0x7fffd1633070) at /home/psergey/dev-git/10.1/sql/sql_connect.cc:1379
#16 0x0000555555b36d21 in handle_one_connection (arg=0x7fffd1633070) at /home/psergey/dev-git/10.1/sql/sql_connect.cc:1293
#17 0x0000555555eaff84 in pfs_spawn_thread (arg=0x7ffff5823370) at /home/psergey/dev-git/10.1/storage/perfschema/pfs.cc:1860
#18 0x00007ffff6f56e9a in start_thread (arg=0x7fffc6bb6700) at pthread_create.c:308
#19 0x00007ffff64713fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#20 0x0000000000000000 in ?? ()
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment