Search results for

“LLDB crash”

30,541 results found

Post

Replies

Boosts

Views

Activity

Reply to EXC_BAD_ACCESS (code=1) on an apparently valid address
The crash dump says the pointer is pointing to a gap in the VM space of size 0x4000.Here's a bit more data:Process 626 stopped * thread #12, stop reason = EXC_BAD_ACCESS (code=1, address=0x106941224) frame #0: 0x00000001006e72a0 iSH`cpu_run [inlined] __mem_read(mem=<unavailable>, addr=<unavailable>, size=4) at memory.h:105 [opt] 102 void *ptr = __mem_read_ptr(mem, addr); 103 if (ptr == NULL) 104 return false; -> 105 memcpy(out, ptr, size); 106 return true; 107 } 108 #define mem_read(mem, addr, value) __mem_read(mem, addr, (value), sizeof(*(value))) Target 0: (iSH) stopped. (lldb) c Process 626 resuming Process 626 stopped * thread #12, stop reason = EXC_BAD_ACCESS (code=1, address=0x106941224) frame #0: 0x00000001006e72a0 iSH`cpu_run [inlined] __mem_read(mem=<unavailable>, addr=<unavailable>, size=4) at memory.h:105 [opt] 102 void *ptr = __mem_read_ptr(mem, addr); 103 if (ptr == NULL) 104 return false; -> 105 memcpy(out, ptr, size); 106 return true; 107 } 108 #d
Topic: App & System Services SubTopic: Core OS Tags:
Dec ’17
Reply to DNS duration 4294893875545978
[quote='777684021, huuu, /thread/777684, /profile/huuu'] The hexadecimal value of 4294893875545978 is 0xF3F3F3F3F3F3A. [/quote] Is it? That’s not what I calculate: (lldb) p/x 4294893875545978 (long) 0x000f422ee7ccc77a (lldb) p/x -4294893875545978 (long) 0xfff0bdd118333886 I’m not entirely sure what’s going on with your code but I do have one hint to pass along: Both domainLookupStartDate and domainLookupEndDate can be nil, so you should only run this calculation if both values are valid. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Mar ’25
Reply to Crash log and symbolication when using Xcode Cloud
But what if I don't download the archive builds from Xcode Cloud and don't have them locally? Does that mean that I won't be able to symbolicate crash? I thought the crashes would be symbolicated in the cloud. It's not the case? When you submit your app to the App Store, there's an option for you to include symbol information as part of the app for that upload. When you do so, crash reports that appear in your Xcode Organizer for that app version will be symbolicated for you already. That's a feature of the App Store, and not specific to builds created and uploaded through Xcode Cloud. However, that doesn't mean you shouldn't download the archives from Xcode Cloud, that is still a best practice. One valuable part of that is access to the dSYMs, which are incredibly detailed debugging assets. While using the dSYMs for symbolication is one function they serve, they also enable significant debugging capabilities using LLDB that aren't possible without them. The symbol informat
Jun ’25
Reply to Not able to attach Xcode debugger to System Extension by name on macOS
I would like to be able to start debugger using process name and launch the extension and be able to debug from first line of code in extension. Due to the way that sysexes are loaded — they are very different from apexes! — I would not expect to be able to attach before the process is running. However, you wrote: If the extension is already running, then I am able to attach by PID but never by name. and I would expect name and PID to work equally well here, that is, they both work or they both don’t. That fact that’s not the case is weird. I have tried using target name as well as extension bundle identifier and several other combinations. Try this… Run lldb using sudo. % sudo lldb Type in this command: (lldb) process attach -n xxx but don’t press Return. In this context xxx is the name that you successfully attached with in the past. Press Tab. LLDB should print a list of candidates. Copy the full expansion of the sysex name. Go to Xcode and enter that into Debug Attach t
May ’21
Reply to Instruments/Allocations inconsistent object counts when drilling down
Regarding Instruments:It may not be an error, but the options for the top level summary may (in effect) be different from those for your detail view. The top level might be including all objects ever created and/or destroyed, while the detail might only be show objects still in existence at a certain time.If you can't find an explanation, or if there might be an explanation but you think it's too confusing, then submit a bug report and attach your Instruments document.Regarding dSYMs:>> if lldb can do it, you can too!Actually, it's always lldb, not Xcode. Xcode uses lldb as its interface to debugging generally.As to missing debug information, it's a bit complicated. In a release build, all debugging information has been moved to a dSYM, and the executable contains nothing to help debugging, except module names and global symbols.In a debug build, the debug information (last I heard) can be spread around multiple locations, according to the technical needs of various binary for
May ’16
SpringBoard Crashes on macOS Simulator When Receiving Critical Alerts
I’m experiencing a consistent crash of SpringBoard on macOS when running my iOS app in the Simulator. The crash occurs specifically when a critical alert (geofence notification) is triggered by my server and delivered to the app. Xcode version: 16.4 macOS version: 15.5 App uses UNUserNotificationCenter with critical alert notifications related to geofencing. When the critical alert is received, SpringBoard quits unexpectedly on macOS, crashing the Simulator UI to the home screen. The notification is delivered by Firebase, and I have updated to the latest version of that. The console shows: XPC connection interrupted [C:1] Error received: Connection interrupted. [C:1-2] Error received: Connection interrupted. This does not happen when testing on a real device — the app works fine there, however, Springbaord still crashes on macOS. Please advise if this is a known issue or if there’s a workaround. This severely impacts development and testing of location-bas
3
0
203
Jul ’25
Reply to 'XCUIElement' is not a member type of 'XCTest'
Same problem here with Xcode 8.0 (8A218a)expression produced error: /var/folders/pv/5jlpdzzn3p55w0ynccpt8x500000gn/T/lldb/37283/expr139.swift:1:53: error: 'XCUIElement' is not a member type of 'XCTest' $__lldb__DumpForDebugger(Swift.UnsafePointer<XCTest.XCUIElement>(bitPattern: 0x119244860).memory) ~~~~~~ ^ /var/folders/pv/5jlpdzzn3p55w0ynccpt8x500000gn/T/lldb/37283/expr139.swift:1:45: note: while parsing this '<' as a type parameter bracket $__lldb__DumpForDebugger(Swift.UnsafePointer<XCTest.XCUIElement>(bitPattern: 0x119244860).memory)The file expr139.swift content is :$__lldb__DumpForDebugger(Swift.UnsafePointer<XCTest.XCUIElement>(bitPattern: 0x119244860).memory)
Sep ’16
Reply to dlopen() reloads original instead of new dylib after changes
So here's a capture from dlopen/dlclose() of the same library renumbered at the end. The path doesn't change, and it's looks like the cache restores the original 000.dylib instead of the 001.dylib that dlopen() requested on the second call. I have dyld environment settings providing a little more insight here. (lldb) image list -b [621] other.dylib [622] other2.dylib dlopen(/foo/bar_signed_000.dylib) dyld: Mapping /foo/bar_signed_000.dylib dyld: loaded: /foo/bar_signed_000.dylib (lldb) image list -b [621] other.dylib [622] other2.dylib [623] bar_signed_000.dylib <- correct, it’s loaded and in the list dlclose() dyld: unloaded: /foo/bar_signed_000.dylib <- correct, unloaded dlopen(/foo/bar_signed_001.dylib) dyld: loaded: /foo/bar_signed_001.dylib <- dyld reused the UUID? (lldb) image list -b [627] bar_signed_000.dylib <- ugh, this is wrong path
Topic: App & System Services SubTopic: General Tags:
Jan ’21
No crashes in organizer -> crashes. Analytics reports number of crashes
It's all in tht title really. My app, live in the app store crashes (thankfully not a lot). I know that because the apple analytics claims that it does. Going to organizer -> crashes in latest xcode, macos, shows no crashes on my macbook and old crashes (>10 days ago on my imac) for the latest prod version. Any ideas? I've opened a radar - 28734274
2
0
713
Oct ’16
No crash logs despite crashing
Hi there, really appreciate any help with this. We have created various builds in testflight for our game made in Unreal Engine 4. In the first build, the game crashed on all devices with a crash log generated. I solved this issue and we now have the main menu loaded on all devices. In our current build, we have crashes on 3/4 device types when we enter a map that is not the main menu. However we have no crash logs generated by this and so are unable to find the cause of the crash. Any idea why this might be happening. Let me know if you need any further info.
1
0
894
Nov ’22
App crashes when resizing window with mapview in Xcode 12
My single view native macOS app crashes with lldb error. It crashes with the message *** -[MTLDebugTexture removeUsedRenderTarget: slices:]: message sent to deallocated instance 0x-------. The error thread reads EXC_BAD_INSTRUCTION (CODE=EXC_I386_INVOP,subcode=0x0) my app crashed and was rejected during review. so I'm thinking of disabling the resize option I have also tried with just the storyboard and auto layout without connecting it to code. still crashes
0
0
837
Dec ’20
Reply to EXC_BAD_ACCESS (code=1) on an apparently valid address
The crash dump says the pointer is pointing to a gap in the VM space of size 0x4000.Here's a bit more data:Process 626 stopped * thread #12, stop reason = EXC_BAD_ACCESS (code=1, address=0x106941224) frame #0: 0x00000001006e72a0 iSH`cpu_run [inlined] __mem_read(mem=<unavailable>, addr=<unavailable>, size=4) at memory.h:105 [opt] 102 void *ptr = __mem_read_ptr(mem, addr); 103 if (ptr == NULL) 104 return false; -> 105 memcpy(out, ptr, size); 106 return true; 107 } 108 #define mem_read(mem, addr, value) __mem_read(mem, addr, (value), sizeof(*(value))) Target 0: (iSH) stopped. (lldb) c Process 626 resuming Process 626 stopped * thread #12, stop reason = EXC_BAD_ACCESS (code=1, address=0x106941224) frame #0: 0x00000001006e72a0 iSH`cpu_run [inlined] __mem_read(mem=<unavailable>, addr=<unavailable>, size=4) at memory.h:105 [opt] 102 void *ptr = __mem_read_ptr(mem, addr); 103 if (ptr == NULL) 104 return false; -> 105 memcpy(out, ptr, size); 106 return true; 107 } 108 #d
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’17
Reply to DNS duration 4294893875545978
[quote='777684021, huuu, /thread/777684, /profile/huuu'] The hexadecimal value of 4294893875545978 is 0xF3F3F3F3F3F3A. [/quote] Is it? That’s not what I calculate: (lldb) p/x 4294893875545978 (long) 0x000f422ee7ccc77a (lldb) p/x -4294893875545978 (long) 0xfff0bdd118333886 I’m not entirely sure what’s going on with your code but I do have one hint to pass along: Both domainLookupStartDate and domainLookupEndDate can be nil, so you should only run this calculation if both values are valid. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Replies
Boosts
Views
Activity
Mar ’25
Reply to Crash log and symbolication when using Xcode Cloud
But what if I don't download the archive builds from Xcode Cloud and don't have them locally? Does that mean that I won't be able to symbolicate crash? I thought the crashes would be symbolicated in the cloud. It's not the case? When you submit your app to the App Store, there's an option for you to include symbol information as part of the app for that upload. When you do so, crash reports that appear in your Xcode Organizer for that app version will be symbolicated for you already. That's a feature of the App Store, and not specific to builds created and uploaded through Xcode Cloud. However, that doesn't mean you shouldn't download the archives from Xcode Cloud, that is still a best practice. One valuable part of that is access to the dSYMs, which are incredibly detailed debugging assets. While using the dSYMs for symbolication is one function they serve, they also enable significant debugging capabilities using LLDB that aren't possible without them. The symbol informat
Replies
Boosts
Views
Activity
Jun ’25
Reply to error: Couldn't IRGen expression, no additional error
I have the same problem like here for Xcode 10 GM and OS High Sierra 10.13.6, SWIFT 4.2https://stackoverflow.com/questions/43977271/lldb-couldnt-irgen-expression
Replies
Boosts
Views
Activity
Sep ’18
Xcode lldb po doesnt print object description only memory
for instance: po [NSBundle mainBundle] 0x0000600002130000 p [NSBundle mainBundle] (NSBundle *) 0x0000600002130000 p [[NSBundle mainBundle] bundlePath] error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x0). The process has been returned to the state before expression evaluation. I am in debug mode
Replies
0
Boosts
0
Views
105
Activity
Apr ’25
Reply to Not able to attach Xcode debugger to System Extension by name on macOS
I would like to be able to start debugger using process name and launch the extension and be able to debug from first line of code in extension. Due to the way that sysexes are loaded — they are very different from apexes! — I would not expect to be able to attach before the process is running. However, you wrote: If the extension is already running, then I am able to attach by PID but never by name. and I would expect name and PID to work equally well here, that is, they both work or they both don’t. That fact that’s not the case is weird. I have tried using target name as well as extension bundle identifier and several other combinations. Try this… Run lldb using sudo. % sudo lldb Type in this command: (lldb) process attach -n xxx but don’t press Return. In this context xxx is the name that you successfully attached with in the past. Press Tab. LLDB should print a list of candidates. Copy the full expansion of the sysex name. Go to Xcode and enter that into Debug Attach t
Replies
Boosts
Views
Activity
May ’21
Reply to Instruments/Allocations inconsistent object counts when drilling down
Regarding Instruments:It may not be an error, but the options for the top level summary may (in effect) be different from those for your detail view. The top level might be including all objects ever created and/or destroyed, while the detail might only be show objects still in existence at a certain time.If you can't find an explanation, or if there might be an explanation but you think it's too confusing, then submit a bug report and attach your Instruments document.Regarding dSYMs:>> if lldb can do it, you can too!Actually, it's always lldb, not Xcode. Xcode uses lldb as its interface to debugging generally.As to missing debug information, it's a bit complicated. In a release build, all debugging information has been moved to a dSYM, and the executable contains nothing to help debugging, except module names and global symbols.In a debug build, the debug information (last I heard) can be spread around multiple locations, according to the technical needs of various binary for
Replies
Boosts
Views
Activity
May ’16
SpringBoard Crashes on macOS Simulator When Receiving Critical Alerts
I’m experiencing a consistent crash of SpringBoard on macOS when running my iOS app in the Simulator. The crash occurs specifically when a critical alert (geofence notification) is triggered by my server and delivered to the app. Xcode version: 16.4 macOS version: 15.5 App uses UNUserNotificationCenter with critical alert notifications related to geofencing. When the critical alert is received, SpringBoard quits unexpectedly on macOS, crashing the Simulator UI to the home screen. The notification is delivered by Firebase, and I have updated to the latest version of that. The console shows: XPC connection interrupted [C:1] Error received: Connection interrupted. [C:1-2] Error received: Connection interrupted. This does not happen when testing on a real device — the app works fine there, however, Springbaord still crashes on macOS. Please advise if this is a known issue or if there’s a workaround. This severely impacts development and testing of location-bas
Replies
3
Boosts
0
Views
203
Activity
Jul ’25
Explain the reason for a crash from the crash report
I have a crash report and i want to know from it why an app crashed running on iphone with 0S 15.1 crash.txt
Replies
4
Boosts
0
Views
1.8k
Activity
Nov ’21
Reply to How do I run CoreBluetooth in background thread?
How did you manage to get the CoreBluetooth security confirmation appear for your command-line app? I'm trying to do the same and said alert only appears when I run the app from lldb.
Replies
Boosts
Views
Activity
Mar ’21
Reply to 'XCUIElement' is not a member type of 'XCTest'
Same problem here with Xcode 8.0 (8A218a)expression produced error: /var/folders/pv/5jlpdzzn3p55w0ynccpt8x500000gn/T/lldb/37283/expr139.swift:1:53: error: 'XCUIElement' is not a member type of 'XCTest' $__lldb__DumpForDebugger(Swift.UnsafePointer<XCTest.XCUIElement>(bitPattern: 0x119244860).memory) ~~~~~~ ^ /var/folders/pv/5jlpdzzn3p55w0ynccpt8x500000gn/T/lldb/37283/expr139.swift:1:45: note: while parsing this '<' as a type parameter bracket $__lldb__DumpForDebugger(Swift.UnsafePointer<XCTest.XCUIElement>(bitPattern: 0x119244860).memory)The file expr139.swift content is :$__lldb__DumpForDebugger(Swift.UnsafePointer<XCTest.XCUIElement>(bitPattern: 0x119244860).memory)
Replies
Boosts
Views
Activity
Sep ’16
Reply to dlopen() reloads original instead of new dylib after changes
So here's a capture from dlopen/dlclose() of the same library renumbered at the end. The path doesn't change, and it's looks like the cache restores the original 000.dylib instead of the 001.dylib that dlopen() requested on the second call. I have dyld environment settings providing a little more insight here. (lldb) image list -b [621] other.dylib [622] other2.dylib dlopen(/foo/bar_signed_000.dylib) dyld: Mapping /foo/bar_signed_000.dylib dyld: loaded: /foo/bar_signed_000.dylib (lldb) image list -b [621] other.dylib [622] other2.dylib [623] bar_signed_000.dylib <- correct, it’s loaded and in the list dlclose() dyld: unloaded: /foo/bar_signed_000.dylib <- correct, unloaded dlopen(/foo/bar_signed_001.dylib) dyld: loaded: /foo/bar_signed_001.dylib <- dyld reused the UUID? (lldb) image list -b [627] bar_signed_000.dylib <- ugh, this is wrong path
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’21
No crashes in organizer -> crashes. Analytics reports number of crashes
It's all in tht title really. My app, live in the app store crashes (thankfully not a lot). I know that because the apple analytics claims that it does. Going to organizer -> crashes in latest xcode, macos, shows no crashes on my macbook and old crashes (>10 days ago on my imac) for the latest prod version. Any ideas? I've opened a radar - 28734274
Replies
2
Boosts
0
Views
713
Activity
Oct ’16
No crash logs despite crashing
Hi there, really appreciate any help with this. We have created various builds in testflight for our game made in Unreal Engine 4. In the first build, the game crashed on all devices with a crash log generated. I solved this issue and we now have the main menu loaded on all devices. In our current build, we have crashes on 3/4 device types when we enter a map that is not the main menu. However we have no crash logs generated by this and so are unable to find the cause of the crash. Any idea why this might be happening. Let me know if you need any further info.
Replies
1
Boosts
0
Views
894
Activity
Nov ’22
App crashes when resizing window with mapview in Xcode 12
My single view native macOS app crashes with lldb error. It crashes with the message *** -[MTLDebugTexture removeUsedRenderTarget: slices:]: message sent to deallocated instance 0x-------. The error thread reads EXC_BAD_INSTRUCTION (CODE=EXC_I386_INVOP,subcode=0x0) my app crashed and was rejected during review. so I'm thinking of disabling the resize option I have also tried with just the storyboard and auto layout without connecting it to code. still crashes
Replies
0
Boosts
0
Views
837
Activity
Dec ’20