DDD session : GNU DDD 3.3.10 (x86_64-pc-linux-gnu), by Dorothea Lütkehaus and Andreas Zeller. Copyright © 1995-1999 Technische Universität Braunschweig, Germany. Copyright © 1999-2001 Universität Passau, Germany. Copyright © 2001 Universität des Saarlandes, Germany. Copyright © 2001-2004 Free Software Foundation, Inc. Using host libthread_db library "/lib/tls/libthread_db.so.1". Breakpoint 1 at 0x6042a2: file sql_parse.cc, line 5889. (gdb) run [Thread debugging using libthread_db enabled] [New Thread 46912506678432 (LWP 21203)] [New Thread 1082132832 (LWP 21206)] [New Thread 1090525536 (LWP 21207)] [New Thread 1098918240 (LWP 21208)] [New Thread 1107310944 (LWP 21209)] InnoDB: The first specified data file ./ibdata1 did not exist: InnoDB: a new database to be created! 060608 1:12:00 InnoDB: Setting file ./ibdata1 size to 10 MB InnoDB: Database physically writes the file full: wait... 060608 1:12:00 InnoDB: Log file ./ib_logfile0 did not exist: new to be created InnoDB: Setting log file ./ib_logfile0 size to 5 MB InnoDB: Database physically writes the file full: wait... 060608 1:12:00 InnoDB: Log file ./ib_logfile1 did not exist: new to be created InnoDB: Setting log file ./ib_logfile1 size to 5 MB InnoDB: Database physically writes the file full: wait... [New Thread 1115703648 (LWP 21210)] [New Thread 1124096352 (LWP 21211)] InnoDB: Doublewrite buffer not found: creating new InnoDB: Doublewrite buffer created InnoDB: Creating foreign key constraint system tables InnoDB: Foreign key constraint system tables created [New Thread 1132489056 (LWP 21212)] 060608 1:12:00 InnoDB: Started; log sequence number 0 0 [New Thread 1132755296 (LWP 21213)] [New Thread 1133021536 (LWP 21214)] 060608 1:12:00 [Note] /home/mysqldev/mysql-5.1/sql/mysqld: ready for connections. Version: '5.1.12-beta-debug-log' socket: '/home/mysqldev/mysql-5.1/mysql-test/var/tmp/master.sock' port: 9306 Source distribution [New Thread 1133287776 (LWP 21215)] 060608 1:12:00 [Note] SCHEDULER: Manager thread booting 060608 1:12:00 [Note] SCHEDULER: Loaded 0 events 060608 1:12:00 [Note] SCHEDULER: Suspending operations [New Thread 1133554016 (LWP 21259)] [Switching to Thread 1133554016 (LWP 21259)] Breakpoint 1, mysql_parse (thd=0x3, inBuf=0x1c1d078 "Pû¤", length=3) at sql_parse.cc:5889 (gdb) cont [New Thread 1133820256 (LWP 21261)] [New Thread 1134086496 (LWP 21262)] [New Thread 1134352736 (LWP 21267)] [Thread 1134352736 (zombie) exited] Program received signal SIGUSR1, User defined signal 1. [Switching to Thread 1133820256 (LWP 21261)] 0x00002aaaaade4703 in pthread_sigmask () from /lib/tls/libpthread.so.0 (gdb) where #0 0x00002aaaaade4703 in pthread_sigmask () from /lib/tls/libpthread.so.0 #1 0x00000000009a08cb in thr_alarm (alrm=0x43948248, sec=0, alarm_data=0x43948d00) at thr_alarm.c:213 #2 0x000000000074eadd in mysql_real_connect (mysql=0x1c63058, host=0x1c56045 "127.0.0.1", user=0x1c56040 "root", passwd=0xae0dc7 "", db=0x1c56054 "federated", port=9308, unix_socket=0x0, client_flag=0) at client.c:1848 #3 0x00000000006d7caa in ha_federated::open (this=0x1c3cd98, name=0x1c53b5d "./federated/t1", mode=0, test_if_locked=4294967295) at ha_federated.cc:1479 #4 0x00000000006b405d in handler::ha_open (this=0x1c3cd98, table_arg=0x1c3c0f8, name=0x1c53b5d "./federated/t1", mode=2, test_if_locked=2) at handler.cc:1411 #5 0x00000000006353bb in open_table_from_share (thd=0x1c28238, share=0x1c537f8, alias=0x1c3c1e8 "$ÑÃ\001", db_stat=39, prgflag=29610272, ha_open_flags=0, outparam=0x1c3c0f8, is_create_table=false) at table.cc:1510 #6 0x000000000062c285 in open_unireg_entry (thd=0x1c28238, entry=0x1c3c0f8, table_list=0x1c45710, alias=0x1c45708 "t1", cache_key=0x43949ab0 "federated", cache_key_length=13, mem_root=0x0) at sql_base.cc:2727 #7 0x000000000062ad24 in open_table (thd=0x1c28238, table_list=0x1c45710, mem_root=0x43949bc0, refresh=0x43949b9c, flags=0) at sql_base.cc:2037 #8 0x000000000062c659 in open_tables (thd=0x1c28238, start=0x43949c48, counter=0x43949c54, flags=0) at sql_base.cc:2892 #9 0x000000000062cc67 in open_and_lock_tables (thd=0x1c28238, tables=0x1c45710) at sql_base.cc:3183 #10 0x0000000000658682 in mysql_insert (thd=0x1c28238, table_list=0x1c45710, fields=@0x1c28b68, values_list=@0x1c28bb0, update_fields=@0x1c28b98, update_values=@0x1c28b80, duplic=DUP_ERROR, ignore=false) at sql_insert.cc:347 #11 0x00000000005fe944 in mysql_execute_command (thd=0x1c28238) at sql_parse.cc:3334 #12 0x000000000060441a in mysql_parse (thd=0x1c28238, inBuf=0x1c45638 "INSERT INTO federated.t1 (id, name) VALUES (1, 'foo')", length=29524640) at sql_parse.cc:5939 #13 0x00000000005fb1c7 in dispatch_command (command=COM_QUERY, thd=0x1c28238, packet=0x1c4566d "", packet_length=54) at sql_parse.cc:1764 #14 0x00000000005fa9a8 in do_command (thd=0x1c28238) at sql_parse.cc:1550 #15 0x00000000005f9c0e in handle_one_connection (arg=0x2) at sql_parse.cc:1190 #16 0x00002aaaaade114a in start_thread () from /lib/tls/libpthread.so.0 #17 0x00002aaaab34b943 in clone () from /lib/tls/libc.so.6 #18 0x0000000000000000 in ?? () (gdb) cont Program received signal SIGUSR1, User defined signal 1. 0x00002aaaaade4703 in pthread_sigmask () from /lib/tls/libpthread.so.0 (gdb) c Program received signal SIGUSR1, User defined signal 1. 0x00002aaaaade4703 in pthread_sigmask () from /lib/tls/libpthread.so.0 (gdb) c Program received signal SIGUSR1, User defined signal 1. 0x00002aaaaade4703 in pthread_sigmask () from /lib/tls/libpthread.so.0 (gdb) c Program received signal SIGUSR1, User defined signal 1. 0x00002aaaaade4703 in pthread_sigmask () from /lib/tls/libpthread.so.0 (gdb) c Program received signal SIGUSR1, User defined signal 1. 0x00002aaaaade4703 in pthread_sigmask () from /lib/tls/libpthread.so.0 (gdb) c Program received signal SIGSEGV, Segmentation fault. cli_fetch_lengths (to=0x1c72160, column=0x8f8f8f8f8f8f8f8f, field_count=2408550335) at client.c:1136 Current language: auto; currently c (gdb) where #0 cli_fetch_lengths (to=0x1c72160, column=0x8f8f8f8f8f8f8f8f, field_count=2408550335) at client.c:1136 #1 0x0000000000750c3e in mysql_fetch_lengths (res=0x1c720d8) at client.c:2808 #2 0x00000000006d698d in ha_federated::convert_row_to_internal_format (this=0x1c62c68, record=0x1c63068 "\005", row=0x8f8f8f8f8f8f8f8f) at ha_federated.cc:773 #3 0x00000000006d9a15 in ha_federated::rnd_next (this=0x1c62c68, buf=0x1c63068 "\005") at ha_federated.cc:2327 #4 0x00000000006d9b47 in ha_federated::rnd_pos (this=0x1c62c68, buf=0x1c63068 "\005", pos=0x1c616d8 "8MÈ\001") at ha_federated.cc:2374 #5 0x00000000006ae56c in rr_from_pointers (info=0x1c62a78) at records.cc:443 #6 0x00000000006a5862 in QUICK_INDEX_MERGE_SELECT::get_next (this=0x1c629d0) at opt_range.cc:7444 #7 0x00000000006ae34a in rr_quick (info=0x1c6dd98) at records.cc:301 #8 0x000000000064e427 in join_init_read_record (tab=0x1c6dd20) at sql_select.cc:10390 #9 0x000000000064d203 in sub_select (join=0x1c6c078, join_tab=0x1c6dd20, end_of_records=191) at sql_select.cc:9756 #10 0x000000000064cda3 in do_select (join=0x1c6c078, fields=0x1c287f8, table=0x0, procedure=0x0) at sql_select.cc:9520 #11 0x000000000063e0ad in JOIN::exec (this=0x1c6c078) at sql_select.cc:1760 #12 0x000000000063e677 in mysql_select (thd=0x1c28238, rref_pointer_array=0x1c28930, tables=0x1c45830, wild_num=1, fields=@0x1c287f8, conds=0x1c46928, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x1c46a80, unit=0x1c28340, select_lex=0x1c286f8) at sql_select.cc:1922 #13 0x000000000063a391 in handle_select (thd=0x1c28238, lex=0x1c282a0, result=0x1c46a80, setup_tables_done_option=0) at sql_select.cc:238 #14 0x00000000005fce14 in mysql_execute_command (thd=0x1c28238) at sql_parse.cc:2546 #15 0x000000000060441a in mysql_parse (thd=0x1c28238, inBuf=0x1c45638 "SELECT * FROM federated.t1 WHERE (id = 5 AND col2 = 'Two two')\nOR (col2 = 444 AND col3 = 4444444)", length=29524640) at sql_parse.cc:5939 #16 0x00000000005fb1c7 in dispatch_command (command=COM_QUERY, thd=0x1c28238, packet=0x1c45699 "", packet_length=98) at sql_parse.cc:1764 #17 0x00000000005fa9a8 in do_command (thd=0x1c28238) at sql_parse.cc:1550 #18 0x00000000005f9c0e in handle_one_connection (arg=0x1c72160) at sql_parse.cc:1190 #19 0x00002aaaaade114a in start_thread () from /lib/tls/libpthread.so.0 #20 0x00002aaaab34b943 in clone () from /lib/tls/libc.so.6 #21 0x0000000000000000 in ?? () (gdb) p column $1 = (MYSQL_ROW) 0x8f8f8f8f8f8f8f8f (gdb) up #1 0x0000000000750c3e in mysql_fetch_lengths (res=0x1c720d8) at client.c:2808 (gdb) p res $2 = (MYSQL_RES *) 0x1c720d8 (gdb) p *res $3 = {row_count = 0, fields = 0x1c8ad38, data = 0x1c61648, data_cursor = 0x8f8f8f8f8f8f8f8f, lengths = 0x1c72160, handle = 0x0, field_alloc = {free = 0x1c8ad28, used = 0x0, pre_alloc = 0x0, min_malloc = 32, block_size = 8132, block_num = 5, first_block_usage = 0, error_handler = 0}, field_count = 5, current_field = 0, row = 0x0, current_row = 0x8f8f8f8f8f8f8f8f, eof = 1 '\001', unbuffered_fetch_cancelled = 0 '\0', methods = 0xd3f9c0} (gdb) up #2 0x00000000006d698d in ha_federated::convert_row_to_internal_format (this=0x1c62c68, record=0x1c63068 "\005", row=0x8f8f8f8f8f8f8f8f) at ha_federated.cc:773 Current language: auto; currently c++ (gdb) p this $4 = (ha_federated * const) 0x1c62c68 (gdb) p *this $5 = { = { = {}, _vptr.handler = 0xaba190, table_share = 0x1c537f8, table = 0x1c3bfe8, cached_table_flags = 68717578, estimation_rows_to_insert = 0, ht = 0xe579a0, ref = 0x1c62fc8 "8MÈ\001", dup_ref = 0x1c62fd0 '¥' , "h4z\025\217\217\217\217\217\217\217\217\001\004", stats = {data_file_length = 0, max_data_file_length = 0, index_file_length = 0, max_index_file_length = 11936128518282651045, delete_length = 0, auto_increment_value = 0, records = 10, deleted = 0, mean_rec_length = 34, create_time = 0, check_time = 0, update_time = 2006, block_size = 0}, multi_range_sorted = false, multi_range_curr = 0x1c72098, multi_range_end = 0x1c72098, multi_range_buffer = 0x0, save_end_range = {key = 0xa5a5a5a5a5a5a5a5
, length = 2779096485, flag = 2779096485}, end_range = 0xa5a5a5a5a5a5a5a5, range_key_part = 0xa5a5a5a5a5a5a5a5, key_compare_result_on_equal = -1515870811, eq_range = 165, errkey = 2779096485, key_used_on_scan = 64, active_index = 64, ref_length = 8, ft_handler = 0x0, inited = RND, auto_increment_column_changed = 165, implicit_emptied = false, pushed_cond = 0x0}, lock = {owner = 0x1c29cb0, next = 0x0, prev = 0x1c639b0, lock = 0x1c63920, cond = 0x0, type = TL_READ, status_param = 0x0, debug_print_param = 0x1c3bfe8}, share = 0x1c63858, mysql = 0x1c63ab8, stored_result = 0x1c720d8, ref_length = 8, fetch_num = 2779096485, current_position = 0x1c84d38, remote_error_number = -1515870811, remote_error_buf = '¥' , trx_next = 0x0} (gdb) p stored_result $6 = (MYSQL_RES *) 0x1c720d8 (gdb) p *stored_result $7 = {row_count = 0, fields = 0x1c8ad38, data = 0x1c61648, data_cursor = 0x8f8f8f8f8f8f8f8f, lengths = 0x1c72160, handle = 0x0, field_alloc = {free = 0x1c8ad28, used = 0x0, pre_alloc = 0x0, min_malloc = 32, block_size = 8132, block_num = 5, first_block_usage = 0, error_handler = 0}, field_count = 5, current_field = 0, row = 0x0, current_row = 0x8f8f8f8f8f8f8f8f, eof = 1 '\001', unbuffered_fetch_cancelled = 0 '\0', methods = 0xd3f9c0} (gdb) up #3 0x00000000006d9a15 in ha_federated::rnd_next (this=0x1c62c68, buf=0x1c63068 "\005") at ha_federated.cc:2327 (gdb) p current_position $8 = (MYSQL_ROW_OFFSET) 0x1c84d38 (gdb)