Crash starting app after upgrade to Monterey

Need some help debugging an issue that only started after upgrading to Monterey. Our application is failing to start resulting in a segmentation fault. I am new to debugging such things on MacOS. Using lldb I get the following back trace. Tells me a little but I am unsure how to approach the issue. Looks like it may be related to loading symbols from a dynamic library? Oh, and yes, everything was rebuilt and all dependent libraries installed / upgraded with brew, etc.

Thanks, Bob

(lldb) bt

* thread #1, stop reason = signal SIGSTOP

  * frame #0: 0x0000000000000000

    frame #1: 0x00007ff807e34bb2 libobjc.A.dylib`load_images + 1358

    frame #2: 0x0000000115a0a41c dyld`dyld4::RuntimeState::notifyObjCInit(dyld4::Loader const*) + 170

    frame #3: 0x0000000115a0fbfd dyld`dyld4::Loader::runInitializersBottomUp(dyld4::RuntimeState&, dyld3::Array<dyld4::Loader const*>&) const + 167

    frame #4: 0x0000000115a0fbeb dyld`dyld4::Loader::runInitializersBottomUp(dyld4::RuntimeState&, dyld3::Array<dyld4::Loader const*>&) const + 149

    frame #5: 0x0000000115a0fbeb dyld`dyld4::Loader::runInitializersBottomUp(dyld4::RuntimeState&, dyld3::Array<dyld4::Loader const*>&) const + 149

    frame #6: 0x0000000115a0fcac dyld`dyld4::Loader::runInitializersBottomUpPlusUpwardLinks(dyld4::RuntimeState&) const + 108

    frame #7: 0x0000000115a2332e dyld`dyld4::APIs::runAllInitializersForMain() + 222

    frame #8: 0x0000000115a01358 dyld`dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3438

    frame #9: 0x0000000115a004b4 dyld`start + 388

I would need to compile a debuggable version of libmalloc.

Or debug this entirely at the assembly level (-:

Seriously though, compiling libmalloc is not something I’d attempt. In my experience Darwin open source is a super helpful reference but building it is a real challenge.

How can I go deeper?

At this point I’m going to recommend that you open a DTS tech support incident so that I can carve out some time to look at this in more depth.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Notadeveloper2021 wrote:

Does anyone know how to fix this

It’s hard to say what’s going on here because of the formatting on your comment but I strongly suspect that this is unrelated to the issue being discussed on this thread. Note that you’ve crashed with EXC_ARITHMETIC whereas the other posts are all EXC_BAD_ACCESS.

I encourage you to start a new thread for your issue. When doing that:

  • Include a full copy of your crash report; see Posting a Crash Report for advice on that front.

  • Add the Debugging tag so that I see it go by.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Crash starting app after upgrade to Monterey
 
 
Q