070206 12:34:17 [ERROR] Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE START". We stopped at log 'master-bin.000001' position 1649 mysqld: log.cc:88: int binlog_close_connection(THD*): Assertion `mysql_bin_log.is_open() && !((trans_log)->pos_in_file + (uint) (*(trans_log)->current_pos - (trans_log)->request_pos))' failed. mysqld got signal 6; This could be because you hit a bug. It is also possible that this binary or one of the libraries it was linked against is corrupt, improperly built, or misconfigured. This error can also be caused by malfunctioning hardware. We will try our best to scrape up some info that will hopefully help diagnose the problem, but since we have already crashed, something is definitely wrong and this may fail. key_buffer_size=1048576 read_buffer_size=131072 max_used_connections=2 max_connections=100 threads_connected=2 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 39420 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. thd=0x8c8aa18 Attempting backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong... Cannot determine thread, fp=0xbe1ff488, backtrace may not be correct. Stack range sanity check OK, backtrace follows: 0x80de7db handle_segfault + 417 0x83d5efd __pthread_sighandler + 173 0x840af81 __kill + 17 0x83d37cb __pthread_raise + 27 0x840b354 abort + 340 0x8406d70 __assert_fail + 224 0x81691ad _Z23binlog_close_connectionP3THD + 91 0x81ab8ae _Z19ha_close_connectionP3THD + 46 0x80cc9fb _ZN3THDD0Ev + 323 0x81fbdfd handle_slave_sql + 2453 0x83d0dd1 pthread_start_thread + 225 0x842b8ba __clone + 106 New value of fp=(nil) failed sanity check, terminating stack trace! Please read http://dev.mysql.com/doc/mysql/en/using-stack-trace.html and follow instructions on how to resolve the stack trace. Resolved stack trace is much more helpful in diagnosing the problem, so please do resolve it Trying to get some variables. Some pointers may be invalid and cause the dump to abort... thd->query at (nil) is invalid pointer thd->thread_id=4 The manual page at http://www.mysql.com/doc/en/Crashing.html contains information that should help you find out what is causing the crash. Writing a core file