Skip to content

Issue: Recurring crash in block_destroy_helper under -[SKTCapture didReceiveEvent:] on CaptureServiceConsumeOperationQueue #11

@cyrille-socket

Description

@cyrille-socket

Your Socket Mobile Developer ID

38D154EE-F5D6-4B52-871B-6942711FC366

Environment

Various iPadOS versions
CaptureSDK 2.0.73
Device: e.g. SocketScan S700

Description

We see a recurring crash inside CaptureSDK. It manifests as a use-after-free (EXC_BAD_ACCESS @ 0x0) during block teardown on the CaptureServiceConsumeOperationQueue.

Crashed: CaptureServiceConsumeOperationQueue (QOS: UNSPECIFIED)
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000
0 CaptureSDK block_destroy_helper + 18636
1 CaptureSDK block_destroy_helper + 18632
2 CaptureSDK block_destroy_helper + 5416
3 CaptureSDK -[SKTCapture didReceiveEvent:withHandle:withResult:] + 164
4 CaptureSDK -[SKTCaptureServiceDirect consumeFromCaptureHandle:] + 628
5 CaptureSDK __72-[SKTCaptureServiceDirect doConsumeFromCaptureHandle:completionHandler:]_block_invoke + 28
6 Foundation <deduplicated_symbol> + 24
7 Foundation -[NSBlockOperation main] + 88
8 Foundation __NSOPERATION_IS_INVOKING_MAIN__ + 16
9 Foundation -[NSOperation start] + 640
10 Foundation __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 16
11 Foundation __NSOQSchedule_f + 164
12 libdispatch.dylib _dispatch_block_async_invoke2 + 148
13 libdispatch.dylib
_dispatch_client_callout + 16
14 libdispatch.dylib _dispatch_continuation_pop + 596
15 libdispatch.dylib _dispatch_async_redirect_invoke + 580
16 libdispatch.dylib _dispatch_root_queue_drain + 360
17 libdispatch.dylib _dispatch_worker_thread2 + 184
18 libsystem_pthread.dylib _pthread_wqthread + 232
19 libsystem_pthread.dylib
start_wqthread + 8 

Steps to Reproduce

Unknown

Expected Behavior

No crash

Actual Behavior

Crash

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions