mysqld-debug.exe!merge_buffers(st_sort_param * param=0x30e4e1f4, st_io_cache * from_file=0x30e4e238, st_io_cache * to_file=0x30e4e104, unsigned char * sort_buffer=0x0287c678, st_buffpek * lastbuff=0x028803b8, st_buffpek * Fb=0x02880398, st_buffpek * Tb=0x02880378, int flag=0x00000000) Line 1060 + 0x14 bytes C++ mysqld-debug.exe!merge_many_buff(st_sort_param * param=0x30e4e1f4, unsigned char * sort_buffer=0x0287c678, st_buffpek * buffpek=0x02880398, unsigned int * maxbuffer=0x30e4e1f0, st_io_cache * t_file=0x30e4e238) Line 935 + 0x46 bytes C++ mysqld-debug.exe!filesort(THD * thd=0x0286bb70, st_table * table=0x0288c040, st_sort_field * sortorder=0x028ade98, unsigned int s_length=0x00000002, SQL_SELECT * select=0x028ada18, unsigned long max_rows=0xffffffff, unsigned long * examined_rows=0x30e4e438) Line 262 + 0x22 bytes C++ mysqld-debug.exe!create_sort_index(THD * thd=0x0286bb70, JOIN * join=0x02881490, st_order * order=0x02881028, unsigned long filesort_limit=0xffffffff, unsigned long select_limit=0xffffffff) Line 12472 + 0x27 bytes C++ mysqld-debug.exe!JOIN::exec() Line 1954 + 0xa4 bytes C++ mysqld-debug.exe!mysql_select(THD * thd=0x0286bb70, Item * * * rref_pointer_array=0x0286cbe0, st_table_list * tables=0x02880d88, unsigned int wild_num=0x00000000, List & fields={...}, Item * conds=0x00000000, unsigned int og_num=0x00000002, st_order * order=0x00000000, st_order * group=0x02881028, Item * having=0x02881318, st_order * proc_param=0x00000000, unsigned __int64 select_options=0x0000000090844a10, select_result * result=0x02881420, st_select_lex_unit * unit=0x0286c838, st_select_lex * select_lex=0x0286cab0) Line 2164 C++ mysqld-debug.exe!handle_select(THD * thd=0x0286bb70, st_lex * lex=0x0286c7d0, select_result * result=0x02881420, unsigned long setup_tables_done_option=0x00000000) Line 255 + 0x9f bytes C++ mysqld-debug.exe!mysql_execute_command(THD * thd=0x0286bb70) Line 3065 + 0x16 bytes C++ mysqld-debug.exe!mysql_parse(THD * thd=0x0286bb70, char * inBuf=0x02880778, unsigned int length=0x00000074) Line 5928 + 0x9 bytes C++ mysqld-debug.exe!dispatch_command(enum_server_command command=COM_QUERY, THD * thd=0x0286bb70, char * packet=0x028782e9, unsigned int packet_length=0x00000075) Line 1795 + 0x17 bytes C++ mysqld-debug.exe!do_command(THD * thd=0x0286bb70) Line 1577 + 0x31 bytes C++ mysqld-debug.exe!handle_one_connection(void * arg=0x0286bb70) Line 1191 + 0x9 bytes C++ mysqld-debug.exe!pthread_start(void * param=0x0286b6a0) Line 62 + 0x7 bytes C mysqld-debug.exe!_callthreadstart() Line 293 + 0xf bytes C mysqld-debug.exe!_threadstart(void * ptd=0x0287c320) Line 277 C kernel32.dll!FlsSetValue() + 0x136 bytes [Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll] int merge_buffers(SORTPARAM *param, IO_CACHE *from_file, IO_CACHE *to_file, uchar *sort_buffer, BUFFPEK *lastbuff, BUFFPEK *Fb, BUFFPEK *Tb, int flag) error=0; rec_length= param->rec_length; res_length= param->res_length; sort_length= param->sort_length; offset= rec_length-res_length; maxcount= (ulong) (param->keys/((uint) (Tb-Fb) +1)); <-----------CRASH to_start_filepos= my_b_tell(to_file); strpos= (uchar*) sort_buffer; org_max_rows=max_rows= param->max_rows; Local variables from merge_buffers() frame ------------------------------------------ - param 0x30e4e1f4 {rec_length=0x00000009 sort_length=0x00000009 ref_length=0x00000007 ...} st_sort_param * rec_length 0x00000009 unsigned int sort_length 0x00000009 unsigned int ref_length 0x00000007 unsigned int addon_length 0x00000000 unsigned int res_length 0x00000007 unsigned int keys 0x0000000a unsigned int max_rows 0xffffffff unsigned long examined_rows 0xfffffffe unsigned long + sort_form 0x0288c040 {s=0x0288c570 file=0x0288c7d0 next=0x00000000 ...} st_table * + local_sortorder 0x028ade98 {field=0x0288c910 item=0x00000000 length=0x00000001 ...} st_sort_field * + end 0x028aded0 {field=0x00000000 item=0xa5a5a5a5 length=0xa5a5a5a5 ...} st_sort_field * + addon_field 0x00000000 {field=??? offset=??? null_offset=??? ...} st_sort_addon_field * + unique_buff 0x00000000 unsigned char * not_killable 0x00000000 int + tmp_buffer 0x00000000 char * - from_file 0x30e4e238 {pos_in_file=0x0000000000000000 end_of_file=0x00000008ffffffee read_pos=0x028ef0e0 "" ...} st_io_cache * pos_in_file 0x0000000000000000 unsigned __int64 end_of_file 0x00000008ffffffee unsigned __int64 + read_pos 0x028ef0e0 "" unsigned char * + read_end 0x028ef0e0 "" unsigned char * + buffer 0x028ef0e0 "" unsigned char * + request_pos 0x028ef0e0 "" unsigned char * + write_buffer 0x028ef0e0 "" unsigned char * + append_read_pos 0x028ef0e0 "" unsigned char * + write_pos 0x028ef0e0 "" unsigned char * + write_end 0x028fe0f2 "" unsigned char * + current_pos 0x30e4e248 unsigned char * * + current_end 0x30e4e24c unsigned char * * + append_buffer_lock {DebugInfo=0x30e4e28c LockCount=0x00805329 RecursionCount=0x000000bc ...} _RTL_CRITICAL_SECTION + share 0x00000000 {mutex={...} cond={...} cond_writer={...} ...} st_io_cache_share * read_function 0x006087b0 _my_b_read(st_io_cache *, unsigned char *, unsigned int) int (st_io_cache *, unsigned char *, unsigned int)* write_function 0x00609e30 _my_b_write(st_io_cache *, const unsigned char *, unsigned int) int (st_io_cache *, const unsigned char *, unsigned int)* type READ_CACHE cache_type pre_read 0x00000000 int (st_io_cache *)* post_read 0x00000000 int (st_io_cache *)* pre_close 0x00000000 int (st_io_cache *)* disk_writes 0x00090000 unsigned long arg 0x00000000 void * + file_name 0x00000000 char * + dir 0x0287c788 "f:\" char * + prefix 0x0287c7d8 "MY" char * file 0x0000000c int seek_not_done 0x00000001 int error 0x00000000 int buffer_length 0x00010000 unsigned int read_length 0x00010000 unsigned int myflags 0x00000010 int alloced_buffer 0x01 '?' char - to_file 0x30e4e104 {pos_in_file=0x0000000000000000 end_of_file=0xffffffffffffffff read_pos=0x028cf098 "" ...} st_io_cache * pos_in_file 0x0000000000000000 unsigned __int64 end_of_file 0xffffffffffffffff unsigned __int64 + read_pos 0x028cf098 "" unsigned char * + read_end 0x006083f8 "3^]U EH\MUU}t }tBE@T0`" unsigned char * + buffer 0x028cf098 "" unsigned char * + request_pos 0x028cf098 "" unsigned char * + write_buffer 0x028cf098 "" unsigned char * + append_read_pos 0x30e4e158 "`" unsigned char * + write_pos 0x028cf098 "" unsigned char * + write_end 0x028df098 "h4z " unsigned char * + current_pos 0x30e4e12c unsigned char * * + current_end 0x30e4e130 unsigned char * * + append_buffer_lock {DebugInfo=0x0080615d LockCount=0xe5709467 RecursionCount=0x30e4f2bc ...} _RTL_CRITICAL_SECTION + share 0x00000000 {mutex={...} cond={...} cond_writer={...} ...} st_io_cache_share * read_function 0x006087b0 _my_b_read(st_io_cache *, unsigned char *, unsigned int) int (st_io_cache *, unsigned char *, unsigned int)* write_function 0x00609e30 _my_b_write(st_io_cache *, const unsigned char *, unsigned int) int (st_io_cache *, const unsigned char *, unsigned int)* type WRITE_CACHE cache_type pre_read 0x00000000 int (st_io_cache *)* post_read 0x00000000 int (st_io_cache *)* pre_close 0x00000000 int (st_io_cache *)* disk_writes 0x00000000 unsigned long arg 0x00000000 void * + file_name 0x00000000 char * + dir 0x028ef040 "f:\" char * + prefix 0x028ef090 "MY" char * file 0xffffffff int seek_not_done 0x00000000 int error 0x00000000 int buffer_length 0x00010000 unsigned int read_length 0x00010000 unsigned int myflags 0x00000010 int alloced_buffer 0x01 '?' char + sort_buffer 0x0287c678 "ƇƇƇƇƇƇƇƇƇ" unsigned char * - lastbuff 0x028803b8 {file_pos=0x000000010000002a base=0x00007e3e key=0xfdfdfdfd ...} st_buffpek * file_pos 0x000000010000002a unsigned __int64 + base 0x00007e3e unsigned char * + key 0xfdfdfdfd unsigned char * count 0x0288cb08 unsigned long mem_count 0x0288d000 unsigned long max_keys 0x009e1440 unsigned long - Fb 0x02880398 {file_pos=0xfdfdfdfd157a3468 base=0x0287c678 "ƇƇƇƇƇƇƇƇƇ" key=0x030a011a "" ...} st_buffpek * file_pos 0xfdfdfdfd157a3468 unsigned __int64 + base 0x0287c678 "ƇƇƇƇƇƇƇƇƇ" unsigned char * + key 0x030a011a "" unsigned char * count 0x0288cae8 unsigned long mem_count 0x0288cfe0 unsigned long max_keys 0x00000001 unsigned long - Tb 0x02880378 {file_pos=0xfdfdfdfd00007e9c base=0x0290b7c0 "P3" key=0x0287c720 "`ȇ\," ...} st_buffpek * file_pos 0xfdfdfdfd00007e9c unsigned __int64 + base 0x0290b7c0 "P3" unsigned char * + key 0x0287c720 "`ȇ\," unsigned char * count 0x008b1ce0 unsigned long mem_count 0x00000174 unsigned long max_keys 0x00000000 unsigned long flag 0x00000000 int cmp 0x0060c8a0 ptr_compare_1(unsigned int *, unsigned char * *, unsigned char * *) int (const void *, const void *, const void *)* not_killable 0x30e4f2bc THD::killed_state res_length 0x00000007 unsigned int + killed 0x0286c6fc volatile THD::killed_state * sort_length 0x00000009 unsigned int + _db_func_ 0x00000000 const char * to_start_filepos 0x0000000000000000 unsigned __int64 - queue {root=0x00000000 first_cmp_arg=0x30e4e05c elements=0x00000000 ...} st_queue + root 0x00000000 unsigned char * * first_cmp_arg 0x30e4e05c void * elements 0x00000000 unsigned int max_elements 0x00000007 unsigned int offset_to_key 0x0000000c unsigned int max_at_top 0x00000000 int compare 0x0060c8a0 ptr_compare_1(unsigned int *, unsigned char * *, unsigned char * *) int (void *, unsigned char *, unsigned char *)* offset 0x00000002 unsigned int _db_level_ 0x000001a6 unsigned int error 0x00000000 int maxcount 0x00000001 unsigned long + strpos 0x0287c677 "ƇƇƇƇƇƇƇƇƇ" unsigned char * rec_length 0x00000009 unsigned int max_rows 0xffffffff unsigned long + _db_framep_ 0x30e4e104 char * * - buffpek 0x02880398 {file_pos=0xfdfdfdfd157a3468 base=0x0287c678 "ƇƇƇƇƇƇƇƇƇ" key=0x030a011a "" ...} st_buffpek * file_pos 0xfdfdfdfd157a3468 unsigned __int64 + base 0x0287c678 "ƇƇƇƇƇƇƇƇƇ" unsigned char * + key 0x030a011a "" unsigned char * count 0x0288cae8 unsigned long mem_count 0x0288cfe0 unsigned long max_keys 0x00000001 unsigned long org_max_rows 0xffffffff unsigned long + _db_file_ 0x30e4e0c4 "0xƇx" const char *