Skip to content

-[AWSIoTStreamThread main] EXC_BAD_ACCESS (KERN_INVALID_ADDRESS) #5521

Open
@ad-Jun

Description

@ad-Jun

Describe the bug
This crash occurred frequently online.I utilized the crash stack information monitored by firebase.

Environment(please complete the following information):

  • SDK Version: [2.40.2]
  • Dependency Manager: [Cocoapods]
  • Swift Version : [6.0]
  • Xcode Version: [16.2]

Device Information (please complete the following information):

  • Device: [iPhone14]
  • iOS Version: [iOS 18.4.1]
  • Specific to simulators:

INSERT LOG MESSAGES HERE

# Crashlytics - Stack trace
# Application: com.xxxx.xxxx
# Platform: apple
# Version: 2.2.1 (202504282015)
# Issue: 2ebae5c74fcaa6387fb3d7ceac34f535
# Session: 9d19bd80eeb44cf782f6f6311529658c_DNE_0_v2
# Date: Thu May 08 2025 01:30:10 GMT+0800 (中国标准时间)

com.apple.main-thread
0  libsystem_kernel.dylib         0xce4 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x439c mach_msg2_internal + 76
2  libsystem_kernel.dylib         0x42b8 mach_msg_overwrite + 428
3  libsystem_kernel.dylib         0x4100 mach_msg + 24
4  CoreFoundation                 0x716cc __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x70dac __CFRunLoopRun + 1208
6  CoreFoundation                 0x95700 CFRunLoopRunSpecific + 572
7  GraphicsServices               0x1190 GSEventRunModal + 168
8  UIKitCore                      0x3ca240 -[UIApplication _run] + 816
9  UIKitCore                      0x3c8470 UIApplicationMain + 336
10 UIKitCore                      0x826a30 block_destroy_helper.15 + 9820
11 xxxx-RM-iOS                   0xe6e5cc static UIApplicationDelegate.main() + 4382254540 (<compiler-generated>:4382254540)
12 xxxx-RM-iOS                   0xe6c1e0 static AppDelegate.$main() + 4382245344 (<compiler-generated>:4382245344)
13 xxxx-RM-iOS                   0xe6e3c4 main + 40 (AppDelegate.swift:40)
14 ???                            0x1b5397ad8 (缺少)

com.amazon.aws.iot.timer-queue
0  libsystem_kernel.dylib         0xce4 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x439c mach_msg2_internal + 76
2  libsystem_kernel.dylib         0x42b8 mach_msg_overwrite + 428
3  libsystem_kernel.dylib         0x4100 mach_msg + 24
4  CoreFoundation                 0x716cc __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x70dac __CFRunLoopRun + 1208
6  CoreFoundation                 0x95700 CFRunLoopRunSpecific + 572
7  Foundation                     0x748a8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8  AWSIoT                         0x63cc4 -[AWSIoTMQTTClient scheduleReconnection] + 1338 (AWSIoTMQTTClient.m:1338)
9  AWSIoT                         0x607ec __43-[AWSIoTMQTTClient initiateReconnectTimer:]_block_invoke + 791 (AWSIoTMQTTClient.m:791)
10 libdispatch.dylib              0x1aac _dispatch_call_block_and_release + 32
11 libdispatch.dylib              0x1b584 _dispatch_client_callout + 16
12 libdispatch.dylib              0xa2d0 _dispatch_lane_serial_drain + 740
13 libdispatch.dylib              0xadac _dispatch_lane_invoke + 388
14 libdispatch.dylib              0x151dc _dispatch_root_queue_drain_deferred_wlh + 292
15 libdispatch.dylib              0x14a60 _dispatch_workloop_worker_thread + 540
16 libsystem_pthread.dylib        0x4660 _pthread_wqthread + 292
17 libsystem_pthread.dylib        0x19f8 start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0xa90 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x46ac _pthread_wqthread + 368
2  libsystem_pthread.dylib        0x19f8 start_wqthread + 8

com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib         0xce4 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x439c mach_msg2_internal + 76
2  libsystem_kernel.dylib         0x42b8 mach_msg_overwrite + 428
3  libsystem_kernel.dylib         0x4100 mach_msg + 24
4  CoreFoundation                 0x716cc __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x70dac __CFRunLoopRun + 1208
6  CoreFoundation                 0x95700 CFRunLoopRunSpecific + 572
7  Foundation                     0x748a8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8  Foundation                     0x736d8 -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9  UIKitCore                      0x4bd5ec -[UIEventFetcher threadMain] + 424
10 Foundation                     0x115cf8 __NSThread__start__ + 732
11 libsystem_pthread.dylib        0x1afc _pthread_start + 136
12 libsystem_pthread.dylib        0x1a04 thread_start + 8

