question

JojoTang-3993 avatar image
0 Votes"
JojoTang-3993 asked JeanineZhang-MSFT edited

Crash in cldapi during sync (windows 11)

when using cloud api in win11 to sync huge files(more than 20000 files), crash in IssueHsmControl.
Work fine in win 10.

win 11 cldapi.dll version (10.0.22000.1)

crash dump file as below:
CONTEXT: (.ecxr)
eax=00000494 ebx=00000494 ecx=fffffffe edx=00000000 esi=00000000 edi=268233d4
eip=529c3df8 esp=268233c8 ebp=268233f4 iopl=0 nv up ei ng nz na po nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010282
cldapi!IssueHsmControl+0x7a:
529c3df8 8b09 mov ecx,dword ptr [ecx] ds:002b:fffffffe=????????
Resetting default scope

FAULTING_IP:
cldapi!IssueHsmControl+7a
529c3df8 8b09 mov ecx,dword ptr [ecx]

EXCEPTION_RECORD: (.exr -1)
ExceptionAddress: 529c3df8 (cldapi!IssueHsmControl+0x0000007a)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 00000000
Parameter[1]: fffffffe
Attempt to read from address fffffffe

DEFAULT_BUCKET_ID: INVALID_POINTER_READ

FOLLOWUP_IP:
cldapi!IssueHsmControl+7a
529c3df8 8b09 mov ecx,dword ptr [ecx]

READ_ADDRESS: fffffffe

ERROR_CODE: (NTSTATUS) 0xc0000005 - <Unable to get error code text>

EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - <Unable to get error code text>

EXCEPTION_CODE_STR: c0000005

EXCEPTION_PARAMETER1: 00000000

EXCEPTION_PARAMETER2: fffffffe

WATSON_BKT_PROCSTAMP: 6153e5a8

WATSON_BKT_PROCVER: 5.0.3.929

WATSON_BKT_MODULE: cldapi.dll

WATSON_BKT_MODSTAMP: 630712b2

WATSON_BKT_MODOFFSET: 13df8

WATSON_BKT_MODVER: 6.2.22000.1

MODULE_VER_PRODUCT: Microsoft? Windows? Operating System

BUILD_VERSION_STRING: 22000.1.amd64fre.co_release.210604-1628

MODLIST_WITH_TSCHKSUM_HASH: 63c352f8745f9397010f81f15184bfc050c997e8

MODLIST_SHA1_HASH: a960500748d108131b2fd853731e5e2d597bcfb2

DUMP_FLAGS: 0

DUMP_TYPE: 2

ANALYSIS_SESSION_HOST: DESKTOP-G6QC05N

ANALYSIS_SESSION_TIME: 09-30-2021 11:50:14.0808

ANALYSIS_VERSION: 10.0.18362.1 x86fre

THREAD_ATTRIBUTES:
BUGCHECK_STR: APPLICATION_FAULT_INVALID_POINTER_READ

PRIMARY_PROBLEM_CLASS: APPLICATION_FAULT

PROBLEM_CLASSES:

 ID:     [0n313]
 Type:   [@ACCESS_VIOLATION]
 Class:  Addendum
 Scope:  BUCKET_ID
 Name:   Omit
 Data:   Omit
 PID:    [Unspecified]
 TID:    [0x15c0]
 Frame:  [0] : cldapi!IssueHsmControl

 ID:     [0n285]
 Type:   [INVALID_POINTER_READ]
 Class:  Primary
 Scope:  DEFAULT_BUCKET_ID (Failure Bucket ID prefix)
         BUCKET_ID
 Name:   Add
 Data:   Omit
 PID:    [Unspecified]
 TID:    [0x15c0]
 Frame:  [0] : cldapi!IssueHsmControl

LAST_CONTROL_TRANSFER: from 529bdb43 to 529c3df8

STACK_TEXT:
268233f4 529bdb43 00000098 26823578 00000404 cldapi!IssueHsmControl+0x7a
268234bc 529c10a3 26823578 00000404 00000000 cldapi!CfpGetSyncRootInfoByHandle+0x87
26823aec 529bcef0 00000000 00000000 00000000 cldapi!TlmLogApiReliability+0x1fd
26823b64 529db118 17736599 277355f8 0000001c cldapi!CfConvertToPlaceholder+0x1a0
....

SYMBOL_NAME: cldapi!IssueHsmControl+7a

FOLLOWUP_NAME: MachineOwner

MODULE_NAME: cldapi

IMAGE_NAME: cldapi.dll

DEBUG_FLR_IMAGE_TIMESTAMP: 630712b2

STACK_COMMAND: ~57s ; .ecxr ; kb

FAILURE_BUCKET_ID: INVALID_POINTER_READ_c0000005_cldapi.dll!IssueHsmControl

BUCKET_ID: APPLICATION_FAULT_INVALID_POINTER_READ_cldapi!IssueHsmControl+7a
FAILURE_EXCEPTION_CODE: c0000005

FAILURE_IMAGE_NAME: cldapi.dll

BUCKET_ID_IMAGE_STR: cldapi.dll

