A short while after I submitted the post we checked our log files and found a few SQLITE_FULL errors which may have something to do with this. We will investigate on that.
Thanks for your reply! Regards, Zhao -----Original Message----- From: sqlite-users-bounces at mailinglists.sqlite.org [mailto:sqlite-users-boun...@mailinglists.sqlite.org] On Behalf Of Richard Hipp Sent: Wednesday, February 25, 2015 12:53 PM To: General Discussion of SQLite Database Subject: Re: [sqlite] sqlite crash with malloc_printerr in sqlite3MemFree On 2/25/15, Zhao Lin <Zhao_Lin at symantec.com> wrote: > Hi all, > > We sometimes, not always reproducible but it does recur from time to > time, get the following crash stack with sqlite3 version 3.8.1, we > couldn't tell much from our stack, wondering if there are possibly > related bugs on sqlite3? The usual cause of problems inside of malloc() is heap corruption within the application. Have you tried running with Valgrind to see what that shows? > > #0 0x00007fdd66214925 in raise () from /lib64/libc.so.6 > #1 0x00007fdd66216105 in abort () from /lib64/libc.so.6 > #2 0x00007fdd66252837 in __libc_message () from /lib64/libc.so.6 > #3 0x00007fdd66258166 in malloc_printerr () from /lib64/libc.so.6 > #4 0x00007fdd6887d867 in sqlite3MemFree () from > /opt/DataInsight/bin/../lib/libsqlite3.so.0 > #5 0x00007fdd6887e66b in sqlite3_free () from > /opt/DataInsight/bin/../lib/libsqlite3.so.0 > #6 0x00007fdd6888ab26 in pcache1Free () from > /opt/DataInsight/bin/../lib/libsqlite3.so.0 > #7 0x00007fdd6888ac11 in pcache1FreePage () from > /opt/DataInsight/bin/../lib/libsqlite3.so.0 > #8 0x00007fdd6888b040 in pcache1TruncateUnsafe () from > /opt/DataInsight/bin/../lib/libsqlite3.so.0 > #9 0x00007fdd6888b901 in pcache1Truncate () from > /opt/DataInsight/bin/../lib/libsqlite3.so.0 > #10 0x00007fdd6888a4cb in sqlite3PcacheTruncate () from > /opt/DataInsight/bin/../lib/libsqlite3.so.0 > #11 0x00007fdd6888a519 in sqlite3PcacheClear () from > /opt/DataInsight/bin/../lib/libsqlite3.so.0 > #12 0x00007fdd6888cfec in pager_reset () from > /opt/DataInsight/bin/../lib/libsqlite3.so.0 > #13 0x00007fdd6888f58e in sqlite3PagerClose () from > /opt/DataInsight/bin/../lib/libsqlite3.so.0 > #14 0x00007fdd688994c1 in sqlite3BtreeClose () from > /opt/DataInsight/bin/../lib/libsqlite3.so.0 > #15 0x00007fdd6890729f in sqlite3LeaveMutexAndCloseZombie () from > /opt/DataInsight/bin/../lib/libsqlite3.so.0 > #16 0x00007fdd689071bf in sqlite3Close () from > /opt/DataInsight/bin/../lib/libsqlite3.so.0 > #17 0x00007fdd689071e3 in sqlite3_close () from > /opt/DataInsight/bin/../lib/libsqlite3.so.0 > #18 0x00007fdd680631a5 in dbhandle_close_write (handle=0x7fffa8968d88, > should_abort=0) at dbhandle.c:1809 > ... > > Thanks, > Zhao > _______________________________________________ > sqlite-users mailing list > sqlite-users at mailinglists.sqlite.org > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users > -- D. Richard Hipp drh at sqlite.org _______________________________________________ sqlite-users mailing list sqlite-users at mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users