keepassxreboot / keepassxc

KeePassXC is a cross-platform community-driven port of the Windows application “Keepass Password Safe”.
https://keepassxc.org/
Other
21.21k stars 1.47k forks source link

crash under windows 11 with msvcp140.dll #11062

Closed greister closed 2 weeks ago

greister commented 3 months ago

Overview

2024-07-12_151614

Steps to Reproduce

  1. scoop install keepassxc # 2.7.9

Expected Behavior

Actual Behavior

KEY_VALUES_STRING: 1

Key  : AV.Dereference
Value: NullPtr

Key  : AV.Fault
Value: Read

Key  : Analysis.CPU.mSec
Value: 327

Key  : Analysis.Elapsed.mSec
Value: 14483

Key  : Analysis.IO.Other.Mb
Value: 24

Key  : Analysis.IO.Read.Mb
Value: 0

Key  : Analysis.IO.Write.Mb
Value: 49

Key  : Analysis.Init.CPU.mSec
Value: 140

Key  : Analysis.Init.Elapsed.mSec
Value: 30353

Key  : Analysis.Memory.CommitPeak.Mb
Value: 116

Key  : Failure.Bucket
Value: NULL_POINTER_READ_c0000005_msvcp140.dll!mtx_do_lock

Key  : Failure.Hash
Value: {f7938165-b4af-ccbf-11b4-f442616c9ba8}

Key  : Timeline.OS.Boot.DeltaSec
Value: 15524

Key  : Timeline.Process.Start.DeltaSec
Value: 3

Key  : WER.OS.Branch
Value: ni_release

Key  : WER.OS.Version
Value: 10.0.22621.1

FILE_IN_CAB: KeePassXC.exe.3264.dmp

NTGLOBALFLAG: 0

APPLICATION_VERIFIER_FLAGS: 0

CONTEXT: (.ecxr) rax=0000000000000000 rbx=0000028a549fb018 rcx=0000028a549fb020 rdx=0000000000000000 rsi=0000028a549fb018 rdi=0000000000000040 rip=00007ff89c183020 rsp=000000a7530fee80 rbp=000000a7530fef49 r8=0000000000000001 r9=0000000000000040 r10=0000028a549fb010 r11=000000a7530feed8 r12=0000000000000000 r13=0000028a549fb010 r14=0000000000000000 r15=0000000000000000 iopl=0 nv up ei ng nz na po nc cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010286 msvcp140!mtx_do_lock+0x74: 00007ff89c183020 488b00 mov rax,qword ptr [rax] ds:0000000000000000=???????????????? Resetting default scope

EXCEPTION_RECORD: (.exr -1) ExceptionAddress: 00007ff89c183020 (msvcp140!mtx_do_lock+0x0000000000000074) ExceptionCode: c0000005 (Access violation) ExceptionFlags: 00000000 NumberParameters: 2 Parameter[0]: 0000000000000000 Parameter[1]: 0000000000000000 Attempt to read from address 0000000000000000

PROCESS_NAME: KeePassXC.exe

READ_ADDRESS: 0000000000000000

ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.

EXCEPTION_CODE_STR: c0000005

EXCEPTION_PARAMETER1: 0000000000000000

EXCEPTION_PARAMETER2: 0000000000000000

STACK_TEXT:
000000a7530fee80 00007fffacf6b83a : 0000028a547e02b8 0000000000000060 0000028a549fb018 0000000000000030 : msvcp140!mtx_do_lock+0x74 000000a7530feee0 0000028a547e02b8 : 0000000000000060 0000028a549fb018 0000000000000030 0000028a547e0cc0 : botan_3+0x2ab83a 000000a7530feee8 0000000000000060 : 0000028a549fb018 0000000000000030 0000028a547e0cc0 0000000000000050 : 0x0000028a547e02b8 000000a7530feef0 0000028a549fb018 : 0000000000000030 0000028a547e0cc0 0000000000000050 0000000000000000 : 0x60 000000a7530feef8 0000000000000030 : 0000028a547e0cc0 0000000000000050 0000000000000000 0000000000000060 : 0x0000028a549fb018 000000a7530fef00 0000028a547e0cc0 : 0000000000000050 0000000000000000 0000000000000060 0000000000000000 : 0x30 000000a7530fef08 0000000000000050 : 0000000000000000 0000000000000060 0000000000000000 0000000000000006 : 0x0000028a547e0cc0 000000a7530fef10 0000000000000000 : 0000000000000060 0000000000000000 0000000000000006 00000000`00000000 : 0x50

STACK_COMMAND: ~0s; .ecxr ; kb

FAULTING_SOURCE_LINE: d:\a01_work\2\s\src\vctools\crt\github\stl\src\mutex.cpp

FAULTING_SOURCE_FILE: d:\a01_work\2\s\src\vctools\crt\github\stl\src\mutex.cpp

FAULTING_SOURCE_LINE_NUMBER: 103

SYMBOL_NAME: msvcp140!mtx_do_lock+74

Context

KeePassXC - 2.7.0

Operating System: Windows 11

SYMBOL_NAME: msvcp140!mtx_do_lock+74

MODULE_NAME: msvcp140

IMAGE_NAME: msvcp140.dll

FAILURE_BUCKET_ID: NULL_POINTER_READ_c0000005_msvcp140.dll!mtx_do_lock

OS_VERSION: 10.0.22621.1

BUILDLAB_STR: ni_release

OSPLATFORM_TYPE: x64

OSNAME: Windows 10

IMAGE_VERSION: 14.29.30133.0

zths commented 2 weeks ago

I have same crash, here is the full crash stack.


00007FFA843732F8    MSVCP140.dll    int __fastcall mtx_do_lock(_Mtx_internal_imp_t *mtx, const xtime *target)

00007FF9B66EB83A    botan-3.dll botan-3_?allocate@Memory_Pool@Botan@@QEAAPEAX_K@Z+4A

00007FF9B66EACCE    botan-3.dll botan-3_?allocate_memory@Botan@@YAPEAX_K0@Z+9E

00007FF9B650BDA8    botan-3.dll botan-3_?providers@HashFunction@Botan@@SA?AV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@V?$basic_string_view@DU?$char_traits@D@std@@@4@@Z+1E08

00007FF9B67420F7    botan-3.dll botan-3_?create_self_signed_cert@X509@Botan@@YA?AVX509_Certificate@2@AEBVX509_Cert_Options@2@AEBVPrivate_Key@2@V?$basic_string_view@DU?$char_traits@D@std@@@std@@AEAVRandomNumberGenerator@2@@Z+1167

00007FF9B6506F79    botan-3.dll botan-3_?thread_entry@Threaded_Fork@Botan@@AEAAXPEAVFilter@2@@Z+7869

00007FF9B650821E    botan-3.dll botan-3_?create@HashFunction@Botan@@SA?AV?$unique_ptr@VHashFunction@Botan@@U?$default_delete@VHashFunction@Botan@@@std@@@std@@V?$basic_string_view@DU?$char_traits@D@std@@@4@0@Z+17E

00007FF7E3A84BC5    KeePassXC.exe   public: CryptoHash::CryptoHash(enum CryptoHash::Algorithm,bool)+0x165
droidmonkey commented 2 weeks ago

https://github.com/keepassxreboot/keepassxc/issues/10925