FAILURE_MODULE_NAME: cldapi

BUCKET_ID_MODULE_STR: cldapi

FAILURE_FUNCTION_NAME: IssueHsmControl

BUCKET_ID_FUNCTION_STR: IssueHsmControl

BUCKET_ID_OFFSET: 7a

BUCKET_ID_MODTIMEDATESTAMP: 630712b2

BUCKET_ID_MODCHECKSUM: 1b3a7

BUCKET_ID_MODVER_STR: 6.2.22000.1

BUCKET_ID_PREFIX_STR: APPLICATION_FAULT_INVALID_POINTER_READ_

FAILURE_PROBLEM_CLASS: APPLICATION_FAULT

FAILURE_SYMBOL_NAME: cldapi.dll!IssueHsmControl

windows-11
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

What type of Cloud API are you using?
Is it Azure API or third-party API like AWS?
Did you face this issue in Windows 10?

0 Votes 0 ·

using CfConvertToPlaceholder
https://docs.microsoft.com/en-us/windows/win32/api/cfapi/nf-cfapi-cfconverttoplaceholder

crash dump call stack:

STACK_TEXT:
268233f4 529bdb43 00000098 26823578 00000404 cldapi!IssueHsmControl+0x7a
268234bc 529c10a3 26823578 00000404 00000000 cldapi!CfpGetSyncRootInfoByHandle+0x87
26823aec 529bcef0 00000000 00000000 00000000 cldapi!TlmLogApiReliability+0x1fd
26823b64 529db118 17736599 277355f8 0000001c cldapi!CfConvertToPlaceholder+0x1a0

0 Votes 0 ·

Hi @JojoTang-3993

As windows 11 is not stable yet you can try raising this to the Microsoft through the feedback Hub. This might be noted and resolved in the Stable version.

https://support.microsoft.com/en-us/windows/send-feedback-to-microsoft-with-the-feedback-hub-app-f59187f8-8739-22d6-ba93-f66612949332

0 Votes 0 ·
JojoTang-3993 avatar image JojoTang-3993 LimitlessTechnology-2700 ·

OK Thanks

0 Votes 0 ·
Docs-4663 avatar image
0 Votes"
Docs-4663 answered JojoTang-3993 commented

Please uninstall and reinstall any software related to QNAP or Qsync.

.
.
.
.
.
Please remember to vote and to mark the replies as answers if they help.

On the bottom of each post there is:

Propose as answer = answered the question

On the left side of each post: Vote = a helpful post
.
.
.
.
.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Another crash dump file callstack

STACK_TEXT:
24b4376c 7331db43 00000098 24b438f0 00000404 cldapi!IssueHsmControl+0x7a
24b43834 733210a3 24b438f0 00000404 00000000 cldapi!CfpGetSyncRootInfoByHandle+0x87
24b43e64 7331cef0 00000000 00000000 00000000 cldapi!TlmLogApiReliability+0x1fd
24b43edc 51eeb118 1779a319 070717c0 00000012 cldapi!CfConvertToPlaceholder+0x1a0
24b43f0c 00e23c3b 24dcdae8 24b43f2c fff08d8c QsyncCloudFile!qcConvertToPlaceholder+0x58
...

FAILURE_BUCKET_ID: INVALID_POINTER_READ_c0000005_cldapi.dll!IssueHsmControl

BUCKET_ID: APPLICATION_FAULT_INVALID_POINTER_READ_cldapi!IssueHsmControl+7a

FAILURE_EXCEPTION_CODE: c0000005

FAILURE_IMAGE_NAME: cldapi.dll

BUCKET_ID_IMAGE_STR: cldapi.dll

FAILURE_MODULE_NAME: cldapi

BUCKET_ID_MODULE_STR: cldapi

FAILURE_FUNCTION_NAME: IssueHsmControl

BUCKET_ID_FUNCTION_STR: IssueHsmControl

0 Votes 0 ·

Why to uninstall using Cloud API App??

crash in cloud api and code implement as below

HANDLE ProtectedHandle;
HRESULT hr = CfOpenFileWithOplock(filePath, CF_OPEN_FILE_FLAG_EXCLUSIVE, &ProtectedHandle);
if (SUCCEEDED(hr))
{
hr = CfConvertToPlaceholder(
ProtectedHandle,
pPlaceholderData->FileIdentity,
pPlaceholderData->FileIdentityLength,
CF_CONVERT_FLAG_MARK_IN_SYNC,
nullptr,
NULL);

     CfCloseHandle(ProtectedHandle);
 }


call CfOpenFileWithOplock before using CfConvertToPlaceholder, why multithread access will crash in CfConvertToPlaceholder??


0 Votes 0 ·
Reza-Ameri avatar image
0 Votes"
Reza-Ameri answered JojoTang-3993 commented

If possible try perform the same testing environment in Windows 10 and see if the problem persist?
I advise you to report this issue using the Feedback Hub app , so the Windows team would be able to investigate.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Windows 10 work fine.
Only crash in Win11
II had update to Feedback Hub.

0 Votes 0 ·