./sqlite_1: double free or corruption (fasttop): 0x080ca728 *
段錯誤 (核心已轉儲)
多線程在寫入數據庫時,出現錯誤double free or corruption (fasttop): 0x080ca728
原因分析:
1、寫一個測試程序,兩次free指針,出現上述錯誤。
sqlite3_free_table(dbResult);//釋放內存
sqlite3_free_table(dbResult);//釋放內存
./sqlite_1: double free or corruption (fasttop): 0x080ca728 *
段錯誤 (核心已轉儲)
多線程在寫入數據庫時,出現錯誤double free or corruption (fasttop): 0x080ca728
原因分析:
1、寫一個測試程序,兩次free指針,出現上述錯誤。
sqlite3_free_table(dbResult);//釋放內存
sqlite3_free_table(dbResult);//釋放內存