changeset 0:1851152b61a5

2009/05/23 Advanced Software GDB Log.
author admin@koba.cr.ie.u-ryukyu.ac.jp
date Sat, 23 May 2009 17:00:07 +0900
parents
children bae1f0a25099
files SoftwareLog0523.txt
diffstat 1 files changed, 2880 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SoftwareLog0523.txt	Sat May 23 17:00:07 2009 +0900
@@ -0,0 +1,2880 @@
+Current directory is ~/mysql-5.1.34/
+GNU gdb 6.3.50-20050815 (Apple version gdb-962) (Sat Jul 26 08:14:40 UTC 2008)
+Copyright 2004 Free Software Foundation, Inc.
+GDB is free software, covered by the GNU General Public License, and you are
+welcome to change it and/or distribute copies of it under certain conditions.
+Type "show copying" to see the conditions.
+There is absolutely no warranty for GDB.  Type "show warranty" for details.
+This GDB was configured as "i386-apple-darwin"..."/Users/e055742/mysql-5.1.34/config.status": not in executable format: File format not recognized
+
+(gdb) file  /usr/local/mysql/libexec/mysqld 
+Reading symbols for shared libraries ..... done
+Reading symbols from /usr/local/mysql-5.0.77-osx10.5-x86/libexec/mysqld...done.
+(gdb) attach 1667
+Attaching to program: `/usr/local/mysql-5.0.77-osx10.5-x86/libexec/mysqld', process 1667.
+Reading symbols for shared libraries ++++. done
+0x958166f2 in select$DARWIN_EXTSN ()
+(gdb) b vioread
+Function "vioread" not defined.
+Make breakpoint pending on future shared library load? (y or [n]) n
+(gdb) b vio_read
+Breakpoint 1 at 0x3686db: file viosocket.c, line 34.
+(gdb) c
+Continuing.
+[Switching to process 1667 thread 0x2103]
+
+Breakpoint 1, vio_read (vio=0x902608, buf=0x1054418 ">", size=4) at viosocket.c:34
+(gdb) c
+Continuing.
+Current language:  auto; currently c
+
+Breakpoint 1, vio_read (vio=0x902608, buf=0x1054418 ":", size=58) at viosocket.c:34
+(gdb) c
+Continuing.
+
+Breakpoint 1, vio_read (vio=0x902608, buf=0x1054418 "\a", size=4) at viosocket.c:34
+(gdb) c
+Continuing.
+
+Breakpoint 1, vio_read (vio=0x902608, buf=0x1054418 "!", size=33) at viosocket.c:34
+(gdb) c
+Continuing.
+
+Breakpoint 1, vio_read (vio=0x902608, buf=0x1054418 "\001", size=4) at viosocket.c:34
+(gdb) c
+Continuing.
+
+Breakpoint 1, vio_read (vio=0x902608, buf=0x1054418 "\001", size=4) at viosocket.c:34
+(gdb) c
+Continuing.
+
+
+Breakpoint 1, vio_read (vio=0x902608, buf=0x1054418 "\022", size=18) at viosocket.c:34
+(gdb) Continuing.
+
+Breakpoint 1, vio_read (vio=0x902608, buf=0x1054418 "\001", size=4) at viosocket.c:34
+(gdb) c
+Continuing.
+
+Breakpoint 1, vio_read (vio=0x902608, buf=0x1054418 "\b", size=8) at viosocket.c:34
+(gdb) 
+Continuing.
+
+Breakpoint 1, vio_read (vio=0x902608, buf=0x1054418 "\a", size=4) at viosocket.c:34
+(gdb) 
+Continuing.
+
+Breakpoint 1, vio_read (vio=0x902608, buf=0x1054418 "\a", size=4) at viosocket.c:34
+(gdb) 
+Continuing.
+
+Breakpoint 1, vio_read (vio=0x902608, buf=0x1054418 "\024", size=20) at viosocket.c:34
+(gdb) 
+Continuing.
+
+Breakpoint 1, vio_read (vio=0x902608, buf=0x1054418 "\001", size=4) at viosocket.c:34
+(gdb) where
+#0  vio_read (vio=0x902608, buf=0x1054418 "\001", size=4) at viosocket.c:34
+#1  0x000db785 in my_real_read (net=0x1027694, complen=0xb0062e98) at net_serv.cc:815
+#2  0x000dbc83 in my_net_read (net=0x1027694) at net_serv.cc:996
+#3  0x0010ab3b in do_command (thd=0x1027618) at sql_parse.cc:799
+#4  0x000f6318 in handle_one_connection (arg=0x1027618) at sql_connect.cc:1115
+#5  0x957f8095 in _pthread_start ()
+#6  0x957f7f52 in thread_start ()
+(gdb) finish
+Run till exit from #0  vio_read (vio=0x902608, buf=0x1054418 "\001", size=4) at viosocket.c:34
+0x000db785 in my_real_read (net=0x1027694, complen=0xb0062e98) at net_serv.cc:815
+Value returned is $1 = 4294967295
+(gdb) s
+Current language:  auto; currently c++
+(gdb) n
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) finish 
+Run till exit from #0  my_real_read (net=0x1027694, complen=0xb0062e98) at net_serv.cc:853
+
+Breakpoint 1, vio_read (vio=0x902608, buf=0x1054418 "\001", size=4) at viosocket.c:34
+(gdb) finish 
+Run till exit from #0  vio_read (vio=0x902608, buf=0x1054418 "\001", size=4) at viosocket.c:34
+0x000db785 in my_real_read (net=0x1027694, complen=0xb0062e98) at net_serv.cc:815
+Value returned is $2 = 4
+(gdb) where
+#0  0x000db785 in my_real_read (net=0x1027694, complen=0xb0062e98) at net_serv.cc:815
+#1  0x000dbc83 in my_net_read (net=0x1027694) at net_serv.cc:996
+#2  0x0010ab3b in do_command (thd=0x1027618) at sql_parse.cc:799
+#3  0x000f6318 in handle_one_connection (arg=0x1027618) at sql_connect.cc:1115
+#4  0x957f8095 in _pthread_start ()
+#5  0x957f7f52 in thread_start ()
+Current language:  auto; currently c++
+(gdb) u
+(gdb) 
+(gdb) u
+(gdb) up
+#1  0x000dbc83 in my_net_read (net=0x1027694) at net_serv.cc:996
+(gdb) up
+#2  0x0010ab3b in do_command (thd=0x1027618) at sql_parse.cc:799
+(gdb) 
+#3  0x000f6318 in handle_one_connection (arg=0x1027618) at sql_connect.cc:1115
+(gdb) down
+#2  0x0010ab3b in do_command (thd=0x1027618) at sql_parse.cc:799
+(gdb) l
+794	  thd->clear_error();				// Clear error message
+795	  thd->main_da.reset_diagnostics_area();
+796	
+797	  net_new_transaction(net);
+798	
+799	  packet_length= my_net_read(net);
+800	#if defined(ENABLED_PROFILING) && defined(COMMUNITY_SERVER)
+801	  thd->profiling.start_new_query();
+802	#endif
+803	  if (packet_length == packet_error)
+(gdb) b 799
+Breakpoint 2 at 0x10ab30: file sql_parse.cc, line 799.
+(gdb) c
+Continuing.
+
+Breakpoint 1, vio_read (vio=0x902608, buf=0x1054418 "\024", size=20) at viosocket.c:34
+(gdb) c
+Continuing.
+Current language:  auto; currently c
+
+Breakpoint 2, do_command (thd=0x1027618) at sql_parse.cc:799
+(gdb) p net
+$3 = (NET *) 0x1027694
+Current language:  auto; currently c++
+(gdb) p *net
+$4 = {
+  vio = 0x902608, 
+  buff = 0x1054418 "\001", 
+  buff_end = 0x1056418 "h4z\025", '' <repeats 189 times>..., 
+  write_pos = 0x1054418 "\001", 
+  read_pos = 0x1054418 "\001", 
+  fd = 19, 
+  remain_in_buf = 0, 
+  length = 2779096485, 
+  buf_length = 2779096485, 
+  where_b = 0, 
+  max_packet = 8192, 
+  max_packet_size = 1048576, 
+  pkt_nr = 0, 
+  compress_pkt_nr = 1, 
+  write_timeout = 60, 
+  read_timeout = 28800, 
+  retry_count = 10, 
+  fcntl = -1515870811, 
+  return_status = 0x10285e0, 
+  reading_or_writing = 0 '\0', 
+  save_char = -91 '', 
+  unused0 = -91 '', 
+  unused = -91 '', 
+  compress = 0 '\0', 
+  unused1 = -91 '', 
+  query_cache_query = 0x0, 
+  last_errno = 0, 
+  error = 0 '\0', 
+  unused2 = -91 '', 
+  return_errno = 1 '\001', 
+  last_error = "\000", '' <repeats 511 times>, 
+  sqlstate = "", 
+  extension = 0xa5a5a5a5
+}
+(gdb) n
+
+Breakpoint 1, vio_read (vio=0x902608, buf=0x1054418 "\001", size=4) at viosocket.c:34
+(gdb) where
+#0  vio_read (vio=0x902608, buf=0x1054418 "\001", size=4) at viosocket.c:34
+#1  0x000db785 in my_real_read (net=0x1027694, complen=0xb0062e98) at net_serv.cc:815
+#2  0x000dbc83 in my_net_read (net=0x1027694) at net_serv.cc:996
+#3  0x0010ab3b in do_command (thd=0x1027618) at sql_parse.cc:799
+#4  0x000f6318 in handle_one_connection (arg=0x1027618) at sql_connect.cc:1115
+#5  0x957f8095 in _pthread_start ()
+#6  0x957f7f52 in thread_start ()
+Current language:  auto; currently c
+(gdb) c
+Continuing.
+
+Breakpoint 1, vio_read (vio=0x902608, buf=0x1054418 "\001", size=4) at viosocket.c:34
+(gdb) where
+#0  vio_read (vio=0x902608, buf=0x1054418 "\001", size=4) at viosocket.c:34
+#1  0x000db785 in my_real_read (net=0x1027694, complen=0xb0062e98) at net_serv.cc:815
+#2  0x000dbc83 in my_net_read (net=0x1027694) at net_serv.cc:996
+#3  0x0010ab3b in do_command (thd=0x1027618) at sql_parse.cc:799
+#4  0x000f6318 in handle_one_connection (arg=0x1027618) at sql_connect.cc:1115
+#5  0x957f8095 in _pthread_start ()
+#6  0x957f7f52 in thread_start ()
+(gdb) finish 
+Run till exit from #0  vio_read (vio=0x902608, buf=0x1054418 "\001", size=4) at viosocket.c:34
+0x000db785 in my_real_read (net=0x1027694, complen=0xb0062e98) at net_serv.cc:815
+Value returned is $5 = 4
+(gdb) c
+Continuing.
+Current language:  auto; currently c++
+
+Breakpoint 1, vio_read (vio=0x902608, buf=0x1054418 "\024", size=20) at viosocket.c:34
+(gdb) c
+Continuing.
+Current language:  auto; currently c
+
+Breakpoint 2, do_command (thd=0x1027618) at sql_parse.cc:799
+(gdb) 
+Continuing.
+Current language:  auto; currently c++
+
+Breakpoint 1, vio_read (vio=0x902608, buf=0x1054418 "\001", size=4) at viosocket.c:34
+(gdb) 
+Continuing.
+Current language:  auto; currently c
+
+Breakpoint 1, vio_read (vio=0x902608, buf=0x1054418 "\001", size=4) at viosocket.c:34
+(gdb) finish 
+Run till exit from #0  vio_read (vio=0x902608, buf=0x1054418 "\001", size=4) at viosocket.c:34
+0x000db785 in my_real_read (net=0x1027694, complen=0xb0062e98) at net_serv.cc:815
+Value returned is $6 = 4
+(gdb) l parse
+Function "parse" not defined.
+(gdb) l parse_sql(THD*, Parser_state*, Object_creation_ctx*)
+7748	    @retval TRUE on parsing error.
+7749	*/
+7750	
+7751	bool parse_sql(THD *thd,
+7752	               Parser_state *parser_state,
+7753	               Object_creation_ctx *creation_ctx)
+7754	{
+7755	  DBUG_ASSERT(thd->m_parser_state == NULL);
+7756	
+7757	  /* Backup creation context. */
+(gdb) b 7751
+Breakpoint 3 at 0x1087f3: file sql_parse.cc, line 7751.
+(gdb) c
+Continuing.
+
+Breakpoint 1, vio_read (vio=0x902608, buf=0x1054418 "\024", size=20) at viosocket.c:34
+(gdb) 
+Continuing.
+Current language:  auto; currently c
+
+Breakpoint 3, parse_sql (thd=0x1027618, parser_state=0xb00627f4, creation_ctx=0x0) at sql_parse.cc:7755
+(gdb) n
+Current language:  auto; currently c++
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+mysql_parse (thd=0x1027618, inBuf=0x105cc28 "select * from class", length=19, found_semicolon=0xb0062df4) at sql_parse.cc:5867
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) b  mysql_execute_command(THD*)
+Breakpoint 4 at 0xfe592: file sql_parse.cc, line 1961.
+(gdb) info breakpoints 
+Num Type           Disp Enb Address    What
+1   breakpoint     keep y   0x003686db in vio_read at viosocket.c:34
+	breakpoint already hit 21 times
+2   breakpoint     keep y   0x0010ab30 in do_command(THD*) at sql_parse.cc:799
+	breakpoint already hit 2 times
+3   breakpoint     keep y   0x001087f3 in parse_sql(THD*, Parser_state*, Object_creation_ctx*) at sql_parse.cc:7751
+	breakpoint already hit 1 time
+4   breakpoint     keep y   0x000fe592 in mysql_execute_command(THD*) at sql_parse.cc:1961
+(gdb) d 1
+(gdb) c
+Continuing.
+
+Breakpoint 2, do_command (thd=0x1027618) at sql_parse.cc:799
+(gdb) d 2
+(gdb) c
+Continuing.
+
+Breakpoint 3, parse_sql (thd=0x1027618, parser_state=0xb00627f4, creation_ctx=0x0) at sql_parse.cc:7755
+(gdb) c
+Continuing.
+
+Breakpoint 4, mysql_execute_command (thd=0x1027618) at sql_parse.cc:1961
+(gdb) where 
+#0  mysql_execute_command (thd=0x1027618) at sql_parse.cc:1961
+#1  0x00108cc3 in mysql_parse (thd=0x1027618, inBuf=0x105cc28 "select * from class", length=19, found_semicolon=0xb0062df4) at sql_parse.cc:5902
+#2  0x00109a27 in dispatch_command (command=COM_QUERY, thd=0x1027618, packet=0x1054419 "select * from class", packet_length=19) at sql_parse.cc:1216
+#3  0x0010ad14 in do_command (thd=0x1027618) at sql_parse.cc:857
+#4  0x000f6318 in handle_one_connection (arg=0x1027618) at sql_connect.cc:1115
+#5  0x957f8095 in _pthread_start ()
+#6  0x957f7f52 in thread_start ()
+(gdb) up
+#1  0x00108cc3 in mysql_parse (thd=0x1027618, inBuf=0x105cc28 "select * from class", length=19, found_semicolon=0xb0062df4) at sql_parse.cc:5902
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) up
+#1  0x00108cc3 in mysql_parse (thd=0x1027618, inBuf=0x105cc28 "select * from class", length=19, found_semicolon=0xb0062df4) at sql_parse.cc:5902
+(gdb) c
+Continuing.
+
+Breakpoint 3, parse_sql (thd=0x1027618, parser_state=0xb00627f4, creation_ctx=0x0) at sql_parse.cc:7755
+(gdb) c
+Continuing.
+
+Breakpoint 4, mysql_execute_command (thd=0x1027618) at sql_parse.cc:1961
+(gdb) 
+Continuing.
+
+
+Breakpoint 3, parse_sql (thd=0x1027618, parser_state=0xb00627f4, creation_ctx=0x0) at sql_parse.cc:7755
+(gdb) Continuing.
+
+Breakpoint 4, mysql_execute_command (thd=0x1027618) at sql_parse.cc:1961
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) b execute_sqlcom_select
+Breakpoint 5 at 0xf8318: file sql_parse.cc, line 4935.
+(gdb) c
+Continuing.
+
+Breakpoint 5, 0x000f8318 in execute_sqlcom_select (thd=0x1027618, all_tables=0x105cd58) at sql_parse.cc:4935
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) s
+open_and_lock_tables (thd=0x1027618, tables=0x105cd58) at mysql_priv.h:1550
+(gdb) s
+open_and_lock_tables_derived (thd=0x1027618, tables=0x105cd58, derived=true) at sql_base.cc:4984
+(gdb) n
+(gdb) 
+(gdb) s
+open_tables (thd=0x1027618, start=0xb00619d4, counter=0xb00619b8, flags=0) at sql_base.cc:4464
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) s
+open_table (thd=0x1027618, table_list=0x105cd58, mem_root=0xb0061904, refresh=0xb0061947, flags=0) at sql_base.cc:2526
+(gdb) where
+#0  open_table (thd=0x1027618, table_list=0x105cd58, mem_root=0xb0061904, refresh=0xb0061947, flags=0) at sql_base.cc:2526
+#1  0x00156c43 in open_tables (thd=0x1027618, start=0xb00619d4, counter=0xb00619b8, flags=0) at sql_base.cc:4586
+#2  0x001574bc in open_and_lock_tables_derived (thd=0x1027618, tables=0x105cd58, derived=true) at sql_base.cc:4989
+#3  0x0010c1a8 in open_and_lock_tables (thd=0x1027618, tables=0x105cd58) at mysql_priv.h:1550
+#4  0x000f83f0 in execute_sqlcom_select (thd=0x1027618, all_tables=0x105cd58) at sql_parse.cc:4947
+#5  0x000ff052 in mysql_execute_command (thd=0x1027618) at sql_parse.cc:2204
+#6  0x00108cc3 in mysql_parse (thd=0x1027618, inBuf=0x105cc28 "select * from class", length=19, found_semicolon=0xb0062df4) at sql_parse.cc:5902
+#7  0x00109a27 in dispatch_command (command=COM_QUERY, thd=0x1027618, packet=0x1054419 "select * from class", packet_length=19) at sql_parse.cc:1216
+#8  0x0010ad14 in do_command (thd=0x1027618) at sql_parse.cc:857
+#9  0x000f6318 in handle_one_connection (arg=0x1027618) at sql_connect.cc:1115
+#10 0x957f8095 in _pthread_start ()
+#11 0x957f7f52 in thread_start ()
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) s
+create_table_def_key (thd=0x1027618, key=0xb00616dd "7", table_list=0x105cd58, tmp_table=true) at sql_base.cc:234
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+open_table (thd=0x1027618, table_list=0x105cd58, mem_root=0xb0061904, refresh=0xb0061947, flags=0) at sql_base.cc:2554
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) p table
+$7 = (TABLE *) 0x1024218
+(gdb) p *table
+$8 = {
+  s = 0x1056628, 
+  file = 0x1057a28, 
+  next = 0x1024818, 
+  prev = 0x102f818, 
+  parent = 0x0, 
+  child_l = 0x0, 
+  child_last_l = 0x0, 
+  in_use = 0x0, 
+  field = 0x1057b30, 
+  record = {0x1057e28 "\003", 0x1058090 '' <repeats 200 times>...}, 
+  write_row_record = 0x0, 
+  insert_values = 0x0, 
+  covering_keys = {
+    map = 0
+  }, 
+  quick_keys = {
+    map = 0
+  }, 
+  merge_keys = {
+    map = 0
+  }, 
+  keys_in_use_for_query = {
+    map = 0
+  }, 
+  keys_in_use_for_group_by = {
+    map = 0
+  }, 
+  keys_in_use_for_order_by = {
+    map = 0
+  }, 
+  key_info = 0x0, 
+  next_number_field = 0x0, 
+  found_next_number_field = 0x0, 
+  timestamp_field = 0x0, 
+  triggers = 0x0, 
+  pos_in_table_list = 0x105cd58, 
+  group = 0x0, 
+  alias = 0x903c08 "class", 
+  null_flags = 0x1057e28 "\003", 
+  bitmap_init_value = 0x0, 
+  def_read_set = {
+    bitmap = 0x1057c58, 
+    n_bits = 3, 
+    last_word_mask = 4294967288, 
+    last_word_ptr = 0x1057c58, 
+    mutex = 0x0
+  }, 
+  def_write_set = {
+    bitmap = 0x1057c5c, 
+    n_bits = 3, 
+    last_word_mask = 4294967288, 
+    last_word_ptr = 0x1057c5c, 
+    mutex = 0x0
+  }, 
+  tmp_set = {
+    bitmap = 0x1057c60, 
+    n_bits = 3, 
+    last_word_mask = 4294967288, 
+    last_word_ptr = 0x1057c60, 
+    mutex = 0x0
+  }, 
+  read_set = 0x10242a4, 
+  write_set = 0x10242b8, 
+  query_id = 0, 
+  quick_rows = {0 <repeats 64 times>}, 
+  const_key_parts = {0 <repeats 64 times>}, 
+  quick_key_parts = {0 <repeats 64 times>}, 
+  quick_n_ranges = {0 <repeats 64 times>}, 
+  quick_condition_rows = 3, 
+  timestamp_field_type = TIMESTAMP_NO_AUTO_SET, 
+  map = 1, 
+  lock_position = 0, 
+  lock_data_start = 0, 
+  lock_count = 1, 
+  tablenr = 0, 
+  used_fields = 3, 
+  temp_pool_slot = 0, 
+  status = 2, 
+  db_stat = 39, 
+  derived_select_number = 0, 
+  current_lock = 2, 
+  copy_blobs = 0 '\0', 
+  maybe_null = 0, 
+  null_row = 0 '\0', 
+  force_index = 0 '\0', 
+  distinct = 0 '\0', 
+  const_table = 0 '\0', 
+  no_rows = 0 '\0', 
+  key_read = 0 '\0', 
+  no_keyread = 0 '\0', 
+  open_placeholder = 0 '\0', 
+  locked_by_logger = 0 '\0', 
+  no_replicate = 0 '\0', 
+  locked_by_name = 0 '\0', 
+  fulltext_searched = 0 '\0', 
+  no_cache = 0 '\0', 
+  open_by_handler = 0 '\0', 
+  auto_increment_field_not_null = 0 '\0', 
+  insert_or_update = 0 '\0', 
+  alias_name_used = 0 '\0', 
+  get_fields_in_item_tree = 0 '\0', 
+  children_attached = 0 '\0', 
+  reginfo = {
+    join_tab = 0x0, 
+    lock_type = TL_READ, 
+    not_exists_optimize = false, 
+    impossible_range = false
+  }, 
+  mem_root = {
+    free = 0x1057a18, 
+    used = 0x1057e18, 
+    pre_alloc = 0x0, 
+    min_malloc = 32, 
+    block_size = 968, 
+    block_num = 6, 
+    first_block_usage = 0, 
+    error_handler = 0x827c4 <sql_alloc_error_handler>
+  }, 
+  grant = {
+    grant_table = 0x0, 
+    version = 0, 
+    privilege = 1, 
+    want_privilege = 0, 
+    orig_want_privilege = 1
+  }, 
+  sort = {
+    io_cache = 0x0, 
+    sort_keys = 0x0, 
+    buffpek = 0x0, 
+    buffpek_len = 0, 
+    addon_buf = 0x0, 
+    addon_length = 0, 
+    addon_field = 0x0, 
+    unpack = 0, 
+    record_pointers = 0x0, 
+    found_records = 0
+  }
+}
+(gdb)   record = {0x1057e28 "\003", 0x1058090 '' <repeats 200 times>...}, 
+Undefined command: "record".  Try "help".
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+open_tables (thd=0x1027618, start=0xb00619d4, counter=0xb00619b8, flags=0) at sql_base.cc:4593
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+open_and_lock_tables_derived (thd=0x1027618, tables=0x105cd58, derived=true) at sql_base.cc:4992
+(gdb) 
+(gdb) 
+(gdb) s
+mysql_handle_derived (lex=0x1028680, processor=0x29b3bc <mysql_derived_prepare(THD*, st_lex*, TABLE_LIST*)>) at sql_derived.cc:44
+(gdb) where
+#0  mysql_handle_derived (lex=0x1028680, processor=0x29b3bc <mysql_derived_prepare(THD*, st_lex*, TABLE_LIST*)>) at sql_derived.cc:44
+#1  0x001575d9 in open_and_lock_tables_derived (thd=0x1027618, tables=0x105cd58, derived=true) at sql_base.cc:5004
+#2  0x0010c1a8 in open_and_lock_tables (thd=0x1027618, tables=0x105cd58) at mysql_priv.h:1550
+#3  0x000f83f0 in execute_sqlcom_select (thd=0x1027618, all_tables=0x105cd58) at sql_parse.cc:4947
+#4  0x000ff052 in mysql_execute_command (thd=0x1027618) at sql_parse.cc:2204
+#5  0x00108cc3 in mysql_parse (thd=0x1027618, inBuf=0x105cc28 "select * from class", length=19, found_semicolon=0xb0062df4) at sql_parse.cc:5902
+#6  0x00109a27 in dispatch_command (command=COM_QUERY, thd=0x1027618, packet=0x1054419 "select * from class", packet_length=19) at sql_parse.cc:1216
+#7  0x0010ad14 in do_command (thd=0x1027618) at sql_parse.cc:857
+#8  0x000f6318 in handle_one_connection (arg=0x1027618) at sql_connect.cc:1115
+#9  0x957f8095 in _pthread_start ()
+#10 0x957f7f52 in thread_start ()
+(gdb) p processor
+$9 = (bool (*)(class THD *, LEX *, TABLE_LIST *)) 0x29b3bc <mysql_derived_prepare(THD*, st_lex*, TABLE_LIST*)>
+(gdb) s
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) where 
+#0  mysql_handle_derived (lex=0x1028680, processor=0x29b3bc <mysql_derived_prepare(THD*, st_lex*, TABLE_LIST*)>) at sql_derived.cc:73
+#1  0x001575d9 in open_and_lock_tables_derived (thd=0x1027618, tables=0x105cd58, derived=true) at sql_base.cc:5004
+#2  0x0010c1a8 in open_and_lock_tables (thd=0x1027618, tables=0x105cd58) at mysql_priv.h:1550
+#3  0x000f83f0 in execute_sqlcom_select (thd=0x1027618, all_tables=0x105cd58) at sql_parse.cc:4947
+#4  0x000ff052 in mysql_execute_command (thd=0x1027618) at sql_parse.cc:2204
+#5  0x00108cc3 in mysql_parse (thd=0x1027618, inBuf=0x105cc28 "select * from class", length=19, found_semicolon=0xb0062df4) at sql_parse.cc:5902
+#6  0x00109a27 in dispatch_command (command=COM_QUERY, thd=0x1027618, packet=0x1054419 "select * from class", packet_length=19) at sql_parse.cc:1216
+#7  0x0010ad14 in do_command (thd=0x1027618) at sql_parse.cc:857
+#8  0x000f6318 in handle_one_connection (arg=0x1027618) at sql_connect.cc:1115
+#9  0x957f8095 in _pthread_start ()
+#10 0x957f7f52 in thread_start ()
+(gdb) where 
+#0  mysql_handle_derived (lex=0x1028680, processor=0x29b3bc <mysql_derived_prepare(THD*, st_lex*, TABLE_LIST*)>) at sql_derived.cc:73
+#1  0x001575d9 in open_and_lock_tables_derived (thd=0x1027618, tables=0x105cd58, derived=true) at sql_base.cc:5004
+#2  0x0010c1a8 in open_and_lock_tables (thd=0x1027618, tables=0x105cd58) at mysql_priv.h:1550
+#3  0x000f83f0 in execute_sqlcom_select (thd=0x1027618, all_tables=0x105cd58) at sql_parse.cc:4947
+#4  0x000ff052 in mysql_execute_command (thd=0x1027618) at sql_parse.cc:2204
+#5  0x00108cc3 in mysql_parse (thd=0x1027618, inBuf=0x105cc28 "select * from class", length=19, found_semicolon=0xb0062df4) at sql_parse.cc:5902
+#6  0x00109a27 in dispatch_command (command=COM_QUERY, thd=0x1027618, packet=0x1054419 "select * from class", packet_length=19) at sql_parse.cc:1216
+#7  0x0010ad14 in do_command (thd=0x1027618) at sql_parse.cc:857
+#8  0x000f6318 in handle_one_connection (arg=0x1027618) at sql_connect.cc:1115
+#9  0x957f8095 in _pthread_start ()
+#10 0x957f7f52 in thread_start ()
+(gdb) s
+THD::fill_derived_tables (this=0x1027618) at sql_class.h:1958
+(gdb) n
+(gdb) 
+open_and_lock_tables_derived (thd=0x1027618, tables=0x105cd58, derived=true) at sql_base.cc:5009
+(gdb) 
+(gdb) s
+open_and_lock_tables (thd=0x1027618, tables=0x105cd58) at mysql_priv.h:1551
+(gdb) s
+execute_sqlcom_select (thd=0x1027618, all_tables=0x105cd58) at sql_parse.cc:4949
+(gdb) n
+(gdb) s
+Sql_alloc::operator new (size=20) at sql_list.h:30
+(gdb) n
+(gdb) s
+select_send::select_send (this=0x105cfa0) at sql_class.h:2385
+(gdb) s
+select_result::select_result (this=0x105cfa0) at sql_class.cc:1474
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+0x0010c0ba in select_send::select_send (this=0x105cfa0) at sql_class.h:2385
+(gdb) s
+execute_sqlcom_select (thd=0x1027618, all_tables=0x105cd58) at sql_parse.cc:4981
+(gdb) b handle_select(THD*, st_lex*, select_result*, unsigned long) 
+Breakpoint 6 at 0x19134c: file sql_select.cc, line 241.
+(gdb) s
+Query_cache::store_query (this=0x5cd200, thd=0x1027618, tables_used=0x105cd58) at sql_cache.cc:1012
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+execute_sqlcom_select (thd=0x1027618, all_tables=0x105cd58) at sql_parse.cc:4982
+(gdb) s
+
+Breakpoint 6, handle_select (thd=0x1027618, lex=0x1028680, result=0x105cfa0, setup_tables_done_option=0) at sql_select.cc:241
+(gdb) s
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) s
+mysql_select (thd=0x1027618, rref_pointer_array=0x1028a3c, tables=0x105cd58, wild_num=1, fields=@0x10289d8, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x105cfa0, unit=0x10286dc, select_lex=0x1028944) at sql_select.cc:2314
+(gdb) b mysql_select
+Breakpoint 7 at 0x190e97: file sql_select.cc, line 2314.
+(gdb) s
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) s
+JOIN::prepare (this=0x105cfb8, rref_pointer_array=0x1028a3c, tables_init=0x105cd58, wild_num=1, conds_init=0x0, og_num=0, order_init=0x0, group_init=0x0, having_init=0x0, proc_param_init=0x0, select_lex_arg=0x1028944, unit_arg=0x10286dc) at sql_select.cc:455
+(gdb) n
+(gdb) s
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) s
+setup_wild (thd=0x1027618, tables=0x105cd58, fields=@0x10289d8, sum_func_list=0x105e0bc, wild_num=1) at sql_base.cc:7297
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) s
+insert_fields (thd=0x1027618, context=0x1028978, db_name=0x0, table_name=0x0, it=0xb0061778, any_privileges=false) at sql_base.cc:7703
+(gdb) s
+Field_iterator_table_ref::Field_iterator_table_ref (this=0xb0061688) at table.h:1599
+(gdb) n
+insert_fields (thd=0x1027618, context=0x1028978, db_name=0x0, table_name=0x0, it=0xb0061778, any_privileges=false) at sql_base.cc:7706
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) p *item
+$10 = {
+  _vptr$Item = 0x59e3c8, 
+  rsize = 0, 
+  str_value = {
+    Ptr = 0x0, 
+    str_length = 0, 
+    Alloced_length = 0, 
+    alloced = false, 
+    str_charset = 0x5841c0
+  }, 
+  name = 0x105e220 "id", 
+  orig_name = 0x0, 
+  next = 0x105cf40, 
+  max_length = 11, 
+  name_length = 0, 
+  marker = 0 '\0', 
+  decimals = 0 '\0', 
+  maybe_null = 1 '\001', 
+  null_value = 0 '\0', 
+  unsigned_flag = 0 '\0', 
+  with_sum_func = 0 '\0', 
+  fixed = 1 '\001', 
+  is_autogenerated_name = 1 '\001', 
+  collation = {
+    collation = 0x5841c0, 
+    derivation = DERIVATION_IMPLICIT, 
+    repertoire = 3
+  }, 
+  with_subselect = 0 '\0', 
+  cmp_context = 4294967295
+}
+(gdb) 
+$11 = {
+  _vptr$Item = 0x59e3c8, 
+  rsize = 0, 
+  str_value = {
+    Ptr = 0x0, 
+    sr_length = 0, 
+    Alloced_length = 0, 
+    alloced = false, 
+    str_charset = 0x5841c0
+  }, 
+  name = 0x105e220 "id", 
+  orig_name = 0x0, 
+  next = 0x105cf40, 
+  max_length = 11, 
+  name_length = 0, 
+  marker = 0 '\0', 
+  decimals = 0 '\0', 
+  maybe_null = 1 '\001', 
+  null_value = 0 '\0', 
+  unsigned_flag = 0 '\0', 
+  with_sum_func = 0 '\0', 
+  fixed = 1 '\001', 
+  is_autogenerated_name = 1 '\001', 
+  collation = {
+    collation = 0x5841c0, 
+    derivation = DERIVATION_IMPLICIT, 
+    repertoire = 3
+  }, 
+  with_subselect = 0 '\0', 
+  cmp_context = 4294967295
+}
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+setup_wild (thd=0x1027618, tables=0x105cd58, fields=@0x10289d8, sum_func_list=0x105e0bc, wild_num=1) at sql_base.cc:7342
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+JOIN::prepare (this=0x105cfb8, rref_pointer_array=0x1028a3c, tables_init=0x105cd58, wild_num=1, conds_init=0x0, og_num=0, order_init=0x0, group_init=0x0, having_init=0x0, proc_param_init=0x0, select_lex_arg=0x1028944, unit_arg=0x10286dc) at sql_select.cc:504
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) s
+st_select_lex::fix_prepare_information (this=0x1028944, thd=0x1027618, conds=0x105e130, having_conds=0x105dfe8) at sql_lex.cc:2842
+(gdb) n
+(gdb) 
+JOIN::prepare (this=0x105cfb8, rref_pointer_array=0x1028a3c, tables_init=0x105cd58, wild_num=1, conds_init=0x0, og_num=0, order_init=0x0, group_init=0x0, having_init=0x0, proc_param_init=0x0, select_lex_arg=0x1028944, unit_arg=0x10286dc) at sql_select.cc:539
+(gdb) 
+(gdb) s
+(gdb) s
+(gdb) s
+(gdb) s
+(gdb) s
+setup_ftfuncs (select_lex=0x1028944) at sql_base.cc:8528
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+JOIN::prepare (this=0x105cfb8, rref_pointer_array=0x1028a3c, tables_init=0x105cd58, wild_num=1, conds_init=0x0, og_num=0, order_init=0x0, group_init=0x0, having_init=0x0, proc_param_init=0x0, select_lex_arg=0x1028944, unit_arg=0x10286dc) at sql_select.cc:599
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) s
+setup_procedure (thd=0x1027618, param=0x0, result=0x105cfa0, field_list=@0x10289d8, error=0x105e120) at procedure.cc:84
+(gdb) n
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+JOIN::prepare (this=0x105cfb8, rref_pointer_array=0x1028a3c, tables_init=0x105cd58, wild_num=1, conds_init=0x0, og_num=0, order_init=0x0, group_init=0x0, having_init=0x0, proc_param_init=0x0, select_lex_arg=0x1028944, unit_arg=0x10286dc) at sql_select.cc:614
+(gdb) p procedure
+$12 = (Procedure *) 0x0
+(gdb) n
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) s
+(gdb) s
+JOIN::alloc_func_list (this=0x105cfb8) at sql_select.cc:15032
+(gdb) n
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+JOIN::prepare (this=0x105cfb8, rref_pointer_array=0x1028a3c, tables_init=0x105cd58, wild_num=1, conds_init=0x0, og_num=0, order_init=0x0, group_init=0x0, having_init=0x0, proc_param_init=0x0, select_lex_arg=0x1028944, unit_arg=0x10286dc) at sql_select.cc:659
+(gdb) 
+(gdb) 
+mysql_select (thd=0x1027618, rref_pointer_array=0x1028a3c, tables=0x105cd58, wild_num=1, fields=@0x10289d8, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x105cfa0, unit=0x10286dc, select_lex=0x1028944) at sql_select.cc:2364
+(gdb) l
+2359	    {
+2360	      goto err;
+2361	    }
+2362	  }
+2363	
+2364	  if ((err= join->optimize()))
+2365	  {
+2366	    goto err;					// 1
+2367	  }
+2368	
+(gdb) b 2364
+Breakpoint 8 at 0x191148: file sql_select.cc, line 2364.
+(gdb) s
+JOIN::optimize (this=0x105cfb8) at sql_select.cc:765
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+mysql_select (thd=0x1027618, rref_pointer_array=0x1028a3c, tables=0x105cd58, wild_num=1, fields=@0x10289d8, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x105cfa0, unit=0x10286dc, select_lex=0x1028944) at sql_select.cc:2369
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) c
+Continuing.
+
+Breakpoint 3, parse_sql (thd=0x1027618, parser_state=0xb00627f4, creation_ctx=0x0) at sql_parse.cc:7755
+(gdb) c
+Continuing.
+
+Breakpoint 4, mysql_execute_command (thd=0x1027618) at sql_parse.cc:1961
+(gdb) c
+Continuing.
+
+Breakpoint 5, 0x000f8318 in execute_sqlcom_select (thd=0x1027618, all_tables=0x105cd58) at sql_parse.cc:4935
+(gdb) 
+Continuing.
+
+Breakpoint 6, handle_select (thd=0x1027618, lex=0x1028680, result=0x105cfb8, setup_tables_done_option=0) at sql_select.cc:241
+(gdb) 
+Continuing.
+
+Breakpoint 7, mysql_select (thd=0x1027618, rref_pointer_array=0x1028a3c, tables=0x105cd70, wild_num=1, fields=@0x10289d8, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x105cfb8, unit=0x10286dc, select_lex=0x1028944) at sql_select.cc:2314
+(gdb) 
+Continuing.
+
+Breakpoint 8, mysql_select (thd=0x1027618, rref_pointer_array=0x1028a3c, tables=0x105cd70, wild_num=1, fields=@0x10289d8, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x105cfb8, unit=0x10286dc, select_lex=0x1028944) at sql_select.cc:2364
+(gdb) 
+Continuing.
+
+[Switching to process 1667 thread 0x2107]
+
+Breakpoint 3, parse_sql (thd=0x1027618, parser_state=0xb00627f4, creation_ctx=0x0) at sql_parse.cc:7755
+(gdb) Continuing.
+
+Breakpoint 4, mysql_execute_command (thd=0x1027618) at sql_parse.cc:1961
+(gdb) c
+Continuing.
+
+Breakpoint 5, 0x000f8318 in execute_sqlcom_select (thd=0x0, all_tables=0x0) at sql_parse.cc:4935
+(gdb) detach 
+Detaching from program: `/usr/local/mysql-5.0.77-osx10.5-x86/libexec/mysqld', process 1667 thread 0x2107.
+(gdb
+(gdb) attach 1903
+Attaching to program: `/usr/local/mysql-5.0.77-osx10.5-x86/libexec/mysqld', process 1903.
+Re-enabling shared library breakpoint 3
+Re-enabling shared library breakpoint 4
+Re-enabling shared library breakpoint 5
+Re-enabling shared library breakpoint 6
+Re-enabling shared library breakpoint 7
+Re-enabling shared library breakpoint 8
+0x958166f2 in select$DARWIN_EXTSN ()
+(gdb) c
+Continuing.
+[Switching to process 1903 thread 0x2203]
+
+Breakpoint 3, parse_sql (thd=0x1027618, parser_state=0xb00627f4, creation_ctx=0x0) at sql_parse.cc:7755
+(gdb) 
+Continuing.
+
+Breakpoint 4, mysql_execute_command (thd=0x1027618) at sql_parse.cc:1961
+(gdb) 
+Continuing.
+
+Breakpoint 5, 0x000f8318 in execute_sqlcom_select (thd=0x0, all_tables=0x0) at sql_parse.cc:4935
+(gdb) 
+Continuing.
+
+Breakpoint 6, handle_select (thd=0x1027618, lex=0x1028680, result=0x105ce00, setup_tables_done_option=0) at sql_select.cc:241
+(gdb) 
+Continuing.
+
+Breakpoint 7, mysql_select (thd=0x1027618, rref_pointer_array=0x1028a3c, tables=0x0, wild_num=0, fields=@0x10289d8, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x105ce00, unit=0x10286dc, select_lex=0x1028944) at sql_select.cc:2314
+(gdb) 
+Continuing.
+
+Breakpoint 8, mysql_select (thd=0x1027618, rref_pointer_array=0x1028a3c, tables=0x0, wild_num=0, fields=@0x10289d8, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x105ce00, unit=0x10286dc, select_lex=0x1028944) at sql_select.cc:2364
+(gdb) 
+Continuing.
+
+Breakpoint 3, parse_sql (thd=0x1027618, parser_state=0xb00627f4, creation_ctx=0x0) at sql_parse.cc:7755
+(gdb) c
+Continuing.
+
+Breakpoint 4, mysql_execute_command (thd=0x1027618) at sql_parse.cc:1961
+(gdb) 
+Continuing.
+
+Breakpoint 5, 0x000f8318 in execute_sqlcom_select (thd=0x1027618, all_tables=0x0) at sql_parse.cc:4935
+(gdb) 
+Continuing.
+
+Breakpoint 6, handle_select (thd=0x1027618, lex=0x1028680, result=0x105cd78, setup_tables_done_option=0) at sql_select.cc:241
+(gdb) 
+Continuing.
+
+Breakpoint 7, mysql_select (thd=0x1027618, rref_pointer_array=0x1028a3c, tables=0x0, wild_num=0, fields=@0x10289d8, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x105cd78, unit=0x10286dc, select_lex=0x1028944) at sql_select.cc:2314
+(gdb) 
+Continuing.
+
+Breakpoint 8, mysql_select (thd=0x1027618, rref_pointer_array=0x1028a3c, tables=0x0, wild_num=0, fields=@0x10289d8, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x105cd78, unit=0x10286dc, select_lex=0x1028944) at sql_select.cc:2364
+(gdb) 
+Continuing.
+
+Breakpoint 3, parse_sql (thd=0x1027618, parser_state=0xb00627f4, creation_ctx=0x0) at sql_parse.cc:7755
+(gdb) n
+(gdb) c
+Continuing.
+
+Breakpoint 4, mysql_execute_command (thd=0x1027618) at sql_parse.cc:1961
+(gdb) 
+Continuing.
+
+Breakpoint 5, 0x000f8318 in execute_sqlcom_select (thd=0x1027618, all_tables=0x0) at sql_parse.cc:4935
+(gdb) 
+Continuing.
+
+Breakpoint 6, handle_select (thd=0x1027618, lex=0x1028680, result=0x105cfb8, setup_tables_done_option=0) at sql_select.cc:241
+(gdb) 
+Continuing.
+
+Breakpoint 7, mysql_select (thd=0x1027618, rref_pointer_array=0x1028a3c, tables=0x105cd70, wild_num=1, fields=@0x10289d8, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x105cfb8, unit=0x10286dc, select_lex=0x1028944) at sql_select.cc:2314
+(gdb) 
+Continuing.
+
+Breakpoint 8, mysql_select (thd=0x1027618, rref_pointer_array=0x1028a3c, tables=0x105cd70, wild_num=1, fields=@0x10289d8, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x105cfb8, unit=0x10286dc, select_lex=0x1028944) at sql_select.cc:2364
+(gdb) n
+(gdb) where
+#0  mysql_select (thd=0x1027618, rref_pointer_array=0x1028a3c, tables=0x105cd70, wild_num=1, fields=@0x10289d8, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x105cfb8, unit=0x10286dc, select_lex=0x1028944) at sql_select.cc:2369
+#1  0x00191569 in handle_select (thd=0x1027618, lex=0x1028680, result=0x105cfb8, setup_tables_done_option=0) at sql_select.cc:268
+#2  0x000f8696 in execute_sqlcom_select (thd=0x1027618, all_tables=0x105cd70) at sql_parse.cc:4982
+#3  0x000ff052 in mysql_execute_command (thd=0x1027618) at sql_parse.cc:2204
+#4  0x00108cc3 in mysql_parse (thd=0x1027618, inBuf=0x105cc28 "select * from students", length=22, found_semicolon=0xb0062df4) at sql_parse.cc:5902
+#5  0x00109a27 in dispatch_command (command=COM_QUERY, thd=0x1027618, packet=0x1054419 "select * from students", packet_length=22) at sql_parse.cc:1216
+#6  0x0010ad14 in do_command (thd=0x1027618) at sql_parse.cc:857
+#7  0x000f6318 in handle_one_connection (arg=0x1027618) at sql_connect.cc:1115
+#8  0x957f8095 in _pthread_start ()
+#9  0x957f7f52 in thread_start ()
+(gdb) n
+(gdb) 
+(gdb) p join
+$13 = (JOIN *) 0x105cfd0
+(gdb) p *join
+$14 = {
+  <Sql_alloc> = {<No data fields>}, 
+  members of JOIN: 
+  join_tab = 0x105e5d8, 
+  best_ref = 0xb0061510, 
+  map2table = 0x105e4d8, 
+  join_tab_save = 0x0, 
+  table = 0x105e5d0, 
+  all_tables = 0x105e5d0, 
+  sort_by_table = 0x0, 
+  tables = 1, 
+  const_tables = 0, 
+  send_group_parts = 0, 
+  sort_and_group = false, 
+  first_record = false, 
+  full_join = false, 
+  group = false, 
+  no_field_update = 143, 
+  do_send_rows = true, 
+  resume_nested_loop = false, 
+  const_table_map = 0, 
+  found_const_table_map = 0, 
+  outer_join = 0, 
+  send_records = 0, 
+  found_records = 0, 
+  examined_rows = 0, 
+  row_limit = 4294967295, 
+  select_limit = 4294967295, 
+  fetch_limit = 4294967295, 
+  positions = {{
+      records_read = 3, 
+      read_time = 2.006591796875, 
+      table = 0x105e360, 
+      key = 0x0, 
+      ref_depend_map = 0
+    }, {
+      records_read = -9.9261575707946013e-234, 
+      read_time = -9.9261575707946013e-234, 
+      table = 0x8f8f8f8f, 
+      key = 0x8f8f8f8f, 
+      ref_depend_map = 10344644715844964239
+    } <repeats 61 times>}, 
+  best_positions = {{
+      records_read = 3, 
+      read_time = 2.006591796875, 
+      table = 0x105e360, 
+      key = 0x0, 
+      ref_depend_map = 0
+    }, {
+      records_read = -9.9261575707946013e-234, 
+      read_time = -9.9261575707946013e-234, 
+      table = 0x8f8f8f8f, 
+      key = 0x8f8f8f8f, 
+      ref_depend_map = 10344644715844964239
+    } <repeats 61 times>}, 
+  cur_embedding_map = 0, 
+  best_read = 2.6055917968750002, 
+  fields = 0x8f8f8f8f, 
+  group_fields = {
+    <base_list> = {
+      <Sql_alloc> = {<No data fields>}, 
+      members of base_list: 
+      first = 0x5cd108, 
+      last = 0x105dfc4, 
+      elements = 0
+    }, <No data fields>}, 
+  group_fields_cache = {
+    <base_list> = {
+      <Sql_alloc> = {<No data fields>}, 
+      members of base_list: 
+      first = 0x5cd108, 
+      last = 0x105dfd0, 
+      elements = 0
+    }, <No data fields>}, 
+  tmp_table = 0x8f8f8f8f, 
+  exec_tmp_table1 = 0x0, 
+  exec_tmp_table2 = 0x0, 
+  thd = 0x1027618, 
+  sum_funcs = 0x105e358, 
+  sum_funcs_end = 0x105e35c, 
+  sum_funcs2 = 0x0, 
+  sum_funcs_end2 = 0x8f8f8f8f, 
+  procedure = 0x0, 
+  having = 0x0, 
+  tmp_having = 0x0, 
+  having_history = 0x0, 
+  select_options = 2147764736, 
+  result = 0x105cfb8, 
+  tmp_table_param = {
+    <Sql_alloc> = {<No data fields>}, 
+    members of TMP_TABLE_PARAM: 
+    copy_funcs = {
+      <base_list> = {
+        <Sql_alloc> = {<No data fields>}, 
+        members of base_list: 
+        first = 0x5cd108, 
+        last = 0x105e01c, 
+        elements = 0
+      }, <No data fields>}, 
+    save_copy_funcs = {
+      <base_list> = {
+        <Sql_alloc> = {<No data fields>}, 
+        members of base_list: 
+        first = 0x5cd108, 
+        last = 0x105e028, 
+        elements = 0
+      }, <No data fields>}, 
+    copy_field = 0x0, 
+    copy_field_end = 0x8f8f8f8f, 
+    save_copy_field = 0x8f8f8f8f, 
+    save_copy_field_end = 0x8f8f8f8f, 
+    group_buff = 0x8f8f8f8f <Address 0x8f8f8f8f out of bounds>, 
+    items_to_copy = 0x8f8f8f8f, 
+    recinfo = 0x8f8f8f8f, 
+    start_recinfo = 0x8f8f8f8f, 
+    keyinfo = 0x8f8f8f8f, 
+    end_write_records = 4294967295, 
+    field_count = 2, 
+    sum_func_count = 0, 
+    func_count = 0, 
+    hidden_field_count = 0, 
+    group_parts = 0, 
+    group_length = 0, 
+    group_null_parts = 0, 
+    quick_group = 1, 
+    using_indirect_summary_function = 143, 
+    convert_blob_length = 0, 
+    table_charset = 0x0, 
+    schema_table = false, 
+    precomputed_group_by = false, 
+    force_copy_fields = false
+  }, 
+  lock = 0x9041e8, 
+  unit = 0x10286dc, 
+  select_lex = 0x1028944, 
+  no_const_tables = false, 
+  tmp_join = 0x0, 
+  rollup = {
+    state = st_rollup::STATE_NONE, 
+    null_items = 0x8f8f8f8f, 
+    ref_pointer_arrays = 0x8f8f8f8f, 
+    fields = 0x8f8f8f8f
+  }, 
+  select_distinct = false, 
+  group_optimized_away = false, 
+  simple_order = true, 
+  simple_group = true, 
+  no_order = false, 
+  skip_sort_order = false, 
+  need_tmp = false, 
+  hidden_group_fields = false, 
+  keyuse = {
+    buffer = 0x0, 
+    elements = 0, 
+    max_element = 0, 
+    alloc_increment = 0, 
+    size_of_element = 0
+  }, 
+  cond_value = Item::COND_TRUE, 
+  having_value = Item::COND_TRUE, 
+  all_fields = {
+    <base_list> = {
+      <Sql_alloc> = {<No data fields>}, 
+      members of base_list: 
+      first = 0x105cd30, 
+      last = 0x105cd30, 
+      elements = 2
+    }, <No data fields>}, 
+  tmp_all_fields1 = {
+    <base_list> = {
+      <Sql_alloc> = {<No data fields>}, 
+      members of base_list: 
+      first = 0x5cd108, 
+      last = 0x105e0e0, 
+      elements = 0
+    }, <No data fields>}, 
+  tmp_all_fields2 = {
+    <base_list> = {
+      <Sql_alloc> = {<No data fields>}, 
+      members of base_list: 
+      first = 0x5cd108, 
+      last = 0x105e0ec, 
+      elements = 0
+    }, <No data fields>}, 
+  tmp_all_fields3 = {
+    <base_list> = {
+      <Sql_alloc> = {<No data fields>}, 
+      members of base_list: 
+      first = 0x5cd108, 
+      last = 0x105e0f8, 
+      elements = 0
+    }, <No data fields>}, 
+  tmp_fields_list1 = {
+    <base_list> = {
+      <Sql_alloc> = {<No data fields>}, 
+      members of base_list: 
+      first = 0x5cd108, 
+      last = 0x105e104, 
+      elements = 0
+    }, <No data fields>}, 
+  tmp_fields_list2 = {
+    <base_list> = {
+      <Sql_alloc> = {<No data fields>}, 
+      members of base_list: 
+      first = 0x5cd108, 
+      last = 0x105e110, 
+      elements = 0
+    }, <No data fields>}, 
+  tmp_fields_list3 = {
+    <base_list> = {
+      <Sql_alloc> = {<No data fields>}, 
+      members of base_list: 
+      first = 0x5cd108, 
+      last = 0x105e11c, 
+      elements = 0
+    }, <No data fields>}, 
+  fields_list = @0x10289d8, 
+  procedure_fields_list = {
+    <base_list> = {
+      <Sql_alloc> = {<No data fields>}, 
+      members of base_list: 
+      first = 0x5cd108, 
+      last = 0x105e12c, 
+      elements = 0
+    }, <No data fields>}, 
+  error = 0, 
+  order = 0x0, 
+  group_list = 0x0, 
+  proc_param = 0x0, 
+  conds = 0x0, 
+  conds_history = 0x8f8f8f8f, 
+  tables_list = 0x105cd70, 
+  join_list = 0x1028a08, 
+  cond_equal = 0x0, 
+  select = 0x105e750, 
+  return_tab = 0x0, 
+  ref_pointer_array = 0x105e308, 
+  items0 = 0x0, 
+  items1 = 0x0, 
+  items2 = 0x0, 
+  items3 = 0x0, 
+  current_ref_pointer_array = 0x8f8f8f8f, 
+  ref_pointer_array_size = 8, 
+  zero_result_cause = 0x0, 
+  union_part = false, 
+  optimized = true, 
+  sortorder = 0x0, 
+  table_reexec = {0x0}, 
+  join_tab_reexec = 0x0
+}
+(gdb) s
+JOIN::exec (this=0x105cfd0) at sql_select.cc:1643
+(gdb) 
+(gdb) 
+_db_enter_ (_func_=0x3ea336 "JOIN::exec", _file_=0x3e925e "sql_select.cc", _line_=1645, _sfunc_=0xb0061838, _sfile_=0xb0061834, _slevel_=0xb0061830, _sframep_=0xb006182c) at dbug.c:965
+(gdb) finish
+Run till exit from #0  _db_enter_ (_func_=0x3ea336 "JOIN::exec", _file_=0x3e925e "sql_select.cc", _line_=1645, _sfunc_=0xb0061838, _sfile_=0xb0061834, _slevel_=0xb0061830, _sframep_=0xb006182c) at dbug.c:965
+Current language:  auto; currently c
+JOIN::exec (this=0x105cfd0) at sql_select.cc:1647
+(gdb) n
+Current language:  auto; currently c++
+(gdb) 
+(gdb) 
+(gdb) s
+select_result::prepare2 (this=0x105cfb8) at sql_class.h:2320
+(gdb) 
+JOIN::exec (this=0x105cfd0) at sql_select.cc:1662
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+THD::is_error (this=0x1027618) at sql_class.h:2027
+(gdb) 
+Diagnostics_area::is_error (this=0x1028368) at sql_class.h:1114
+(gdb) 
+0x0010beca in THD::is_error (this=0x1027618) at sql_class.h:2027
+(gdb) 
+JOIN::exec (this=0x105cfd0) at sql_select.cc:2169
+(gdb) 
+(gdb) 
+(gdb) b read
+Breakpoint 9 at 0x957c7bc4
+Breakpoint 10 at 0x957eaed0
+Note: breakpoint 9 also set at pc 0x957c7bc4.
+Breakpoint 11 at 0x957c7bc4
+warning: Multiple breakpoints were set.
+Use the "delete" command to delete unwanted breakpoints.
+(gdb) s
+(gdb) 
+JOIN::is_top_level_join (this=0x105cfd0) at sql_select.h:530
+(gdb) 
+(gdb) 
+JOIN::exec (this=0x105cfd0) at sql_select.cc:2194
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) s
+do_select (join=0x105cfd0, fields=0x10289d8, table=0x0, procedure=0x0) at sql_select.cc:10807
+(gdb) s
+(gdb) s
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) s
+setup_end_select_func (join=0x105cfd0) at sql_select.cc:10734
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+do_select (join=0x105cfd0, fields=0x10289d8, table=0x0, procedure=0x0) at sql_select.cc:10827
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+sub_select (join=0x105cfd0, join_tab=0x105e5d8, end_of_records=false) at sql_select.cc:11072
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+join_init_read_record (tab=0x105e5d8) at sql_select.cc:11776
+(gdb) 
+(gdb) 
+init_read_record (info=0x105e618, thd=0x1027618, table=0x1024218, select=0x105e878, use_record_cache=1, print_error=true, disable_rr_cache=false) at records.cc:164
+(gdb) 
+_db_enter_ (_func_=0x3f8301 "init_read_record", _file_=0x3f82c4 "records.cc", _line_=164, _sfunc_=0xb0061628, _sfile_=0xb0061624, _slevel_=0xb0061620, _sframep_=0xb006161c) at dbug.c:965
+(gdb) finish
+Run till exit from #0  _db_enter_ (_func_=0x3f8301 "init_read_record", _file_=0x3f82c4 "records.cc", _line_=164, _sfunc_=0xb0061628, _sfile_=0xb0061624, _slevel_=0xb0061620, _sframep_=0xb006161c) at dbug.c:965
+Current language:  auto; currently c
+init_read_record (info=0x105e618, thd=0x1027618, table=0x1024218, select=0x105e878, use_record_cache=1, print_error=true, disable_rr_cache=false) at records.cc:166
+(gdb) n
+Current language:  auto; currently c++
+(gdb) s
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+_db_pargs_ (_line_=251, keyword=0x3cc984 "info") at dbug.c:1108
+(gdb) 
+Current language:  auto; currently c
+(gdb) 
+code_state () at dbug.c:329
+(gdb) 
+(gdb) finish
+Run till exit from #0  code_state () at dbug.c:332
+0x0039e4c3 in _db_pargs_ (_line_=251, keyword=0x3cc984 "info") at dbug.c:1109
+Value returned is $15 = (CODE_STATE *) 0x902680
+(gdb) s
+(gdb) 
+(gdb) 
+(gdb) 
+_db_doprnt_ (format=0x3f8362 "using rr_sequential") at dbug.c:1145
+(gdb) 
+(gdb) 
+code_state () at dbug.c:329
+(gdb) 
+(gdb) finish
+Run till exit from #0  code_state () at dbug.c:332
+0x0039e4ff in _db_doprnt_ (format=0x3f8362 "using rr_sequential") at dbug.c:1146
+Value returned is $16 = (CODE_STATE *) 0x902680
+(gdb) finish
+Run till exit from #0  0x0039e4ff in _db_doprnt_ (format=0x3f8362 "using rr_sequential") at dbug.c:1146
+init_read_record (info=0x105e618, thd=0x1027618, table=0x1024218, select=0x105e878, use_record_cache=1, print_error=true, disable_rr_cache=false) at records.cc:252
+(gdb) s
+Current language:  auto; currently c++
+(gdb) 
+handler::ha_rnd_init (this=0x1057628, scan=true) at handler.h:1183
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+init_read_record (info=0x105e618, thd=0x1027618, table=0x1024218, select=0x105e878, use_record_cache=1, print_error=true, disable_rr_cache=false) at records.cc:255
+(gdb) s
+(gdb) 
+ha_myisam::extra_opt (this=0x1057628, operation=HA_EXTRA_CACHE, cache_size=262144) at ha_myisam.cc:1806
+(gdb) s
+(gdb) 
+mi_extra (info=0x1058018, function=HA_EXTRA_CACHE, extra_arg=0xb00615a8) at mi_extra.c:42
+(gdb) s
+Current language:  auto; currently c
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) s
+init_io_cache (info=0x105816c, file=21, cachesize=28, type=READ_CACHE, seek_offset=0, use_async_io=1 '\001', cache_myflags=32) at mf_iocache.c:161
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) s
+my_tell (fd=21, MyFlags=0) at my_seek.c:89
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+init_io_cache (info=0x105816c, file=21, cachesize=28, type=READ_CACHE, seek_offset=0, use_async_io=1 '\001', cache_myflags=32) at mf_iocache.c:178
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) s
+(gdb) 
+my_seek (fd=21, pos=0, whence=2, MyFlags=0) at my_seek.c:49
+(gdb) 
+_db_enter_ (_func_=0x414dca "my_seek", _file_=0x414dc0 "my_seek.c", _line_=49, _sfunc_=0xb00613cc, _sfile_=0xb00613c8, _slevel_=0xb00613c4, _sframep_=0xb00613c0) at dbug.c:965
+(gdb) finish
+Run till exit from #0  _db_enter_ (_func_=0x414dca "my_seek", _file_=0x414dc0 "my_seek.c", _line_=49, _sfunc_=0xb00613cc, _sfile_=0xb00613c8, _slevel_=0xb00613c4, _sframep_=0xb00613c0) at dbug.c:965
+my_seek (fd=21, pos=0, whence=2, MyFlags=0) at my_seek.c:50
+(gdb) finish
+Run till exit from #0  my_seek (fd=21, pos=0, whence=2, MyFlags=0) at my_seek.c:50
+0x00374c88 in init_io_cache (info=0x105816c, file=21, cachesize=28, type=READ_CACHE, seek_offset=0, use_async_io=1 '\001', cache_myflags=32) at mf_iocache.c:209
+Value returned is $17 = 27
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) s
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) n
+(gdb) s
+(gdb) 
+(gdb) 
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) s
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+init_functions (info=0x105816c) at mf_iocache.c:104
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+setup_io_cache (info=0x105816c) at mf_iocache.c:88
+(gdb) where
+#0  setup_io_cache (info=0x105816c) at mf_iocache.c:88
+#1  0x003749e0 in init_functions (info=0x105816c) at mf_iocache.c:128
+#2  0x00374fdf in init_io_cache (info=0x105816c, file=21, cachesize=16384, type=READ_CACHE, seek_offset=0, use_async_io=1 '\001', cache_myflags=32) at mf_iocache.c:283
+#3  0x003048c0 in mi_extra (info=0x1058018, function=HA_EXTRA_CACHE, extra_arg=0xb00615a8) at mi_extra.c:101
+#4  0x0034dbdb in ha_myisam::extra_opt (this=0x1057628, operation=HA_EXTRA_CACHE, cache_size=262144) at ha_myisam.cc:1808
+#5  0x002225d0 in init_read_record (info=0x105e618, thd=0x1027618, table=0x1024218, select=0x105e878, use_record_cache=1, print_error=true, disable_rr_cache=false) at records.cc:261
+#6  0x0017cc1c in join_init_read_record (tab=0x105e5d8) at sql_select.cc:11779
+#7  0x0017976d in sub_select (join=0x105cfd0, join_tab=0x105e5d8, end_of_records=false) at sql_select.cc:11108
+#8  0x00179b54 in do_select (join=0x105cfd0, fields=0x10289d8, table=0x0, procedure=0x0) at sql_select.cc:10865
+#9  0x00190d58 in JOIN::exec (this=0x105cfd0) at sql_select.cc:2199
+#10 0x001911e3 in mysql_select (thd=0x1027618, rref_pointer_array=0x1028a3c, tables=0x105cd70, wild_num=1, fields=@0x10289d8, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x105cfb8, unit=0x10286dc, select_lex=0x1028944) at sql_select.cc:2378
+#11 0x00191569 in handle_select (thd=0x1027618, lex=0x1028680, result=0x105cfb8, setup_tables_done_option=0) at sql_select.cc:268
+#12 0x000f8696 in execute_sqlcom_select (thd=0x1027618, all_tables=0x105cd70) at sql_parse.cc:4982
+#13 0x000ff052 in mysql_execute_command (thd=0x1027618) at sql_parse.cc:2204
+#14 0x00108cc3 in mysql_parse (thd=0x1027618, inBuf=0x105cc28 "select * from students", length=22, found_semicolon=0xb0062df4) at sql_parse.cc:5902
+#15 0x00109a27 in dispatch_command (command=COM_QUERY, thd=0x1027618, packet=0x1054419 "", packet_length=22) at sql_parse.cc:1216
+#16 0x0010ad14 in do_command (thd=0x1027618) at sql_parse.cc:857
+#17 0x000f6318 in handle_one_connection (arg=0x1027618) at sql_connect.cc:1115
+#18 0x957f8095 in _pthread_start ()
+#19 0x957f7f52 in thread_start ()
+(gdb) s
+(gdb) 
+(gdb) 
+(gdb) 
+init_functions (info=0x105816c) at mf_iocache.c:129
+(gdb) 
+init_io_cache (info=0x105816c, file=21, cachesize=16384, type=READ_CACHE, seek_offset=0, use_async_io=1 '\001', cache_myflags=32) at mf_iocache.c:293
+(gdb) 
+_db_return_ (_line_=293, _sfunc_=0xb0061460, _sfile_=0xb006145c, _slevel_=0xb0061458) at dbug.c:1040
+(gdb) finish
+Run till exit from #0  _db_return_ (_line_=293, _sfunc_=0xb0061460, _sfile_=0xb006145c, _slevel_=0xb0061458) at dbug.c:1040
+0x00375000 in init_io_cache (info=0x105816c, file=21, cachesize=16384, type=READ_CACHE, seek_offset=0, use_async_io=1 '\001', cache_myflags=32) at mf_iocache.c:293
+(gdb) s
+(gdb) 
+mi_extra (info=0x1058018, function=HA_EXTRA_CACHE, extra_arg=0xb00615a8) at mi_extra.c:107
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) n
+(gdb) 
+ha_myisam::extra_opt (this=0x1057628, operation=HA_EXTRA_CACHE, cache_size=262144) at ha_myisam.cc:1809
+(gdb) s
+Current language:  auto; currently c++
+init_read_record (info=0x105e618, thd=0x1027618, table=0x1024218, select=0x105e878, use_record_cache=1, print_error=true, disable_rr_cache=false) at records.cc:265
+(gdb) 
+(gdb) 
+_db_return_ (_line_=271, _sfunc_=0xb0061628, _sfile_=0xb0061624, _slevel_=0xb0061620) at dbug.c:1040
+(gdb) finish
+Run till exit from #0  _db_return_ (_line_=271, _sfunc_=0xb0061628, _sfile_=0xb0061624, _slevel_=0xb0061620) at dbug.c:1040
+Current language:  auto; currently c
+init_read_record (info=0x105e618, thd=0x1027618, table=0x1024218, select=0x105e878, use_record_cache=1, print_error=true, disable_rr_cache=false) at records.cc:272
+(gdb) s
+Current language:  auto; currently c++
+join_init_read_record (tab=0x105e5d8) at sql_select.cc:11780
+(gdb) 
+rr_sequential (info=0x105e618) at records.cc:381
+(gdb) where
+#0  rr_sequential (info=0x105e618) at records.cc:381
+#1  0x0017cc2d in join_init_read_record (tab=0x105e5d8) at sql_select.cc:11780
+#2  0x0017976d in sub_select (join=0x105cfd0, join_tab=0x105e5d8, end_of_records=false) at sql_select.cc:11108
+#3  0x00179b54 in do_select (join=0x105cfd0, fields=0x10289d8, table=0x0, procedure=0x0) at sql_select.cc:10865
+#4  0x00190d58 in JOIN::exec (this=0x105cfd0) at sql_select.cc:2199
+#5  0x001911e3 in mysql_select (thd=0x1027618, rref_pointer_array=0x1028a3c, tables=0x105cd70, wild_num=1, fields=@0x10289d8, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x105cfb8, unit=0x10286dc, select_lex=0x1028944) at sql_select.cc:2378
+#6  0x00191569 in handle_select (thd=0x1027618, lex=0x1028680, result=0x105cfb8, setup_tables_done_option=0) at sql_select.cc:268
+#7  0x000f8696 in execute_sqlcom_select (thd=0x1027618, all_tables=0x105cd70) at sql_parse.cc:4982
+#8  0x000ff052 in mysql_execute_command (thd=0x1027618) at sql_parse.cc:2204
+#9  0x00108cc3 in mysql_parse (thd=0x1027618, inBuf=0x105cc28 "select * from students", length=22, found_semicolon=0xb0062df4) at sql_parse.cc:5902
+#10 0x00109a27 in dispatch_command (command=COM_QUERY, thd=0x1027618, packet=0x1054419 "", packet_length=22) at sql_parse.cc:1216
+#11 0x0010ad14 in do_command (thd=0x1027618) at sql_parse.cc:857
+#12 0x000f6318 in handle_one_connection (arg=0x1027618) at sql_connect.cc:1115
+#13 0x957f8095 in _pthread_start ()
+#14 0x957f7f52 in thread_start ()
+(gdb) s
+ha_myisam::rnd_next (this=0x1057628, buf=0x1057730 "") at ha_myisam.cc:1695
+(gdb) 
+handler::ha_statistic_increment (this=0x1057628, offset=not implemented: member type in c_val_print
+) at handler.cc:2001
+(gdb) 
+(gdb) 
+ha_myisam::rnd_next (this=0x1057628, buf=0x1057730 "") at ha_myisam.cc:1696
+(gdb) 
+mi_scan (info=0x1058018, buf=0x1057730 "") at mi_scan.c:41
+(gdb) 
+Current language:  auto; currently c
+_db_enter_ (_func_=0x40f1b1 "mi_scan", _file_=0x40f19a "mi_scan.c", _line_=41, _sfunc_=0xb00615bc, _sfile_=0xb00615b8, _slevel_=0xb00615b4, _sframep_=0xb00615b0) at dbug.c:965
+(gdb) finish
+Run till exit from #0  _db_enter_ (_func_=0x40f1b1 "mi_scan", _file_=0x40f19a "mi_scan.c", _line_=41, _sfunc_=0xb00615bc, _sfile_=0xb00615b8, _slevel_=0xb00615b4, _sframep_=0xb00615b0) at dbug.c:965
+mi_scan (info=0x1058018, buf=0x1057730 "") at mi_scan.c:43
+(gdb) s
+(gdb) 
+_db_return_ (_line_=44, _sfunc_=0xb00615bc, _sfile_=0xb00615b8, _slevel_=0xb00615b4) at dbug.c:1040
+(gdb) 
+(gdb) 
+(gdb) s
+code_state () at dbug.c:329
+(gdb) n
+(gdb) finish
+Run till exit from #0  code_state () at dbug.c:332
+0x0039e30b in _db_return_ (_line_=44, _sfunc_=0xb00615bc, _sfile_=0xb00615b8, _slevel_=0xb00615b4) at dbug.c:1042
+Value returned is $18 = (CODE_STATE *) 0x902680
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) s
+(gdb) 
+(gdb) 
+_mi_read_rnd_static_record (info=0x1058018, buf=0x1057730 "", filepos=0, skip_deleted_blocks=1 '\001') at mi_statrec.c:208
+(gdb) n
+(gdb) 
+(gdb) s
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) n
+(gdb) s
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+_my_b_read (info=0x105816c, Buffer=0x1057730 "", Count=9) at mf_iocache.c:458
+(gdb) s
+_db_enter_ (_func_=0x416956 "_my_b_read", _file_=0x4167e6 "mf_iocache.c", _line_=458, _sfunc_=0xb006148c, _sfile_=0xb0061488, _slevel_=0xb0061484, _sframep_=0xb0061480) at dbug.c:965
+(gdb) 
+(gdb) n
+(gdb) 
+(gdb) s
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+DoTrace (cs=0x902680) at dbug.c:1557
+(gdb) finish
+Run till exit from #0  DoTrace (cs=0x902680) at dbug.c:1557
+0x0039e201 in _db_enter_ (_func_=0x416956 "_my_b_read", _file_=0x4167e6 "mf_iocache.c", _line_=458, _sfunc_=0xb006148c, _sfile_=0xb0061488, _slevel_=0xb0061484, _sframep_=0xb0061480) at dbug.c:997
+Value returned is $19 = 0
+(gdb) n
+(gdb) s
+(gdb) 
+(gdb) 
+_my_b_read (info=0x105816c, Buffer=0x1057730 "", Count=9) at mf_iocache.c:460
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) n
+(gdb) s
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) p info->file
+$20 = 21
+(gdb) p *info
+$21 = {
+  pos_in_file = 0, 
+  end_of_file = 27, 
+  read_pos = 0x89a018 "", 
+  read_end = 0x89a018 "", 
+  buffer = 0x89a018 "", 
+  request_pos = 0x89a018 "", 
+  write_buffer = 0x89a018 "", 
+  append_read_pos = 0x0, 
+  write_pos = 0x89a018 "", 
+  write_end = 0x0, 
+  current_pos = 0x105817c, 
+  current_end = 0x1058180, 
+  append_buffer_lock = {
+    global = {
+      __sig = 0, 
+      __opaque = '\0' <repeats 39 times>
+    }, 
+    mutex = {
+      __sig = 0, 
+      __opaque = '\0' <repeats 39 times>
+    }, 
+    file = 0x0, 
+    line = 0, 
+    count = 0, 
+    thread = 0x0
+  }, 
+  share = 0x0, 
+  read_function = 0x37542e <_my_b_read>, 
+  write_function = 0x377286 <_my_b_write>, 
+  type = READ_CACHE, 
+  pre_read = 0, 
+  post_read = 0, 
+  pre_close = 0, 
+  disk_writes = 0, 
+  arg = 0x0, 
+  file_name = 0x0, 
+  dir = 0x0, 
+  prefix = 0x0, 
+  file = 21, 
+  seek_not_done = 0, 
+  error = 0, 
+  buffer_length = 16384, 
+  read_length = 16384, 
+  myflags = 32, 
+  alloced_buffer = 1 '\001'
+}
+(gdb) s
+my_read (Filedes=21, Buffer=0x89a018 "", Count=27, MyFlags=32) at my_read.c:39
+(gdb) where
+#0  my_read (Filedes=21, Buffer=0x89a018 "", Count=27, MyFlags=32) at my_read.c:39
+#1  0x00375897 in _my_b_read (info=0x105816c, Buffer=0x1057730 "", Count=9) at mf_iocache.c:535
+#2  0x003122b1 in _mi_read_rnd_static_record (info=0x1058018, buf=0x1057730 "", filepos=0, skip_deleted_blocks=1 '\001') at mi_statrec.c:277
+#3  0x00310cff in mi_scan (info=0x1058018, buf=0x1057730 "") at mi_scan.c:44
+#4  0x0034d642 in ha_myisam::rnd_next (this=0x1057628, buf=0x1057730 "") at ha_myisam.cc:1696
+#5  0x0022290e in rr_sequential (info=0x105e618) at records.cc:381
+#6  0x0017cc2d in join_init_read_record (tab=0x105e5d8) at sql_select.cc:11780
+#7  0x0017976d in sub_select (join=0x105cfd0, join_tab=0x105e5d8, end_of_records=false) at sql_select.cc:11108
+#8  0x00179b54 in do_select (join=0x105cfd0, fields=0x10289d8, table=0x0, procedure=0x0) at sql_select.cc:10865
+#9  0x00190d58 in JOIN::exec (this=0x105cfd0) at sql_select.cc:2199
+#10 0x001911e3 in mysql_select (thd=0x1027618, rref_pointer_array=0x1028a3c, tables=0x105cd70, wild_num=1, fields=@0x10289d8, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x105cfb8, unit=0x10286dc, select_lex=0x1028944) at sql_select.cc:2378
+#11 0x00191569 in handle_select (thd=0x1027618, lex=0x1028680, result=0x105cfb8, setup_tables_done_option=0) at sql_select.cc:268
+#12 0x000f8696 in execute_sqlcom_select (thd=0x1027618, all_tables=0x105cd70) at sql_parse.cc:4982
+#13 0x000ff052 in mysql_execute_command (thd=0x1027618) at sql_parse.cc:2204
+#14 0x00108cc3 in mysql_parse (thd=0x1027618, inBuf=0x105cc28 "select * from students", length=22, found_semicolon=0xb0062df4) at sql_parse.cc:5902
+#15 0x00109a27 in dispatch_command (command=COM_QUERY, thd=0x1027618, packet=0x1054419 "", packet_length=22) at sql_parse.cc:1216
+#16 0x0010ad14 in do_command (thd=0x1027618) at sql_parse.cc:857
+#17 0x000f6318 in handle_one_connection (arg=0x1027618) at sql_connect.cc:1115
+#18 0x957f8095 in _pthread_start ()
+#19 0x957f7f52 in thread_start ()
+(gdb) s
+_db_enter_ (_func_=0x414e7a "my_read", _file_=0x414e70 "my_read.c", _line_=39, _sfunc_=0xb0061414, _sfile_=0xb0061410, _slevel_=0xb006140c, _sframep_=0xb0061408) at dbug.c:965
+(gdb) finish
+Run till exit from #0  _db_enter_ (_func_=0x414e7a "my_read", _file_=0x414e70 "my_read.c", _line_=39, _sfunc_=0xb0061414, _sfile_=0xb0061410, _slevel_=0xb006140c, _sframep_=0xb0061408) at dbug.c:965
+my_read (Filedes=21, Buffer=0x89a018 "", Count=27, MyFlags=32) at my_read.c:40
+(gdb) n
+(gdb) s
+(gdb) 
+(gdb) n
+
+Breakpoint 10, 0x957eaed0 in read$UNIX2003 ()
+(gdb) 
+Single stepping until exit from function read$UNIX2003, 
+which has no line number information.
+0x957c7a14 in _sysenter_trap ()
+(gdb) finish
+Run till exit from #0  0x957c7a14 in _sysenter_trap ()
+
+Breakpoint 10, 0x957eaed0 in read$UNIX2003 ()
+(gdb) n
+Single stepping until exit from function read$UNIX2003, 
+which has no line number information.
+0x957c7a14 in _sysenter_trap ()
+(gdb) d 10
+(gdb) n
+Single stepping until exit from function _sysenter_trap, 
+which has no line number information.
+0x957eaedc in read$UNIX2003 ()
+(gdb) finish
+Run till exit from #0  0x957eaedc in read$UNIX2003 ()
+0x003687ba in vio_read (vio=0x903688, buf=0x1054418 "\001", size=4) at viosocket.c:44
+(gdb) b myread
+Function "myread" not defined.
+Make breakpoint pending on future shared library load? (y or [n]) n
+(gdb) b my_read
+Breakpoint 12 at 0x36b662: file my_read.c, line 39.
+(gdb) c
+Continuing.
+
+Breakpoint 3, parse_sql (thd=0x1027618, parser_state=0xb00627f4, creation_ctx=0x0) at sql_parse.cc:7755
+(gdb) c
+Continuing.
+Current language:  auto; currently c++
+
+Breakpoint 4, mysql_execute_command (thd=0x1027618) at sql_parse.cc:1961
+(gdb) 
+Continuing.
+
+Breakpoint 5, 0x000f8318 in execute_sqlcom_select (thd=0x1027618, all_tables=0x105cd70) at sql_parse.cc:4935
+(gdb) 
+Continuing.
+
+Breakpoint 12, my_read (Filedes=22, Buffer=0xb0060c40 "}\034 ⏀&", Count=64, MyFlags=4) at my_read.c:39
+(gdb) 
+Continuing.
+Current language:  auto; currently c
+
+Breakpoint 12, my_read (Filedes=22, Buffer=0x904108 "h4z\025", '' <repeats 13 times>, "\003", Count=7, MyFlags=4) at my_read.c:39
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+get_form_pos (file=22, head=0xb0060c40 "\001\n\t\003", save_names=0x0) at table.cc:2058
+(gdb) p buf
+$22 = (uchar *) 0x904108 "//"
+Current language:  auto; currently c++
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+open_binary_frm (thd=0x1027618, share=0x1058a28, head=0xb0060c40 "\001\n\t\003", file=22) at table.cc:692
+(gdb) 
+(gdb) where
+#0  open_binary_frm (thd=0x1027618, share=0x1058a28, head=0xb0060c40 "\001\n\t\003", file=22) at table.cc:699
+#1  0x0015f330 in open_table_def (thd=0x1027618, share=0x1058a28, db_flags=8192) at table.cc:630
+#2  0x00145984 in get_table_share (thd=0x1027618, table_list=0x105cd58, key=0xb00616dd "takushi", key_length=14, db_flags=8192, error=0xb0060ed8) at sql_base.cc:377
+#3  0x00145e38 in get_table_share_with_create (thd=0x1027618, table_list=0x105cd58, key=0xb00616dd "takushi", key_length=14, db_flags=8192, error=0xb0060ed8) at sql_base.cc:456
+#4  0x001531cc in open_unireg_entry (thd=0x1027618, entry=0x1058418, table_list=0x105cd58, alias=0x105cd50 "class", cache_key=0xb00616dd "takushi", cache_key_length=14, mem_root=0xb0061904, flags=0) at sql_base.cc:3864
+#5  0x001560bb in open_table (thd=0x1027618, table_list=0x105cd58, mem_root=0xb0061904, refresh=0xb0061947, flags=0) at sql_base.cc:2934
+#6  0x00156c43 in open_tables (thd=0x1027618, start=0xb00619d4, counter=0xb00619b8, flags=0) at sql_base.cc:4586
+#7  0x001574bc in open_and_lock_tables_derived (thd=0x1027618, tables=0x105cd58, derived=true) at sql_base.cc:4989
+#8  0x0010c1a8 in open_and_lock_tables (thd=0x1027618, tables=0x105cd58) at mysql_priv.h:1550
+#9  0x000f83f0 in execute_sqlcom_select (thd=0x1027618, all_tables=0x105cd58) at sql_parse.cc:4947
+#10 0x000ff052 in mysql_execute_command (thd=0x1027618) at sql_parse.cc:2204
+#11 0x00108cc3 in mysql_parse (thd=0x1027618, inBuf=0x105cc28 "select * from class", length=19, found_semicolon=0xb0062df4) at sql_parse.cc:5902
+#12 0x00109a27 in dispatch_command (command=COM_QUERY, thd=0x1027618, packet=0x1054419 "select * from class", packet_length=19) at sql_parse.cc:1216
+#13 0x0010ad14 in do_command (thd=0x1027618) at sql_parse.cc:857
+#14 0x000f6318 in handle_one_connection (arg=0x1027618) at sql_connect.cc:1115
+#15 0x957f8095 in _pthread_start ()
+#16 0x957f7f52 in thread_start ()
+(gd
+#0  open_binary_frm (thd=0x1027618, share=0x1058a28, head=0xb0060c40 "\001\n\t\003", file=22) at table.cc:699
+#1  0x0015f330 in open_table_def (thd=0x1027618, share=0x1058a28, db_flags=8192) at table.cc:630
+#2  0x00145984 in get_table_share (thd=0x1027618, table_list=0x105cd58, key=0xb00616dd "takushi", key_length=14, db_flags=8192, error=0xb0060ed8) at sql_base.cc:377
+#3  0x00145e38 in get_table_share_with_create (thd=0x1027618, table_list=0x105cd58, key=0xb00616dd "takushi", key_length=14, db_flags=8192, error=0xb0060ed8) at sql_base.cc:456
+#4  0x001531cc in open_unireg_entry (thd=0x1027618, entry=0x1058418, table_list=0x105cd58, alias=0x105cd50 "class", cache_key=0xb00616dd "takushi", cache_key_length=14, mem_root=0xb0061904, flags=0) at sql_base.cc:3864
+#5  0x001560bb in open_table (thd=0x1027618, table_list=0x105cd58, mem_root=0xb0061904, refresh=0xb0061947, flags=0) at sql_base.cc:2934
+#6  0x00156c43 in open_tables (thd=0x1027618, start=0xb00619d4, counter=0xb00619b8, flags=0) at sql_base.cc:4586
+#7  0x001574bc in open_and_lock_tables_derived (thd=0x1027618, tables=0x105cd58, derived=true) at sql_base.cc:4989
+#8  0x0010c1a8 in open_and_lock_tables (thd=0x1027618, tables=0x105cd58) at mysql_priv.h:1550
+#9  0x000f83f0 in execute_sqlcom_select (thd=0x1027618, all_tables=0x105cd58) at sql_parse.cc:4947
+#10 0x000ff052 in mysql_execute_command (thd=0x1027618) at sql_parse.cc:2204
+#11 0x00108cc3 in mysql_parse (thd=0x1027618, inBuf=0x105cc28 "select * from class", length=19, found_semicolon=0xb0062df4) at sql_parse.cc:5902
+#12 0x00109a27 in dispatch_command (command=COM_QUERY, thd=0x1027618, packet=0x1054419 "select * from class", packet_length=19) at sql_parse.cc:1216
+#13 0x0010ad14 in do_command (thd=0x1027618) at sql_parse.cc:857
+#14 0x000f6318 in handle_one_connection (arg=0x1027618) at sql_connect.cc:1115
+#15 0x957f8095 in _pthread_start ()
+#16 0x957f7f52 in thread_start ()
+(gdb) info breakpoints 
+Num Type           Disp Enb Address    What
+3   breakpoint     keep y   0x001087f3 in parse_sql(THD*, Parser_state*, Object_creation_ctx*) at sql_parse.cc:7751
+	breakpoint already hit 10 times
+4   breakpoint     keep y   0x000fe592 in mysql_execute_command(THD*) at sql_parse.cc:1961
+	breakpoint already hit 9 times
+5   breakpoint     keep y   0x000f8318 in execute_sqlcom_select at sql_parse.cc:4935
+	breakpoint already hit 7 times
+6   breakpoint     keep y   0x0019134c in handle_select(THD*, st_lex*, select_result*, unsigned long) at sql_select.cc:241
+	breakpoint already hit 5 times
+7   breakpoint     keep y   0x00190e97 in mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) at sql_select.cc:2314
+	breakpoint already hit 4 times
+8   breakpoint     keep y   0x00191148 in mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) at sql_select.cc:2364
+	breakpoint already hit 4 times
+9   breakpoint     keep y   0x957c7bc4 <read$NOCANCEL$UNIX2003>
+11  breakpoint     keep y   0x957c7bc4 <read$NOCANCEL$UNIX2003>
+12  breakpoint     keep y   0x0036b662 in my_read at my_read.c:39
+	breakpoint already hit 2 times
+(gdb) d 9 11
+(gdb) d 8
+(gdb) d 7
+(gdb) info breakpoints 
+Num Type           Disp Enb Address    What
+3   breakpoint     keep y   0x001087f3 in parse_sql(THD*, Parser_state*, Object_creation_ctx*) at sql_parse.cc:7751
+	breakpoint already hit 10 times
+4   breakpoint     keep y   0x000fe592 in mysql_execute_command(THD*) at sql_parse.cc:1961
+	breakpoint already hit 9 times
+5   breakpoint     keep y   0x000f8318 in execute_sqlcom_select at sql_parse.cc:4935
+	breakpoint already hit 7 times
+6   breakpoint     keep y   0x0019134c in handle_select(THD*, st_lex*, select_result*, unsigned long) at sql_select.cc:241
+	breakpoint already hit 5 times
+12  breakpoint     keep y   0x0036b662 in my_read at my_read.c:39
+	breakpoint already hit 2 times
+(gdb) d 4 5 6
+(gdb) c
+Continuing.
+
+Breakpoint 12, my_read (Filedes=22, Buffer=0x904108 "h4z\025", '' <repeats 11 times>, "\003", Count=8, MyFlags=4) at my_read.c:39
+(gdb) where
+#0  my_read (Filedes=22, Buffer=0x904108 "h4z\025", '' <repeats 11 times>, "\003", Count=8, MyFlags=4) at my_read.c:39
+#1  0x0015a52d in read_string (file=22, to=0xb0060890, length=8) at table.cc:2090
+#2  0x0015c4dd in open_binary_frm (thd=0x1027618, share=0x1058a28, head=0xb0060c40 "\001\n\t\003", file=22) at table.cc:757
+#3  0x0015f330 in open_table_def (thd=0x1027618, share=0x1058a28, db_flags=8192) at table.cc:630
+#4  0x00145984 in get_table_share (thd=0x1027618, table_list=0x105cd58, key=0xb00616dd "takushi", key_length=14, db_flags=8192, error=0xb0060ed8) at sql_base.cc:377
+#5  0x00145e38 in get_table_share_with_create (thd=0x1027618, table_list=0x105cd58, key=0xb00616dd "takushi", key_length=14, db_flags=8192, error=0xb0060ed8) at sql_base.cc:456
+#6  0x001531cc in open_unireg_entry (thd=0x1027618, entry=0x1058418, table_list=0x105cd58, alias=0x105cd50 "class", cache_key=0xb00616dd "takushi", cache_key_length=14, mem_root=0xb0061904, flags=0) at sql_base.cc:3864
+#7  0x001560bb in open_table (thd=0x1027618, table_list=0x105cd58, mem_root=0xb0061904, refresh=0xb0061947, flags=0) at sql_base.cc:2934
+#8  0x00156c43 in open_tables (thd=0x1027618, start=0xb00619d4, counter=0xb00619b8, flags=0) at sql_base.cc:4586
+#9  0x001574bc in open_and_lock_tables_derived (thd=0x1027618, tables=0x105cd58, derived=true) at sql_base.cc:4989
+#10 0x0010c1a8 in open_and_lock_tables (thd=0x1027618, tables=0x105cd58) at mysql_priv.h:1550
+#11 0x000f83f0 in execute_sqlcom_select (thd=0x1027618, all_tables=0x105cd58) at sql_parse.cc:4947
+#12 0x000ff052 in mysql_execute_command (thd=0x1027618) at sql_parse.cc:2204
+#13 0x00108cc3 in mysql_parse (thd=0x1027618, inBuf=0x105cc28 "select * from class", length=19, found_semicolon=0xb0062df4) at sql_parse.cc:5902
+#14 0x00109a27 in dispatch_command (command=COM_QUERY, thd=0x1027618, packet=0x1054419 "select * from class", packet_length=19) at sql_parse.cc:1216
+#15 0x0010ad14 in do_command (thd=0x1027618) at sql_parse.cc:857
+#16 0x000f6318 in handle_one_connection (arg=0x1027618) at sql_connect.cc:1115
+#17 0x957f8095 in _pthread_start ()
+#18 0x957f7f52 in thread_start ()
+Current language:  auto; currently c
+(gdb) c
+Continuing.
+
+Breakpoint 12, my_read (Filedes=22, Buffer=0xb0060c40 "\001\n\t\003", Count=288, MyFlags=4) at my_read.c:39
+(gdb) where
+#0  my_read (Filedes=22, Buffer=0xb0060c40 "\001\n\t\003", Count=288, MyFlags=4) at my_read.c:39
+#1  0x0015d235 in open_binary_frm (thd=0x1027618, share=0x1058a28, head=0xb0060c40 "\001\n\t\003", file=22) at table.cc:1024
+#2  0x0015f330 in open_table_def (thd=0x1027618, share=0x1058a28, db_flags=8192) at table.cc:630
+#3  0x00145984 in get_table_share (thd=0x1027618, table_list=0x105cd58, key=0xb00616dd "takushi", key_length=14, db_flags=8192, error=0xb0060ed8) at sql_base.cc:377
+#4  0x00145e38 in get_table_share_with_create (thd=0x1027618, table_list=0x105cd58, key=0xb00616dd "takushi", key_length=14, db_flags=8192, error=0xb0060ed8) at sql_base.cc:456
+#5  0x001531cc in open_unireg_entry (thd=0x1027618, entry=0x1058418, table_list=0x105cd58, alias=0x105cd50 "class", cache_key=0xb00616dd "takushi", cache_key_length=14, mem_root=0xb0061904, flags=0) at sql_base.cc:3864
+#6  0x001560bb in open_table (thd=0x1027618, table_list=0x105cd58, mem_root=0xb0061904, refresh=0xb0061947, flags=0) at sql_base.cc:2934
+#7  0x00156c43 in open_tables (thd=0x1027618, start=0xb00619d4, counter=0xb00619b8, flags=0) at sql_base.cc:4586
+#8  0x001574bc in open_and_lock_tables_derived (thd=0x1027618, tables=0x105cd58, derived=true) at sql_base.cc:4989
+#9  0x0010c1a8 in open_and_lock_tables (thd=0x1027618, tables=0x105cd58) at mysql_priv.h:1550
+#10 0x000f83f0 in execute_sqlcom_select (thd=0x1027618, all_tables=0x105cd58) at sql_parse.cc:4947
+#11 0x000ff052 in mysql_execute_command (thd=0x1027618) at sql_parse.cc:2204
+#12 0x00108cc3 in mysql_parse (thd=0x1027618, inBuf=0x105cc28 "select * from class", length=19, found_semicolon=0xb0062df4) at sql_parse.cc:5902
+#13 0x00109a27 in dispatch_command (command=COM_QUERY, thd=0x1027618, packet=0x1054419 "select * from class", packet_length=19) at sql_parse.cc:1216
+#14 0x0010ad14 in do_command (thd=0x1027618) at sql_parse.cc:857
+#15 0x000f6318 in handle_one_connection (arg=0x1027618) at sql_connect.cc:1115
+#16 0x957f8095 in _pthread_start ()
+#17 0x957f7f52 in thread_start ()
+(gdb) c
+Continuing.
+
+Breakpoint 12, my_read (Filedes=22, Buffer=0x904228 '' <repeats 143 times>, "h4z\025", Count=142, MyFlags=4) at my_read.c:39
+(gdb) where
+#0  my_read (Filedes=22, Buffer=0x904228 '' <repeats 143 times>, "h4z\025", Count=142, MyFlags=4) at my_read.c:39
+#1  0x0015a52d in read_string (file=22, to=0xb0060890, length=142) at table.cc:2090
+#2  0x0015d46a in open_binary_frm (thd=0x1027618, share=0x1058a28, head=0xb0060c40 "\001", file=22) at table.cc:1061
+#3  0x0015f330 in open_table_def (thd=0x1027618, share=0x1058a28, db_flags=8192) at table.cc:630
+#4  0x00145984 in get_table_share (thd=0x1027618, table_list=0x105cd58, key=0xb00616dd "takushi", key_length=14, db_flags=8192, error=0xb0060ed8) at sql_base.cc:377
+#5  0x00145e38 in get_table_share_with_create (thd=0x1027618, table_list=0x105cd58, key=0xb00616dd "takushi", key_length=14, db_flags=8192, error=0xb0060ed8) at sql_base.cc:456
+#6  0x001531cc in open_unireg_entry (thd=0x1027618, entry=0x1058418, table_list=0x105cd58, alias=0x105cd50 "class", cache_key=0xb00616dd "takushi", cache_key_length=14, mem_root=0xb0061904, flags=0) at sql_base.cc:3864
+#7  0x001560bb in open_table (thd=0x1027618, table_list=0x105cd58, mem_root=0xb0061904, refresh=0xb0061947, flags=0) at sql_base.cc:2934
+#8  0x00156c43 in open_tables (thd=0x1027618, start=0xb00619d4, counter=0xb00619b8, flags=0) at sql_base.cc:4586
+#9  0x001574bc in open_and_lock_tables_derived (thd=0x1027618, tables=0x105cd58, derived=true) at sql_base.cc:4989
+#10 0x0010c1a8 in open_and_lock_tables (thd=0x1027618, tables=0x105cd58) at mysql_priv.h:1550
+#11 0x000f83f0 in execute_sqlcom_select (thd=0x1027618, all_tables=0x105cd58) at sql_parse.cc:4947
+#12 0x000ff052 in mysql_execute_command (thd=0x1027618) at sql_parse.cc:2204
+#13 0x00108cc3 in mysql_parse (thd=0x1027618, inBuf=0x105cc28 "select * from class", length=19, found_semicolon=0xb0062df4) at sql_parse.cc:5902
+#14 0x00109a27 in dispatch_command (command=COM_QUERY, thd=0x1027618, packet=0x1054419 "select * from class", packet_length=19) at sql_parse.cc:1216
+#15 0x0010ad14 in do_command (thd=0x1027618) at sql_parse.cc:857
+#16 0x000f6318 in handle_one_connection (arg=0x1027618) at sql_connect.cc:1115
+#17 0x957f8095 in _pthread_start ()
+#18 0x957f7f52 in thread_start ()
+(gdb) c
+Continuing.
+
+Breakpoint 12, my_read (Filedes=22, Buffer=0xb005fdcc "", Count=24, MyFlags=4) at my_read.c:39
+(gdb) where
+#0  my_read (Filedes=22, Buffer=0xb005fdcc "", Count=24, MyFlags=4) at my_read.c:39
+#1  0x002fdd45 in mi_open (name=0x1058c90 "./takushi/class", mode=2, open_flags=66) at mi_open.c:132
+#2  0x0034a068 in ha_myisam::open (this=0x1064228, name=0x1058c90 "./takushi/class", mode=2, test_if_locked=2) at ha_myisam.cc:660
+#3  0x0022b184 in handler::ha_open (this=0x1064228, table_arg=0x1058418, name=0x1058c90 "./takushi/class", mode=2, test_if_locked=2) at handler.cc:2037
+#4  0x0015be4f in open_table_from_share (thd=0x1027618, share=0x1058a28, alias=0x105cd50 "class", db_stat=39, prgflag=44, ha_open_flags=0, outparam=0x1058418, is_create_table=false) at table.cc:1873
+#5  0x0015340c in open_unireg_entry (thd=0x1027618, entry=0x1058418, table_list=0x105cd58, alias=0x105cd50 "class", cache_key=0xb00616dd "takushi", cache_key_length=14, mem_root=0xb0061904, flags=0) at sql_base.cc:3920
+#6  0x001560bb in open_table (thd=0x1027618, table_list=0x105cd58, mem_root=0xb0061904, refresh=0xb0061947, flags=0) at sql_base.cc:2934
+#7  0x00156c43 in open_tables (thd=0x1027618, start=0xb00619d4, counter=0xb00619b8, flags=0) at sql_base.cc:4586
+#8  0x001574bc in open_and_lock_tables_derived (thd=0x1027618, tables=0x105cd58, derived=true) at sql_base.cc:4989
+#9  0x0010c1a8 in open_and_lock_tables (thd=0x1027618, tables=0x105cd58) at mysql_priv.h:1550
+#10 0x000f83f0 in execute_sqlcom_select (thd=0x1027618, all_tables=0x105cd58) at sql_parse.cc:4947
+#11 0x000ff052 in mysql_execute_command (thd=0x1027618) at sql_parse.cc:2204
+#12 0x00108cc3 in mysql_parse (thd=0x1027618, inBuf=0x105cc28 "select * from class", length=19, found_semicolon=0xb0062df4) at sql_parse.cc:5902
+#13 0x00109a27 in dispatch_command (command=COM_QUERY, thd=0x1027618, packet=0x1054419 "select * from class", packet_length=19) at sql_parse.cc:1216
+#14 0x0010ad14 in do_command (thd=0x1027618) at sql_parse.cc:857
+#15 0x000f6318 in handle_one_connection (arg=0x1027618) at sql_connect.cc:1115
+#16 0x957f8095 in _pthread_start ()
+#17 0x957f7f52 in thread_start ()
+(gdb) up
+#1  0x002fdd45 in mi_open (name=0x1058c90 "./takushi/class", mode=2, open_flags=66) at mi_open.c:132
+(gdb) c
+Continuing.
+
+Breakpoint 12, my_read (Filedes=22, Buffer=0xb005b2d0 "\004]", Count=304, MyFlags=4) at my_read.c:39
+(gdb) up
+#1  0x002fe134 in mi_open (name=0x1058c90 "./takushi/class", mode=2, open_flags=66) at mi_open.c:194
+(gdb) c
+Continuing.
+
+Breakpoint 12, my_read (Filedes=23, Buffer=0x89a018 "", Count=72, MyFlags=32) at my_read.c:39
+(gdb) up
+#1  0x00375897 in _my_b_read (info=0x106536c, Buffer=0xb0061508 "8\025\006\0339", Count=20) at mf_iocache.c:535
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) finish
+Run till exit from #0  my_read (Filedes=23, Buffer=0x89a018 "\001", Count=72, MyFlags=32) at my_read.c:83
+0x00375897 in _my_b_read (info=0x106536c, Buffer=0xb0061508 "8\025\006\0339", Count=20) at mf_iocache.c:535
+Value returned is $23 = 72
+(gdb) p info->buf
+There is no member named buf.
+(gdb) p info->buffer
+$24 = (uchar *) 0x89a018 "\001"
+(gdb) x/40x info->buffer
+0x89a018:	0x00150001	0x000001f8	0x6f6b0600	0x31696775
+0x89a028:	0x6e696b07	0x756f796a	0x01130003	0x0002f800
+0x89a038:	0x6b060000	0x6967756f	0x72690532	0x006f746f
+0x89a048:	0x02120003	0x0003f800	0x6b060000	0x6967756f
+0x89a058:	0x6f680433	0x00006567	0x00000000	0x00000000
+0x89a068:	0x00000000	0x00000000	0x00000000	0x00000000
+0x89a078:	0x00000000	0x00000000	0x00000000	0x00000000
+0x89a088:	0x00000000	0x00000000	0x00000000	0x00000000
+0x89a098:	0x00000000	0x00000000	0x00000000	0x00000000
+0x89a0a8:	0x00000000	0x00000000	0x00000000	0x00000000
+(gdb) x/80c info->buffer
+0x89a018:	1 '\001'	0 '\0'	21 '\025'	0 '\0'	-8 ''	1 '\001'	0 '\0'	0 '\0'
+0x89a020:	0 '\0'	6 '\006'	107 'k'	111 'o'	117 'u'	103 'g'	105 'i'	49 '1'
+0x89a028:	7 '\a'	107 'k'	105 'i'	110 'n'	106 'j'	121 'y'	111 'o'	117 'u'
+0x89a030:	3 '\003'	0 '\0'	19 '\023'	1 '\001'	0 '\0'	-8 ''	2 '\002'	0 '\0'
+0x89a038:	0 '\0'	0 '\0'	6 '\006'	107 'k'	111 'o'	117 'u'	103 'g'	105 'i'
+0x89a040:	50 '2'	5 '\005'	105 'i'	114 'r'	111 'o'	116 't'	111 'o'	0 '\0'
+0x89a048:	3 '\003'	0 '\0'	18 '\022'	2 '\002'	0 '\0'	-8 ''	3 '\003'	0 '\0'
+0x89a050:	0 '\0'	0 '\0'	6 '\006'	107 'k'	111 'o'	117 'u'	103 'g'	105 'i'
+0x89a058:	51 '3'	4 '\004'	104 'h'	111 'o'	103 'g'	101 'e'	0 '\0'	0 '\0'
+0x89a060:	0 '\0'	0 '\0'	0 '\0'	0 '\0'	0 '\0'	0 '\0'	0 '\0'	0 '\0'
+(gdb) where
+#0  0x00375897 in _my_b_read (info=0x106536c, Buffer=0xb0061508 "8\025\006\0339", Count=20) at mf_iocache.c:535
+#1  0x00311099 in _mi_read_cache (info=0x106536c, buff=0xb0061508 "8\025\006\0339", pos=0, length=20, flag=3) at mi_cache.c:84
+#2  0x0031bf43 in _mi_read_rnd_dynamic_record (info=0x1065218, buf=0x1064628 "", filepos=0, skip_deleted_blocks=1 '\001') at mi_dynrec.c:1746
+#3  0x00310cff in mi_scan (info=0x1065218, buf=0x1064628 "") at mi_scan.c:44
+#4  0x0034d642 in ha_myisam::rnd_next (this=0x1064228, buf=0x1064628 "") at ha_myisam.cc:1696
+#5  0x0022290e in rr_sequential (info=0x105e6b0) at records.cc:381
+#6  0x0017cc2d in join_init_read_record (tab=0x105e670) at sql_select.cc:11780
+#7  0x0017976d in sub_select (join=0x105cfb8, join_tab=0x105e670, end_of_records=false) at sql_select.cc:11108
+#8  0x00179b54 in do_select (join=0x105cfb8, fields=0x10289d8, table=0x0, procedure=0x0) at sql_select.cc:10865
+#9  0x00190d58 in JOIN::exec (this=0x105cfb8) at sql_select.cc:2199
+#10 0x001911e3 in mysql_select (thd=0x1027618, rref_pointer_array=0x1028a3c, tables=0x105cd58, wild_num=1, fields=@0x10289d8, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x105cfa0, unit=0x10286dc, select_lex=0x1028944) at sql_select.cc:2378
+#11 0x00191569 in handle_select (thd=0x1027618, lex=0x1028680, result=0x105cfa0, setup_tables_done_option=0) at sql_select.cc:268
+#12 0x000f8696 in execute_sqlcom_select (thd=0x1027618, all_tables=0x105cd58) at sql_parse.cc:4982
+#13 0x000ff052 in mysql_execute_command (thd=0x1027618) at sql_parse.cc:2204
+#14 0x00108cc3 in mysql_parse (thd=0x1027618, inBuf=0x105cc28 "select * from class", length=19, found_semicolon=0xb0062df4) at sql_parse.cc:5902
+#15 0x00109a27 in dispatch_command (command=COM_QUERY, thd=0x1027618, packet=0x1054419 "", packet_length=19) at sql_parse.cc:1216
+#16 0x0010ad14 in do_command (thd=0x1027618) at sql_parse.cc:857
+#17 0x000f6318 in handle_one_connection (arg=0x1027618) at sql_connect.cc:1115
+#18 0x957f8095 in _pthread_start ()
+#19 0x957f7f52 in thread_start ()
+(gdb) s
+(gdb) p Buffer
+$25 = (uchar *) 0xb0061508 "8\025\006\0339"
+(gdb) p Count
+$26 = 20
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) s
+(gdb) 
+_db_return_ (_line_=550, _sfunc_=0xb006136c, _sfile_=0xb0061368, _slevel_=0xb0061364) at dbug.c:1040
+(gdb) finish
+Run till exit from #0  _db_return_ (_line_=550, _sfunc_=0xb006136c, _sfile_=0xb0061368, _slevel_=0xb0061364) at dbug.c:1040
+0x0037585c in _my_b_read (info=0x106536c, Buffer=0xb0061508 "\001", Count=20) at mf_iocache.c:550
+(gdb) s
+(gdb) 
+_mi_read_cache (info=0x106536c, buff=0xb0061508 "\001", pos=0, length=20, flag=3) at mi_cache.c:85
+(gdb) n
+(gdb) 
+_mi_read_rnd_dynamic_record (info=0x1065218, buf=0x1064628 "", filepos=0, skip_deleted_blocks=1 '\001') at mi_dynrec.c:1751
+(gdb) s
+_mi_get_block_info (info=0xb0061508, file=-1, filepos=0) at mi_dynrec.c:1877
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+_mi_read_rnd_dynamic_record (info=0x1065218, buf=0x1064628 "", filepos=0, skip_deleted_blocks=1 '\001') at mi_dynrec.c:1763
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) s
+(gdb) 
+(gdb) 
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) s
+_mi_read_cache (info=0x106536c, buff=0x1065641 "", pos=20, length=4, flag=1) at mi_cache.c:44
+(gdb) n
+(gdb) s
+(gdb) 
+(gdb) 
+(gdb) n
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+_mi_read_rnd_dynamic_record (info=0x1065218, buf=0x1064628 "", filepos=20, skip_deleted_blocks=1 '\001') at mi_dynrec.c:1847
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) l fast_mi_writeinfo
+Function "fast_mi_wrireinfo" not defined.
+(gdb) l fast_mi_writeinfo
+Function "fast_mi_writeinfo" not defined.
+(gdb) up
+#1  0x00310cff in mi_scan (info=0x1065218, buf=0x1064628 "") at mi_scan.c:44
+(gdb) down
+#0  _mi_read_rnd_dynamic_record (info=0x1065218, buf=0x1064628 "", filepos=18446744073709551615, skip_deleted_blocks=0 '\0') at mi_dynrec.c:1859
+(gdb) s
+_mi_rec_unpack (info=0x1065218, to=0x1064628 "", from=0x1065630 "", found_length=21) at mi_dynrec.c:1203
+(gdb) n
+(gdb) s
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+_mi_read_rnd_dynamic_record (info=0x1065218, buf=0x1064628 "\001", filepos=18446744073709551615, skip_deleted_blocks=0 '\0') at mi_dynrec.c:1861
+(gdb) 
+(gdb) 
+mi_scan (info=0x1065218, buf=0x1064628 "\001") at mi_scan.c:45
+(gdb) 
+ha_myisam::rnd_next (this=0x1064228, buf=0x1064628 "\001") at ha_myisam.cc:1697
+(gdb) 
+Current language:  auto; currently c++
+(gdb) 
+(gdb) 
+rr_sequential (info=0x105e6b0) at records.cc:398
+(gdb) 
+(gdb) 
+join_init_read_record (tab=0x105e670) at sql_select.cc:11781
+(gdb) s
+sub_select (join=0x105cfb8, join_tab=0x105e670, end_of_records=false) at sql_select.cc:11109
+(gdb) 
+evaluate_join_record (join=0x105cfb8, join_tab=0x105e670, error=0) at sql_select.cc:11140
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) s
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) n
+(gdb) 
+(gdb) s
+end_send (join=0x105cfb8, join_tab=0x105e7e8, end_of_records=false) at sql_select.cc:11954
+(gdb) n
+(gdb) s
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+select_send::send_data (this=0x105cfa0, items=@0x10289d8) at sql_class.cc:1564
+(gdb) 
+(gdb) 
+ha_release_temporary_latches (thd=0x1027618) at handler.cc:1681
+(gdb) n
+(gdb) 
+(gdb) 
+select_send::send_data (this=0x105cfa0, items=@0x10289d8) at sql_class.cc:1577
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) s
+Item_field::send (this=0x105e180, protocol=0x1027924, buffer=0xb0061584) at item.cc:5384
+(gdb) 
+Protocol_text::store (this=0x1027924, field=0x1064340) at protocol.cc:915
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) s
+dbug_tmp_use_all_columns (table=0x1058418, bitmap=0x10584a4) at table.h:1680
+(gdb) 
+tmp_use_all_columns (table=0x1058418, bitmap=0x10584a4) at table.h:1662
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+dbug_tmp_use_all_columns (table=0x1058418, bitmap=0x10584a4) at table.h:1684
+(gdb) 
+Protocol_text::store (this=0x1027924, field=0x1064340) at protocol.cc:930
+(gdb) s
+Field::val_str (this=0x1064340, str=0xb00611e0) at field.h:121
+(gdb) 
+Field_long::val_str (this=0x1064340, val_buffer=0xb00611e0, val_ptr=0xb00611e0) at field.cc:3698
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+0x00021508 in Field::val_str (this=0x1064340, str=0xb00611e0) at field.h:121
+(gdb) s
+Protocol_text::store (this=0x1027924, field=0x1064340) at protocol.cc:932
+(gdb) 
+(gdb) n
+(gdb) s
+String::charset (this=0xb00611e0) at sql_string.h:92
+(gdb) 
+String::length (this=0xb00611e0) at sql_string.h:93
+(gdb) 
+String::ptr (this=0xb00611e0) at sql_string.h:99
+(gdb) 
+Protocol::store_string_aux (this=0x1027924, from=0xb0060ee2 "1", length=1, fromcs=0x5841c0, tocs=0x564380) at protocol.cc:769
+(gdb) 
+my_charset_same (cs1=0x5841c0, cs2=0x564380) at charset.c:36
+(gdb) n
+Current language:  auto; currently c
+(gdb) 
+Protocol::store_string_aux (this=0x1027924, from=0xb0060ee2 "1", length=1, fromcs=0x5841c0, tocs=0x564380) at protocol.cc:777
+(gdb) s
+Current language:  auto; currently c++
+Protocol::net_store_data (this=0x1027924, from=0xb0060ee2 "1", length=1) at protocol.cc:46
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+Protocol::store_string_aux (this=0x1027924, from=0xb0060ee2 "1", length=1, fromcs=0x5841c0, tocs=0x564380) at protocol.cc:778
+(gdb) 
+Protocol_text::store (this=0x1027924, field=0x1064340) at protocol.cc:937
+(gdb) 
+Item_field::send (this=0x105e180, protocol=0x1027924, buffer=0xb0061584) at item.cc:5385
+(gdb) 
+select_send::send_data (this=0x105cfa0, items=@0x10289d8) at sql_class.cc:1597
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+end_send (join=0x105cfb8, join_tab=0x105e7e8, end_of_records=false) at sql_select.cc:11965
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+evaluate_join_record (join=0x105cfb8, join_tab=0x105e670, error=0) at sql_select.cc:11225
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+sub_select (join=0x105cfb8, join_tab=0x105e670, end_of_records=false) at sql_select.cc:11112
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+do_select (join=0x105cfb8, fields=0x10289d8, table=0x0, procedure=0x0) at sql_select.cc:10866
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) s
+select_send::send_eof (this=0x105cfa0) at sql_class.cc:1617
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+do_select (join=0x105cfb8, fields=0x10289d8, table=0x0, procedure=0x0) at sql_select.cc:10890
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+JOIN::exec (this=0x105cfb8) at sql_select.cc:2200
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+mysql_select (thd=0x1027618, rref_pointer_array=0x1028a3c, tables=0x105cd58, wild_num=1, fields=@0x10289d8, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x105cfa0, unit=0x10286dc, select_lex=0x1028944) at sql_select.cc:2380
+(gdb) 
+(gdb) 
+(gdb) n
+(gdb) s
+set_thd_proc_info (thd=0x1027618, info=0x3fa630 "end", calling_function=0x3ea443 "mysql_select", calling_file=0x3e925e "sql_select.cc", calling_line=2399) at sql_class.cc:269
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+mysql_select (thd=0x1027618, rref_pointer_array=0x1028a3c, tables=0x105cd58, wild_num=1, fields=@0x10289d8, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x105cfa0, unit=0x10286dc, select_lex=0x1028944) at sql_select.cc:2400
+(gdb) s
+st_select_lex::cleanup (this=0x1028944) at sql_union.cc:761
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+mysql_select (thd=0x1027618, rref_pointer_array=0x1028a3c, tables=0x105cd58, wild_num=1, fields=@0x10289d8, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x105cfa0, unit=0x10286dc, select_lex=0x1028944) at sql_select.cc:2401
+(gdb) 
+(gdb) 
+handle_select (thd=0x1027618, lex=0x1028680, result=0x105cfa0, setup_tables_done_option=0) at sql_select.cc:270
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+execute_sqlcom_select (thd=0x1027618, all_tables=0x105cd58) at sql_parse.cc:4983
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+mysql_execute_command (thd=0x1027618) at sql_parse.cc:4893
+(gdb) 
+(gdb) s
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) n
+(gdb) 
+mysql_parse (thd=0x1027618, inBuf=0x105cc28 "select * from class", length=19, found_semicolon=0xb0062df4) at sql_parse.cc:5914
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+dispatch_command (command=COM_QUERY, thd=0x1027618, packet=0x1054419 "", packet_length=19) at sql_parse.cc:1218
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) s
+net_end_statement (thd=0x1027618) at protocol.cc:386
+(gdb) n
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+dispatch_command (command=COM_QUERY, thd=0x1027618, packet=0x1054419 "", packet_length=19) at sql_parse.cc:1587
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+(gdb) 
+do_command (thd=0x1027618) at sql_parse.cc:861
+(gdb) b my_write
+Breakpoint 13 at 0x36bed0: file my_write.c, line 27.
+(gdb) c
+Continuing.
+
+Breakpoint 3, parse_sql (thd=0x1027618, parser_state=0xb00627f4, creation_ctx=0x0) at sql_parse.cc:7755
+(gdb) c
+Continuing.
+
+Breakpoint 13, my_write (Filedes=4, Buffer=0x1021c18 "*\027J\002\001", Count=105, MyFlags=52) at my_write.c:27
+(gdb) where
+#0  my_write (Filedes=4, Buffer=0x1021c18 "*\027J\002\001", Count=105, MyFlags=52) at my_write.c:27
+#1  0x00377d2e in my_b_flush_io_cache (info=0x5d2168, need_append_buffer_lock=0) at mf_iocache.c:1752
+#2  0x001baa5e in MYSQL_BIN_LOG::flush_and_sync (this=0x5d1e20) at log.cc:3579
+#3  0x001c2600 in MYSQL_BIN_LOG::write (this=0x5d1e20, event_info=0xb0061bac) at log.cc:4058
+#4  0x000d55e7 in THD::binlog_query (this=0x1027618, qtype=THD::ROW_QUERY_TYPE, query_arg=0x105cc28 "insert into class values(4,'kougi','4')", query_len=39, is_trans=false, suppress_use=false, killed_status_arg=THD::NOT_KILLED) at sql_class.cc:3723
+#5  0x00199075 in mysql_insert (thd=0x1027618, table_list=0x105cce8, fields=@0x1028be4, values_list=@0x1028c08, update_fields=@0x1028bfc, update_values=@0x1028bf0, duplic=DUP_ERROR, ignore=false) at sql_insert.cc:893
+#6  0x00101ed8 in mysql_execute_command (thd=0x1027618) at sql_parse.cc:3125
+#7  0x00108cc3 in mysql_parse (thd=0x1027618, inBuf=0x105cc28 "insert into class values(4,'kougi','4')", length=39, found_semicolon=0xb0062df4) at sql_parse.cc:5902
+#8  0x00109a27 in dispatch_command (command=COM_QUERY, thd=0x1027618, packet=0x1054419 "insert into class values(4,'kougi','4')", packet_length=39) at sql_parse.cc:1216
+#9  0x0010ad14 in do_command (thd=0x1027618) at sql_parse.cc:857
+#10 0x000f6318 in handle_one_connection (arg=0x1027618) at sql_connect.cc:1115
+#11 0x957f8095 in _pthread_start ()
+#12 0x957f7f52 in thread_start ()
+Current language:  auto; currently c
+(gdb) c
+Continuing.
+
+Breakpoint 3, parse_sql (thd=0x1027618, parser_state=0xb00627f4, creation_ctx=0x0) at sql_parse.cc:7755
+(gdb) c
+Continuing.
+Current language:  auto; currently c++
+
+Breakpoint 13, my_write (Filedes=4, Buffer=0x1021c18 "բ\027J\002\001", Count=105, MyFlags=52) at my_write.c:27
+(gdb) up
+#1  0x00377d2e in my_b_flush_io_cache (info=0x5d2168, need_append_buffer_lock=0) at mf_iocache.c:1752
+Current language:  auto; currently c
+(gdb) up
+#2  0x001baa5e in MYSQL_BIN_LOG::flush_and_sync (this=0x5d1e20) at log.cc:3579
+Current language:  auto; currently c++
+(gdb) c
+Continuing.
+
+Breakpoint 3, parse_sql (thd=0x1027618, parser_state=0xb00627f4, creation_ctx=0x0) at sql_parse.cc:7755
+(gdb) c
+Continuing.
+
+Breakpoint 3, parse_sql (thd=0x1027618, parser_state=0xb00627f4, creation_ctx=0x0) at sql_parse.cc:7755
+(gdb) c
+Continuing.
+
+Breakpoint 3, parse_sql (thd=0x1027618, parser_state=0xb00627f4, creation_ctx=0x0) at sql_parse.cc:7755
+(gdb) c
+Continuing.
+
+Breakpoint 12, my_read (Filedes=24, Buffer=0xb00607e0 "", Count=64, MyFlags=4) at my_read.c:39
+(gdb) 
+Continuing.
+Current language:  auto; currently c
+
+Breakpoint 12, my_read (Filedes=24, Buffer=0x904228 "h4z\025", '' <repeats 13 times>, "\003", Count=7, MyFlags=4) at my_read.c:39
+(gdb) 
+Continuing.
+
+Breakpoint 12, my_read (Filedes=24, Buffer=0x904278 '' <repeats 56 times>, "h4z\025h4z\025", Count=55, MyFlags=4) at my_read.c:39
+(gdb) 
+Continuing.
+
+Breakpoint 12, my_read (Filedes=24, Buffer=0xb00607e0 "\001\t\t\003", Count=288, MyFlags=4) at my_read.c:39
+(gdb) 
+Continuing.
+
+Breakpoint 12, my_read (Filedes=24, Buffer=0x904418 '' <repeats 200 times>..., Count=290, MyFlags=4) at my_read.c:39
+(gdb) d 12
+(gdb) c
+Continuing.
+
+Breakpoint 3, parse_sql (thd=0x1027618, parser_state=0xb00627f4, creation_ctx=0x0) at sql_parse.cc:7755
+(gdb) c
+Continuing.
+Current language:  auto; currently c++
+
+Breakpoint 3, parse_sql (thd=0x1027618, parser_state=0xb00627f4, creation_ctx=0x0) at sql_parse.cc:7755
+(gdb) c
+Continuing.
+
+Breakpoint 3, parse_sql (thd=0x1027618, parser_state=0xb00627f4, creation_ctx=0x0) at sql_parse.cc:7755
+(gdb) c
+Continuing.
+
+Breakpoint 3, parse_sql (thd=0x1027618, parser_state=0xb00627f4, creation_ctx=0x0) at sql_parse.cc:7755
+(gdb) c
+Continuing.
+
+Breakpoint 3, parse_sql (thd=0x1027618, parser_state=0xb00627f4, creation_ctx=0x0) at sql_parse.cc:7755
+(gdb) c
+Continuing.
+[Switching to process 1903 thread 0x2207]
+
+Breakpoint 3, parse_sql (thd=0x1027618, parser_state=0xb00627f4, creation_ctx=0x0) at sql_parse.cc:7755
+(gdb) c
+Continuing.
+
+Program received signal SIGUSR1, User defined signal 1.
+[Switching to process 1903 thread 0xa0b]
+0x958166f2 in select$DARWIN_EXTSN ()
+(gdb) c
+Continuing.
+[Switching to process 1903 thread 0x2403]
+
+Breakpoint 13, my_write (Filedes=4, Buffer=0x1021c18 "\025\027J\003\001", Count=19, MyFlags=52) at my_write.c:27
+(gdb) where
+#0  my_write (Filedes=4, Buffer=0x1021c18 "\025\027J\003\001", Count=19, MyFlags=52) at my_write.c:27
+#1  0x00377d2e in my_b_flush_io_cache (info=0x5d2168, need_append_buffer_lock=0) at mf_iocache.c:1752
+#2  0x00378072 in end_io_cache (info=0x5d2168) at mf_iocache.c:1825
+#3  0x001bd7ca in MYSQL_LOG::close (this=0x5d1e24, exiting=5) at log.cc:1927
+#4  0x001bf5c0 in MYSQL_BIN_LOG::close (this=0x5d1e20, exiting=5) at log.cc:4529
+#5  0x001bf776 in MYSQL_BIN_LOG::cleanup (this=0x5d1e20) at log.cc:2327
+#6  0x000e6590 in clean_up (print_message=true) at mysqld.cc:1238
+#7  0x000e6ac2 in unireg_end () at mysqld.cc:1192
+#8  0x000eaba5 in kill_server (sig_ptr=0x0) at mysqld.cc:1134
+#9  0x000eb263 in kill_server_thread (arg=0x0) at mysqld.cc:1155
+#10 0x957f8095 in _pthread_start ()
+#11 0x957f7f52 in thread_start ()
+Current language:  auto; currently c
+(gdb) up
+#1  0x00377d2e in my_b_flush_io_cache (info=0x5d2168, need_append_buffer_lock=0) at mf_iocache.c:1752
+(gdb) up
+#2  0x00378072 in end_io_cache (info=0x5d2168) at mf_iocache.c:1825
+(gdb) up
+#3  0x001bd7ca in MYSQL_LOG::close (this=0x5d1e24, exiting=5) at log.cc:1927
+Current language:  auto; currently c++
+(gdb) c
+Continuing.
+
+Program exited normally.
+(gdb)detach
+(gdb) ls
+Undefined command: "ls".  Try "help".
+(gdb) quit
+
+Debugger finished