This is my sample error in my MySQL Log
New value of fp=(nil) failed sanity check, terminating stack trace! Please read http://www.mysql.com/doc/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 0x894dfb8 = select distinct(F_PK_GROUP_ID),F_GROU--P_NAME_TH from tbl_private_pur_itemgroup_twy_--set_db G,tbl_private_pur_itemtype_twy--_set_db IT where G.F_PK_GROUP_ID=IT.F_FK_GROUP_--ID AND G.F_STATUS ='1' and IT.F_EMP_ID='10235' order by F_PK_GROUP_ID ASC thd->thread_id=165 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. New value of fp=(nil) failed sanity check, terminating stack trace! Please read http://www.mysql.com/doc/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 0x8846f50 = select distinct(F_TYPE_ID) ,F_ITEM_TYPE_NAME_TH from twy_pos_db.tbl_pur_item_twy_po--s_db T,twy_set_db.tbl_private_pur_i--temtype_twy_set_db IT where T.F_TYPE_ID=IT.F_PK_ITEM_TYPE_--ID and T.F_GROUP_ID = '05' and T.F_STATUS<>'0' and IT.F_EMP_ID='10235' order by F_ITEM_TYPE_NAME_TH ASC thd->thread_id=2 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. New value of fp=(nil) failed sanity check, terminating stack trace! Please read http://www.mysql.com/doc/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 0x8a40a58 = show create table `TBU_CLASS_DETAIL` thd->thread_id=838 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. ################### Anyone can tell me step-by-step to solve these problems sir? Thank you for advance Pratchaya