Search results for

“LLDB crash”

30,527 results found

Post

Replies

Boosts

Views

Activity

Reply to LLDB always exits abnormally on local code
No solution, sorry, but I have exactly the same problem. I can debug successfully a local program on Sonoma 14.2.1 on an M2, but when trying to debug the same code/program on Sonoma 14.2.1 on a 2019 Intel i5, I repeatedly get the lost connection outcome after setting a breakpoint at main(): (lldb) target create factorial Current executable set to '/Users/chris/src/showc/showc/src/factorial' (x86_64). (lldb) br set -n main Breakpoint 1: where = factorial`main + 22 at factorial.c:30:9, address = 0x0000000100000e96 (lldb) run Process 85314 launched: '/Users/chris/src/showc/showc/src/factorial' (x86_64) Process 85314 exited with status = -1 (0xffffffff) lost connection The frequent suggestion of using settings set plugin.process.gdb-remote.packet-timeout 300 has no effect.
Jan ’24
Reply to Swift "Bus error: 10"
Thank you for not giving up!The error is not directly reproducible. It occurs intermittenly, days apart. Usually, but not always, in relation to Sleep. I have gotten the error on my iMac and my MacBook. The application accesses a shared file on a Linux device on my LAN.I had been getting occasional, random xxxx has quit unexpectedly for a long time. I concluded it was due to a network problem because I could reproduce it by turning WiFi off. In December, I added do-try-catch (tested through WiFi disconnect). But the errors continued, so I ran it from inside the package in Terminal. That's when I saw the Bus error: 10 and, with help of this board, discovered the Crash Report. Whew!Whatever is wrong, I think I injected it during December do-try-catch changes. But, part of debugging is asking How would I intentionally create that error?. I'm coming up dry on that question because Swift keeps coders a safe distance from memory allocation/pointers.A memory leak is a possibility, but Acti
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’17
Crash debugging for translated x86_64 process under Rosetta
Hi all, I want to analyze the crash dump of translated x86_64 application under Rosetta emulation. After survey, I enable core dump at the start of my application, build application with DWARF and dSym config in XCode, and collect core dump from /cores/core.PID However, when I want to analyze core dump with lldb, I use the following command for backtracing: lldb -c /cores/core.PID (lldb) target create --core /cores/core.PID Core file '/cores/core.PID' (arm64) was loaded. (lldb) bt and I only got frame number with function address * thread #1, stop reason = ESR_EC_DABORT_EL0 (fault address: 0x0) * frame #0: 0x0000000102ae4c04 * frame #1: 0x0000000202d166ac Therefore, I try to add-sym but get the following error message: error: symbol file 'xxxxx.dSYM' does not match any existing module I know that macOS would generate crash report in ~/Library/Logs/DiagnosticReports/, but I need further analysis of crash dump. Is there any way to do post-mortem deb
1
0
1.9k
Nov ’22
Reply to Xcode 7 crash at breakpoint
Can you file a bug with this information? (Stacktrace and the fact that it goes away with CLANG_ENABLE_MODULE_DEBUGGING)It also looks like you may have some python LLDB script being interpreted here, so if you could include any that might be involved that would be helpful.
Oct ’15
Xcode crashes when opening .SKS files
Hi guys,I have been suffering from this stupid error of Xcode for month, and now is really desperated. Everytime I click any .SKS files, Xcode crashes with the announcement ''Xcode quit unexpectedly. I use the lastest Xcode 7.3 and even the beta 7.3.1 and El Capitan OS. Yes, I have searched on google for this error. There are hundreds of results about this, means many people also suffer from this error. Howevery the reason why I still create a discussion here is: from all the pages I searched there is NO ANSWER for this error at all. An even on this website, some people raised the same question, but Apple Staff seems to ignore them and I feel like they just dont care about this! How can I open .SKS files now? Because if I can't, I can't create and modify scenes. Can't create a game with only one scene.Help, please!
8
0
2.3k
May ’16
Reply to Potential Structural Swift Concurrency Issue: unsafeForcedSync called from Swift Concurrent context
Thanks for bringing this over to the Apple Developer Forums. On Swift Forums you wrote: This isn’t actually crashing the app Ah, confusing. There are multiple instances of code like this and some of them trap using fatalError(…) while others just log. [quote='802423021, interferon, /thread/802423, /profile/interferon'] Is there a way I can set a breakpoint to catch this where it happens? [/quote] Try this: (lldb) br set -s libswiftos.dylib -n os_log I’m not 100% sure it’ll hit this breakpoint but, if it does, the backtrace should help you understand how you got there. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Sep ’25
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 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 Keychain error -34018 (errSecMissingEntitlement)
Ditto, started seeing this today.result = SecItemAdd((__bridge CFDictionaryRef)[self dictionaryToSecItemFormat:keychainItemData], NULL);(lldb) p result(OSStatus) $1 = -34018😢
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’15
Reply to LLDB always exits abnormally on local code
No solution, sorry, but I have exactly the same problem. I can debug successfully a local program on Sonoma 14.2.1 on an M2, but when trying to debug the same code/program on Sonoma 14.2.1 on a 2019 Intel i5, I repeatedly get the lost connection outcome after setting a breakpoint at main(): (lldb) target create factorial Current executable set to '/Users/chris/src/showc/showc/src/factorial' (x86_64). (lldb) br set -n main Breakpoint 1: where = factorial`main + 22 at factorial.c:30:9, address = 0x0000000100000e96 (lldb) run Process 85314 launched: '/Users/chris/src/showc/showc/src/factorial' (x86_64) Process 85314 exited with status = -1 (0xffffffff) lost connection The frequent suggestion of using settings set plugin.process.gdb-remote.packet-timeout 300 has no effect.
Replies
Boosts
Views
Activity
Jan ’24
Reply to Swift "Bus error: 10"
Thank you for not giving up!The error is not directly reproducible. It occurs intermittenly, days apart. Usually, but not always, in relation to Sleep. I have gotten the error on my iMac and my MacBook. The application accesses a shared file on a Linux device on my LAN.I had been getting occasional, random xxxx has quit unexpectedly for a long time. I concluded it was due to a network problem because I could reproduce it by turning WiFi off. In December, I added do-try-catch (tested through WiFi disconnect). But the errors continued, so I ran it from inside the package in Terminal. That's when I saw the Bus error: 10 and, with help of this board, discovered the Crash Report. Whew!Whatever is wrong, I think I injected it during December do-try-catch changes. But, part of debugging is asking How would I intentionally create that error?. I'm coming up dry on that question because Swift keeps coders a safe distance from memory allocation/pointers.A memory leak is a possibility, but Acti
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jan ’17
Crash debugging for translated x86_64 process under Rosetta
Hi all, I want to analyze the crash dump of translated x86_64 application under Rosetta emulation. After survey, I enable core dump at the start of my application, build application with DWARF and dSym config in XCode, and collect core dump from /cores/core.PID However, when I want to analyze core dump with lldb, I use the following command for backtracing: lldb -c /cores/core.PID (lldb) target create --core /cores/core.PID Core file '/cores/core.PID' (arm64) was loaded. (lldb) bt and I only got frame number with function address * thread #1, stop reason = ESR_EC_DABORT_EL0 (fault address: 0x0) * frame #0: 0x0000000102ae4c04 * frame #1: 0x0000000202d166ac Therefore, I try to add-sym but get the following error message: error: symbol file 'xxxxx.dSYM' does not match any existing module I know that macOS would generate crash report in ~/Library/Logs/DiagnosticReports/, but I need further analysis of crash dump. Is there any way to do post-mortem deb
Replies
1
Boosts
0
Views
1.9k
Activity
Nov ’22
App getting crash without crash report and crash on particular devices
App getting crash without crash reports and crash is occurs in particular devices. Crash not occurs in simulator.
Replies
3
Boosts
0
Views
375
Activity
Feb ’22
Reply to Xcode 7 crash at breakpoint
Can you file a bug with this information? (Stacktrace and the fact that it goes away with CLANG_ENABLE_MODULE_DEBUGGING)It also looks like you may have some python LLDB script being interpreted here, so if you could include any that might be involved that would be helpful.
Replies
Boosts
Views
Activity
Oct ’15
Crash not appearing in crash logs
Someone who downloaded my app from the app store reported that the app crashed upon opening it. However, upon checking the crash reports for the app in the xcode organizer window, there are no reports of a crash. Could a crash not appear in crash reports for a certain reason?
Replies
2
Boosts
0
Views
2.2k
Activity
Feb ’22
Xcode crashes when opening .SKS files
Hi guys,I have been suffering from this stupid error of Xcode for month, and now is really desperated. Everytime I click any .SKS files, Xcode crashes with the announcement ''Xcode quit unexpectedly. I use the lastest Xcode 7.3 and even the beta 7.3.1 and El Capitan OS. Yes, I have searched on google for this error. There are hundreds of results about this, means many people also suffer from this error. Howevery the reason why I still create a discussion here is: from all the pages I searched there is NO ANSWER for this error at all. An even on this website, some people raised the same question, but Apple Staff seems to ignore them and I feel like they just dont care about this! How can I open .SKS files now? Because if I can't, I can't create and modify scenes. Can't create a game with only one scene.Help, please!
Replies
8
Boosts
0
Views
2.3k
Activity
May ’16
Reply to XCode 8 Compiled Apps Wont Run In Simulator
Nevermind, somehow I had an error in the storyboard. http://stackoverflow.com/questions/26442414/libcabi-dylib-terminating-with-uncaught-exception-of-type-nsexception-lldb fixed it.
Replies
Boosts
Views
Activity
Aug ’16
Reply to Potential Structural Swift Concurrency Issue: unsafeForcedSync called from Swift Concurrent context
Thanks for bringing this over to the Apple Developer Forums. On Swift Forums you wrote: This isn’t actually crashing the app Ah, confusing. There are multiple instances of code like this and some of them trap using fatalError(…) while others just log. [quote='802423021, interferon, /thread/802423, /profile/interferon'] Is there a way I can set a breakpoint to catch this where it happens? [/quote] Try this: (lldb) br set -s libswiftos.dylib -n os_log I’m not 100% sure it’ll hit this breakpoint but, if it does, the backtrace should help you understand how you got there. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Replies
Boosts
Views
Activity
Sep ’25
Reply to BGTaskScheduler ColorFeed sample project doesn't work
I have the same problem. Did everything according to the WWDC video and I can trigger execution via lldb _simulateLaunchForTaskWithIdentifier, but other than that, it's never executed. Is there any way to analyze whats going on?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’19
Reply to iOS 26 UIKIt: Where's the missing cornerConfiguration property of UIViewEffectView?
Inspecting the UIVisualEffectView, it looks like the cornerConfiguration property is in fact available, but it just hasn't been exposed as a public API yet. (lldb) po [self cornerConfiguration]
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jul ’25
App getting crash without crash report and crash on particular devices
App getting crash without crash reports and crash is occurs in particular devices. Crash not occurs in simulator.
Replies
1
Boosts
0
Views
452
Activity
Feb ’22
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 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