rust-lang / backtrace-rs

Backtraces in Rust

Home Page:https://docs.rs/backtrace

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backtrace crashes on iOS 15?

bes opened this issue · comments

Hello,

We have recently deployed an application to Apple's App Store for iOS and are getting a small number of crashes in Crashlytics that may be caused by taking a backtrace using backtrace-rs.

Unfortunately the crash doesn't contain much information, except for this:

Crashed: com.apple.root.user-initiated-qos.cooperative
0  libunwind.dylib                0x7a18 libunwind::UnwindCursor<libunwind::LocalAddressSpace, libunwind::Registers_arm64>::step() + 680
1  libunwind.dylib                0xa10c _Unwind_Backtrace + 284
2  Applica                        0xad8510 backtrace::capture::Backtrace::new::hfefb17d8ee9ae05f + 4380919056
3  Applica                        0xbc7c6c applica_client::error::ClientError::new::h52fece69cac4f2f0 + 4381899884
[... a bunch of our application calls ...]
13 libswift_Concurrency.dylib     0x3d5f0 swift::runJobInEstablishedExecutorContext(swift::Job*) + 244
14 libswift_Concurrency.dylib     0x3dfac swift_job_runImpl(swift::Job*, swift::ExecutorRef) + 76
15 libdispatch.dylib              0x15de0 _dispatch_root_queue_drain + 396
16 libdispatch.dylib              0x16608 _dispatch_worker_thread2 + 164
17 libsystem_pthread.dylib        0x10b8 _pthread_wqthread + 228
18 libsystem_pthread.dylib        0xe94 start_wqthread + 8

I have tried to research what might be causing this, but I am at a loss. I don't want the application to crash, I just want to print the backtrace of the error as it occurs.

Our app targets iOS 15 and iOS16, but so far we have only got crash reports for iOS 15.

Should I be able to do this? Should I disable backtrace capture on iOS?