Hi, i am new in sqlcipher.
I use sqlcipher to encrypt sqlite3 database. I built sqlcipher.dll myself with source code which version is 3.41.2. I met crash several times. Sometimes error module name is ntdll.dll, sometimes error module is sqlcipher.dll. I met an error today. The error module name is ntdll.dll.
I use windbg to locate the root cause. The result is:
I don’t know how to fix it. Could you please help me if you have met this issue. Thanks a lot.
Full info:
STACK_TEXT:
000000000e0ba680 00000000
77698e54 : 0000000000000000 00000000
00000000 000000000499fa60 000007fe
ec8676a0 : ntdll!RtlpWaitOnCriticalSection+0xb4
000000000e0ba730 000007fe
ec73383d : 0000000000000001 00000000
00000000 0000000000000006 00000000
0e0ba768 : ntdll!RtlEnterCriticalSection+0xd1
000000000e0ba760 000007fe
ec6d7a82 : 0000000000000006 00000000
0e0ba788 0000000000000000 00000000
0e0ba7a0 : sqlcipher!sqlite3_status+0xdefb2
000000000e0ba790 00000001
3f297f9d : 000000000e0ba880 00000000
0e0ba900 0000000000000006 00000000
00000000 : sqlcipher!sqlite3_status+0x831f7
000000000e0ba810 00000001
3f29e8ca : 0000000009b9e90a 00000000
09b9e90a 000000000e0ba9a0 00000000
00000009 : RoadAcquisitionUI_N2_1_1_1_release+0x37f9d
000000000e0ba8a0 00000001
3f2b47a2 : 000000000e0bada0 00000000
04995570 403f487f2c051695 000007fe
f86f0000 : RoadAcquisitionUI_N2_1_1_1_release+0x3e8ca
000000000e0babe0 00000000
50367d0f : 00000000506e7660 00000000
00000000 0000000004994fd0 00000000
049955c0 : RoadAcquisitionUI_N2_1_1_1_release+0x547a2
000000000e0bad90 00000000
5037496d : 0000000004925e40 00000000
00000003 0000000004925e40 00000000
00000000 : Qt5Core!QMetaObject::activate+0x58f
000000000e0baeb0 00000000
5036d878 : 0000000000000000 00000000
00000000 0000000000000000 00000000
00000000 : Qt5Core!QTimer::timerEvent+0x5d
000000000e0baef0 00000000
6e4f97f0 : 000000000486ab30 00000000
02a00d60 0000000004925e40 00000000
00000000 : Qt5Core!QObject::event+0x68
000000000e0bb090 00000000
6e4f87de : 00000000002ac840 00000000
0e0bb1c0 000000000e0bb858 00000000
00000000 : Qt5Widgets!QApplicationPrivate::notify_helper+0x140
000000000e0bb0c0 00000000
50348759 : 00000000047a2c00 00000000
04925e40 000000000e0bb858 00000000
04925e40 : Qt5Widgets!QApplication::notify+0x1a6e
000000000e0bb7b0 00000000
503922ec : 00000000f952694b 00000000
00000000 00000000047a2cf0 00000000
00000000 : Qt5Core!QCoreApplication::notifyInternal2+0xb9
000000000e0bb830 00000000
50390028 : 0000000000000000 00000000
774468b2 fffffffffffffffe 00000000
774488e4 : Qt5Core!QEventDispatcherWin32Private::sendTimerEvent+0xfc
000000000e0bb890 00000000
6e4f97f0 : 000000000486ab30 00000000
0486ab30 0000000002a00d60 00000000
774488e4 : Qt5Core!QEventDispatcherWin32::event+0x158
000000000e0bb900 00000000
6e4f87de : 00000000002ac840 00000000
0e0bba30 0000000009829aa0 00000000
00000083 : Qt5Widgets!QApplicationPrivate::notify_helper+0x140
000000000e0bb930 00000000
50348759 : 0000000009829a00 00000000
048938a0 0000000009829aa0 00000000
048938a0 : Qt5Widgets!QApplication::notify+0x1a6e
000000000e0bc020 00000000
5034a5a1 : 0000000009ccddc4 00000000
00000000 0000000009829aa0 00000000
00000000 : Qt5Core!QCoreApplication::notifyInternal2+0xb9
000000000e0bc0a0 00000000
50391429 : 0000000000000000 00000000
00000000 0000000000000000 00000000
09ccddd0 : Qt5Core!QCoreApplicationPrivate::sendPostedEvents+0x231
000000000e0bc170 00000000
77449c11 : 000000000e0bc398 00000000
00000000 0000000000000000 00000000
00000038 : Qt5Core!QEventDispatcherWin32::processEvents+0xdf9
000000000e0bc2b0 00000000
7744992a : 000000000e0bc438 00000000
50391050 0000000009cc1501 00000000
007bda10 : user32!UserCallWinProcCheckWow+0x1ad
000000000e0bc370 00000000
50390aed : 0000000000000024 00000000
00000024 0000000000000001 00000000
50391050 : user32!DispatchMessageWorker+0x3d0
000000000e0bc400 00000000
503447f2 : 00000000047da460 00000000
00000000 0000000004963b60 00000000
002ac840 : Qt5Core!QEventDispatcherWin32::processEvents+0x4bd
000000000e0bf7b0 00000000
501b2292 : 0000000009b9b9c0 00000000
09b9b9c0 0000000009b9b950 00000000
09ccdda0 : Qt5Core!QEventLoop::exec+0x1c2
000000000e0bf830 00000000
501b7935 : 0000000009b9b9c0 00000000
09b9b9c0 0000000009ccdda0 00000000
09ccdda0 : Qt5Core!QThread::exec+0x92
000000000e0bf880 00000000
775459cd : 0000000009b9b9c0 00000000
048938a0 0000000000000000 00000000
00000000 : Qt5Core!QThread::start+0x335
000000000e0bf8d0 00000000
7767a561 : 0000000000000000 00000000
00000000 0000000000000000 00000000
00000000 : kernel32!BaseThreadInitThunk+0xd
000000000e0bf900 00000000
00000000 : 0000000000000000 00000000
00000000 0000000000000000 00000000
00000000 : ntdll!RtlUserThreadStart+0x1d
THREAD_SHA1_HASH_MOD_FUNC: 3b441b03d612992613249197766d0519aa5ce4fe
THREAD_SHA1_HASH_MOD_FUNC_OFFSET: cc38e8f33980f4b6416a3afefa3f419b17cb25d6
THREAD_SHA1_HASH_MOD: e8a37ecbb8eddf16cedc56a74f0f9dbe04a9297e
FAULT_INSTR_CODE: 15ffcb8b
SYMBOL_STACK_INDEX: 2
SYMBOL_NAME: sqlcipher!sqlite3_status+defb2
FOLLOWUP_NAME: MachineOwner
MODULE_NAME: sqlcipher
IMAGE_NAME: sqlcipher.dll
DEBUG_FLR_IMAGE_TIMESTAMP: 64559c8e
STACK_COMMAND: ~39s ; .ecxr ; kb
FAILURE_BUCKET_ID: NULL_CLASS_PTR_WRITE_c0000005_sqlcipher.dll!sqlite3_status
BUCKET_ID: X64_APPLICATION_FAULT_NULL_CLASS_PTR_WRITE_NULL_CLASS_PTR_DEREFERENCE_INVALID_POINTER_WRITE_sqlcipher!sqlite3_status+defb2
FAILURE_EXCEPTION_CODE: c0000005
FAILURE_IMAGE_NAME: sqlcipher.dll
BUCKET_ID_IMAGE_STR: sqlcipher.dll
FAILURE_MODULE_NAME: sqlcipher
BUCKET_ID_MODULE_STR: sqlcipher
FAILURE_FUNCTION_NAME: sqlite3_status
BUCKET_ID_FUNCTION_STR: sqlite3_status
BUCKET_ID_OFFSET: defb2
BUCKET_ID_MODTIMEDATESTAMP: 64559c8e
BUCKET_ID_MODCHECKSUM: 0
BUCKET_ID_MODVER_STR: 3.41.2.0
BUCKET_ID_PREFIX_STR: X64_APPLICATION_FAULT_NULL_CLASS_PTR_WRITE_NULL_CLASS_PTR_DEREFERENCE_INVALID_POINTER_WRITE_
FAILURE_PROBLEM_CLASS: APPLICATION_FAULT
FAILURE_SYMBOL_NAME: sqlcipher.dll!sqlite3_status
TARGET_TIME: 2023-09-05T06:23:10.000Z
OSBUILD: 7601
OSSERVICEPACK: 23677
SERVICEPACK_NUMBER: 0
OS_REVISION: 0
SUITE_MASK: 256
PRODUCT_TYPE: 1
OSPLATFORM_TYPE: x64
OSNAME: Windows 7
OSEDITION: Windows 7 WinNt (Service Pack 1) SingleUserTS
OS_LOCALE:
USER_LCID: 0
OSBUILD_TIMESTAMP: 2017-02-10 00:34:46
BUILDDATESTAMP_STR: 170209-0600
BUILDLAB_STR: win7sp1_ldr
BUILDOSVER_STR: 6.1.7601.23677
ANALYSIS_SESSION_ELAPSED_TIME: 951
ANALYSIS_SOURCE: UM
FAILURE_ID_HASH_STRING: um:null_class_ptr_write_c0000005_sqlcipher.dll!sqlite3_status
FAILURE_ID_HASH: {f572ce5f-48fa-70ff-46e3-3a1bdd2729dd}
Followup: MachineOwner