com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0xce4 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x439c mach_msg2_internal + 76
2  libsystem_kernel.dylib         0x42b8 mach_msg_overwrite + 428
3  libsystem_kernel.dylib         0x4100 mach_msg + 24
4  CoreFoundation                 0x716cc __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x70dac __CFRunLoopRun + 1208
6  CoreFoundation                 0x95700 CFRunLoopRunSpecific + 572
7  CFNetwork                      0xebeec +[__CFN_CoreSchedulingSetRunnable _run:] + 416
8  Foundation                     0x115cf8 __NSThread__start__ + 732
9  libsystem_pthread.dylib        0x1afc _pthread_start + 136
10 libsystem_pthread.dylib        0x1a04 thread_start + 8

com.google.firebase.crashlytics.MachExceptionServer
0  FirebaseCrashlytics            0x1dc08 FIRCLSProcessRecordAllThreads + 392 (FIRCLSProcess.c:392)
1  FirebaseCrashlytics            0x1e014 FIRCLSProcessRecordAllThreads + 423 (FIRCLSProcess.c:423)
2  FirebaseCrashlytics            0x14df8 FIRCLSHandler + 34 (FIRCLSHandler.m:34)
3  FirebaseCrashlytics            0x17994 FIRCLSMachExceptionServer + 521 (FIRCLSMachException.c:521)
4  libsystem_pthread.dylib        0x1afc _pthread_start + 136
5  libsystem_pthread.dylib        0x1a04 thread_start + 8

com.squareup.SocketRocket.NetworkThread
0  libsystem_kernel.dylib         0xce4 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x439c mach_msg2_internal + 76
2  libsystem_kernel.dylib         0x42b8 mach_msg_overwrite + 428
3  libsystem_kernel.dylib         0x4100 mach_msg + 24
4  CoreFoundation                 0x716cc __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x70dac __CFRunLoopRun + 1208
6  CoreFoundation                 0x95700 CFRunLoopRunSpecific + 572
7  Foundation                     0x748a8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8  AWSIoT                         0x8d5a0 -[_SRRunLoopThread main] + 1905 (AWSSRWebSocket.m:1905)
9  Foundation                     0x115cf8 __NSThread__start__ + 732
10 libsystem_pthread.dylib        0x1afc _pthread_start + 136
11 libsystem_pthread.dylib        0x1a04 thread_start + 8

com.apple.CFSocket.private
0  libsystem_kernel.dylib         0x832c select$DARWIN_EXTSN + 8
1  libsystem_kernel.dylib         0x832c __select + 8
2  CoreFoundation                 0xc8b84 __CFSocketManager + 704
3  libsystem_pthread.dylib        0x1afc _pthread_start + 136
4  libsystem_pthread.dylib        0x1a04 thread_start + 8

Crashed: Thread
0  libobjc.A.dylib                0x3020 objc_msgSend + 32
1  CoreFoundation                 0xfdbe4 _outputStreamCallbackFunc + 36
2  CoreFoundation                 0xfdac4 _signalEventSync + 212
3  CoreFoundation                 0xfd97c _cfstream_shared_signalEventSync + 392
4  CoreFoundation                 0x72ce4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
5  CoreFoundation                 0x72c78 __CFRunLoopDoSource0 + 172
6  CoreFoundation                 0x719fc __CFRunLoopDoSources0 + 232
7  CoreFoundation                 0x70c3c __CFRunLoopRun + 840
8  CoreFoundation                 0x95700 CFRunLoopRunSpecific + 572
9  Foundation                     0x748a8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
10 AWSIoT                         0x8140c -[AWSIoTStreamThread main] + 98 (AWSIoTStreamThread.m:98)
11 Foundation                     0x115cf8 __NSThread__start__ + 732
12 libsystem_pthread.dylib        0x1afc _pthread_start + 136
13 libsystem_pthread.dylib        0x1a04 thread_start + 8

Thread
0  libsystem_kernel.dylib         0xa90 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x46ac _pthread_wqthread + 368
2  libsystem_pthread.dylib        0x19f8 start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0xa90 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x46ac _pthread_wqthread + 368
2  libsystem_pthread.dylib        0x19f8 start_wqthread + 8

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions