crash at VCRUNTIME140D!MoveSmall

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

crash at VCRUNTIME140D!MoveSmall

HA Thi Tham
Hi,

I have a crash at sqlite (encryption extension). Here is code:

     sequence_t SQLiteDataFile::lastSequence(const string& keyStoreName)
const {
        sequence_t seq = 0;
        compile(_getLastSeqStmt, "SELECT lastSeq FROM kvmeta WHERE name=?");
        UsingStatement u(_getLastSeqStmt);
        _getLastSeqStmt->bindNoCopy(1, keyStoreName);
        if (_getLastSeqStmt->executeStep())   //// <-- crash here
            seq = (int64_t)_getLastSeqStmt->getColumn(0);
        return seq;
    }
It happens only once and I still can't reproduce. Here is brief stack trace
(detailed stacktrace in the attachment).

00000004`ce1f9ba8 00007ff7`6f4efcd4 : 000001a7`cab470c0
00000000`00000021 cccccccc`00000000 cccccccc`cccccccc :
VCRUNTIME140D!MoveSmall+0x68
00000004`ce1f9bb0 00007ff7`6f5247b9 : 000001a7`cb51d900
cccccccc`cccccccc cccccccc`cccccccc cccccccc`cccccccc :
CortexService!sqlite3VdbeExec+0x3b54
00000004`ce1faa50 00007ff7`6f499a43 : 000001a7`cb51d900
cccccccc`cccccccc cccccccc`cccccccc cccccccc`cccccccc :
CortexService!sqlite3Step+0x1d9
00000004`ce1faa90 00007ff7`6f653002 : 000001a7`cb51d900
cccccccc`cccccccc cccccccc`cccccccc cccccccc`cccccccc :
CortexService!sqlite3_step+0x93
00000004`ce1fab00 00007ff7`6f5fdcd5 : 000001a7`cb675f90
000001a7`00000001 000001a7`cb3e4c00 cccccccc`cccccccc :
CortexService!SQLite::Statement::executeStep+0x72
00000004`ce1fabc0 00007ff7`6f65d083 : 000001a7`cb301d50
000001a7`cb3e4c00 cccccccc`cccccccc cccccccc`cccccccc :
CortexService!litecore::SQLiteDataFile::lastSequence+0xc5
00000004`ce1fac60 00007ff7`6f65d773 : 000001a7`cb3e4bf0
000001a7`00000005 000001a7`cbedb4d4 cccccccc`0000000c :

FAULTING_SOURCE_LINE:  f:\dd\vctools\crt\vcruntime\src\string\amd64\memcpy.asm

FAULTING_SOURCE_FILE:  f:\dd\vctools\crt\vcruntime\src\string\amd64\memcpy.asm

FAULTING_SOURCE_LINE_NUMBER:  226

FAULTING_SOURCE_CODE:
No source found for 'f:\dd\vctools\crt\vcruntime\src\string\amd64\memcpy.asm'


Can you please give some suggestions when this can happen and maybe
how to fix it?

Thanks in advance!

Tham

_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

db_crash_trace.txt (29K) Download Attachment