Search results for

“LLDB crash”

30,527 results found

Post

Replies

Boosts

Views

Activity

Reply to kernel debug kit KDK_12.1_21C52
This is caused by Python version mismatch between LLDB and scripts inside kernel's dSYM. Python scripts inside your dSYM require Python 2 but Python 2 support has been removed from newer LLDBs. To solve the problem you will have to install older LLDB/Xcode that still has Python 2 support.
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’22
Reply to ubc_msync have a bug
(lldb) image lookup -a 0xffffff801a5ac283 Address: kernel[0xffffff80003ac283] (kernel.TEXT.text + 344707) Summary: kernelpanic + 99 at debug.c (lldb) image lookup -a 0xffffff801a6d91ea Address: kernel[0xffffff80004d91ea] (kernel.TEXT.text + 1577450) Summary: kernelpanic64 + 218 at trapnative.c:152 (lldb) image lookup -a 0xffffff801a55a51f Address: kernel[0xffffff800035a51f] (kernel.TEXT.text + 9503) Summary: kernelhndl_double_fault + 15 (lldb) image lookup -a 0xffffff801a6cd95f Address: kernel[0xffffff80004cd95f] (kernel.TEXT.text + 1530207) Summary: kernelusimplelock + 47 at machineroutines.c (lldb) image lookup -a 0xffffff801a5c95ad Address: kernel[0xffffff80003c95ad] (kernel.TEXT.text + 464301) Summary: kernelthread_dispatch + 445 at sched_prim.c:2768 (lldb) image lookup -a 0xffffff801a5c906e Address: kernel[0xffffff80003c906e] (kernel.TEXT.text + 462958) Summary: kernelthreadinvoke + 1710 at schedprim.c:2559 (lldb) image lookup -a 0xffffff801a
Topic: App & System Services SubTopic: Core OS Tags:
Feb ’21
Reply to Xcode 7 crash at breakpoint
@rickbdotcomSame story here. Excluding 3rd party framework from Carthage (which was distributed as pre-compiled binary) and compiling/linking it directly within the project – does fix Xcode crash and restores lldb breakpoints functionality.Thanks!UPDATE: It is possible to force Carthage to build frameworks from sources by passing additional argument carthage update --no-use-binaries
Dec ’15
Reply to User crash report contains ??? instead of my app's symbols and no binary image base address
Another strange thing is that when dragging the crash report to the Xcode dock icon, the Xcode console logs this error: User Command: command script import -s lldb.macosx.crashlog User Command: crashlog --interactive --skip-status --no-parallel-image-loading ~/crash.ips Resolved symbols for 0A35BC69-660D-3BC0-8AB4-3FA8D922EECB /usr/lib/libobjc-trampolines.dylib... Resolved symbols for 79EFE8B6-A212-3E98-B801-C9F2BF18EA68 /usr/lib/dyld... Traceback (most recent call last): File /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python/lldb/macosx/crashlog.py, line 1444, in __call__ SymbolicateCrashLogs(debugger, shlex.split(command), result, True) File /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python/lldb/macosx/crashlog.py, line 1855, in SymbolicateCrashLogs load_crashlog_in_scripted_process( File /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python/lldb/macosx/crashlog.py, line 1557, in l
4w
Reply to Sequoia 'local network' permission failure from launch agent
So I found the lldb incantation to wait for a process: sudo lldb -n svn -w I then launched svn via my launchagent and indeed lldb attached to it, and indeed the launchagent waited. I waited minutes, then told lldb to continue, and it did, and then the launchagent also finished. But again svn output 'no route to host', and again no permission prompt appeared for me the whitelist svn. I also updated to macOS 15.4, which has not helped.
Apr ’25
Reply to LLDB and environment variables in Xcode
I tried the solution today and would like to post a correction: Using the --relative-to-command-file or -c flag will then expect a Python module name, which needs to be located directly next to the command file. Demonstrating with examples: $(SRCROOT)/.lldbinit with the following content: command script import --relative-to-command-file ./lldb/type_formatters.py Will result in an error: error: module importing failed: Python does not allow dots in module names: ./lldb/type_formatters $(SRCROOT)/lldb/.lldbinit with the following content: command script import --relative-to-command-file type_formatters Will result in a successful import $(SRCROOT)/.lldbinit with the following content: command script import lldb Will succeed if $(SRCROOT)/lldb is a Python module, denoted with a __init__.py file at $(SRCROOT)/lldb/__init__.py Further python modules then can be imported with command script import which live under $(SRCROOT)/lldb
Nov ’25
Xcode 12 crashing native simulator widgets
I'm experiencing crashes on my Simulator when I build and run apps using Xcode 12 and iOS 14 Simulators. Probably it crashes when Simulator's OS boots. I get alert dialogs of possibly uncaught exceptions. Many things are crashing: NewsToday2 quit unexpectedly NewsTag quit unexpectedly CalendarWidgetExtension quit unexpectedly and so on... I think there aren't more instances like that in the Forum because it fails silently for most people. But if you try to see the correspondent widgets they are all a black rectangle in the widgets screen. To see those alerts you need the CrashReporterPrefs.app that can be found inside Additional Tools for Xcode 12 at the official developers download page - https://developer.apple.com/download/more/ Set it as Developer and the check the Display alert dialog for uncaught exceptions. I don't see the direct impact of it in my app, besides an infinite auto-layout loop that I don't think has any relati
1
0
1.2k
Oct ’20
Reply to NSMutableDictionary addObject for key
(lldb) po retails { item_id = 43; qty = 11; } (lldb) po [retails setObject:@(self.eventID) forKey:(id)@event_id]; error: Execution was interrupted, reason: internal ObjC exception breakpoint(-4).. The process has been returned to the state before expression evaluation. (lldb) po [retails objectForKey:(id)@event_id] nil (lldb)Thank you for the help. It is odd issue. I will debug more.
Topic: Programming Languages SubTopic: General Tags:
Mar ’18
Reply to AppKit always stalls on first Keyboard event?
I've been playing around with this more and noticed that I only see the hitch when I'm running my application with the LLDB debugger connected. If I run my app standalone, it seems to work without a hitch. Could LLDB be interfering with NSEvent dispatch somehow? Is LLDB doing its own processing on my key events before it reaches my app?
Topic: UI Frameworks SubTopic: AppKit Tags:
Feb ’22
Reply to dlopen() reloads original instead of new dylib after changes
Hi Quinn, The image list is a good suggestion. I was just using that other day. I'll try that, and see what lldb reports. This is pure C++, no Swift or ObjC usage. For some of our users, the dylib hotloads and for others not. It's a mix of people mostly on 10.15.7 and XCode 12.2/3. I did the implementation mentioned above of renaming the lib, but it seems like we have a partial reload. So some code hotloads fine, and other code is still pointing to the old lib. Some code at init of the dylib where we crash (with renaming) is reporting the previous numbered dylib in the debugger. This may be an artifact of how Xcode loads the sources once at launch, but when I do hotload, my breakpoints show the new sources. By ODR, do you mean on-demand-resource? We did have those a while back, but I think they're disabled currently. it’s definitely not there after dlclose() on my system. But my system works. Others don't. So I'll get some more info on the machines that don't hotload. after dlopen() (lldb
Topic: App & System Services SubTopic: General Tags:
Jan ’21
Reply to import CryptoKit seems to not work in playground Xcode 13.2.1
Just for your happiness: adding my similar issue but with a different kit (StoreKit) and in lldb. (lldb) po product error: expression failed to parse: error: Couldn't lookup symbols: type metadata accessor for StoreKit.Product (lldb) po product.subscription error: expression failed to parse: error: Couldn't lookup symbols: StoreKit.Product.subscription.getter : Swift.Optional (lldb) po product.subscription?.promotionalOffers error: expression failed to parse: error: Couldn't lookup symbols: StoreKit.Product.subscription.getter : Swift.Optional
Jul ’22
editing Bool variable in lldb while debugging is not working properly
i wanted to edit an Bool value while debugging. For this i tried multiple approaches but none of them is workingFirst, I tried to keep the debug cursor on the variable and right click on the variable and tried to edit value. Although it shows the value had changed to true , the if block is not executedAnother ways i tried areexpression myvariable = truepo myvariable = truep myvariable = true.But in all these cases , if i print the variable in xcode lldb debugger, the value shows to be changed, but the execution flow is not changedvar myvariable = some expression if(variable){ // if block this part doesnt get executed after all these modifications. }I am using swift 4.2 and Xcode 10.3. Is there any other way to accomplish this?
1
0
1.3k
May ’20
Reply to kernel debug kit KDK_12.1_21C52
This is caused by Python version mismatch between LLDB and scripts inside kernel's dSYM. Python scripts inside your dSYM require Python 2 but Python 2 support has been removed from newer LLDBs. To solve the problem you will have to install older LLDB/Xcode that still has Python 2 support.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Apr ’22
Reply to ubc_msync have a bug
(lldb) image lookup -a 0xffffff801a5ac283 Address: kernel[0xffffff80003ac283] (kernel.TEXT.text + 344707) Summary: kernelpanic + 99 at debug.c (lldb) image lookup -a 0xffffff801a6d91ea Address: kernel[0xffffff80004d91ea] (kernel.TEXT.text + 1577450) Summary: kernelpanic64 + 218 at trapnative.c:152 (lldb) image lookup -a 0xffffff801a55a51f Address: kernel[0xffffff800035a51f] (kernel.TEXT.text + 9503) Summary: kernelhndl_double_fault + 15 (lldb) image lookup -a 0xffffff801a6cd95f Address: kernel[0xffffff80004cd95f] (kernel.TEXT.text + 1530207) Summary: kernelusimplelock + 47 at machineroutines.c (lldb) image lookup -a 0xffffff801a5c95ad Address: kernel[0xffffff80003c95ad] (kernel.TEXT.text + 464301) Summary: kernelthread_dispatch + 445 at sched_prim.c:2768 (lldb) image lookup -a 0xffffff801a5c906e Address: kernel[0xffffff80003c906e] (kernel.TEXT.text + 462958) Summary: kernelthreadinvoke + 1710 at schedprim.c:2559 (lldb) image lookup -a 0xffffff801a
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’21
Reply to Xcode 7 crash at breakpoint
@rickbdotcomSame story here. Excluding 3rd party framework from Carthage (which was distributed as pre-compiled binary) and compiling/linking it directly within the project – does fix Xcode crash and restores lldb breakpoints functionality.Thanks!UPDATE: It is possible to force Carthage to build frameworks from sources by passing additional argument carthage update --no-use-binaries
Replies
Boosts
Views
Activity
Dec ’15
Reply to Xcode 11 beta 2 playground does not compile
I have the same issue with lldb in my project!Both Beta 2 and 3 give meerror: Couldn't lookup symbols: __swift_FORCE_LOAD_$_swiftCoreMIDIwhen trying to execute any lldb command.This is the case only with a real device (I've tested on 12.3.1). On simulator lldb works properly.
Replies
Boosts
Views
Activity
Jul ’19
Reply to User crash report contains ??? instead of my app's symbols and no binary image base address
Another strange thing is that when dragging the crash report to the Xcode dock icon, the Xcode console logs this error: User Command: command script import -s lldb.macosx.crashlog User Command: crashlog --interactive --skip-status --no-parallel-image-loading ~/crash.ips Resolved symbols for 0A35BC69-660D-3BC0-8AB4-3FA8D922EECB /usr/lib/libobjc-trampolines.dylib... Resolved symbols for 79EFE8B6-A212-3E98-B801-C9F2BF18EA68 /usr/lib/dyld... Traceback (most recent call last): File /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python/lldb/macosx/crashlog.py, line 1444, in __call__ SymbolicateCrashLogs(debugger, shlex.split(command), result, True) File /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python/lldb/macosx/crashlog.py, line 1855, in SymbolicateCrashLogs load_crashlog_in_scripted_process( File /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python/lldb/macosx/crashlog.py, line 1557, in l
Replies
Boosts
Views
Activity
4w
Reply to Unable to Debug macOS Action Extension: "Attach failed" Error
Based on a post i found I tried deleting ~/Library/Preferences/com.apple.dt.Xcode.plist ~/Library/Caches/com.apple.dt.Xcode Which helped in the way that I can now Run the extension like a normal app, just choosing Finder as the host app. It hits the breakpoint but the same issue as above -> crash upon stepping over or upon usage of lldb.
Replies
Boosts
Views
Activity
May ’24
Reply to Sequoia 'local network' permission failure from launch agent
So I found the lldb incantation to wait for a process: sudo lldb -n svn -w I then launched svn via my launchagent and indeed lldb attached to it, and indeed the launchagent waited. I waited minutes, then told lldb to continue, and it did, and then the launchagent also finished. But again svn output 'no route to host', and again no permission prompt appeared for me the whitelist svn. I also updated to macOS 15.4, which has not helped.
Replies
Boosts
Views
Activity
Apr ’25
Reply to LLDB and environment variables in Xcode
I tried the solution today and would like to post a correction: Using the --relative-to-command-file or -c flag will then expect a Python module name, which needs to be located directly next to the command file. Demonstrating with examples: $(SRCROOT)/.lldbinit with the following content: command script import --relative-to-command-file ./lldb/type_formatters.py Will result in an error: error: module importing failed: Python does not allow dots in module names: ./lldb/type_formatters $(SRCROOT)/lldb/.lldbinit with the following content: command script import --relative-to-command-file type_formatters Will result in a successful import $(SRCROOT)/.lldbinit with the following content: command script import lldb Will succeed if $(SRCROOT)/lldb is a Python module, denoted with a __init__.py file at $(SRCROOT)/lldb/__init__.py Further python modules then can be imported with command script import which live under $(SRCROOT)/lldb
Replies
Boosts
Views
Activity
Nov ’25
Xcode 12 crashing native simulator widgets
I'm experiencing crashes on my Simulator when I build and run apps using Xcode 12 and iOS 14 Simulators. Probably it crashes when Simulator's OS boots. I get alert dialogs of possibly uncaught exceptions. Many things are crashing: NewsToday2 quit unexpectedly NewsTag quit unexpectedly CalendarWidgetExtension quit unexpectedly and so on... I think there aren't more instances like that in the Forum because it fails silently for most people. But if you try to see the correspondent widgets they are all a black rectangle in the widgets screen. To see those alerts you need the CrashReporterPrefs.app that can be found inside Additional Tools for Xcode 12 at the official developers download page - https://developer.apple.com/download/more/ Set it as Developer and the check the Display alert dialog for uncaught exceptions. I don't see the direct impact of it in my app, besides an infinite auto-layout loop that I don't think has any relati
Replies
1
Boosts
0
Views
1.2k
Activity
Oct ’20
Reply to Extrem slow debug launch startup
same problem here. maybe 'lldb-rpc-server' related. during the 2 minutes, 'lldb-rpc-server' take 100% CPU.
Replies
Boosts
Views
Activity
Jul ’20
Reply to NSMutableDictionary addObject for key
(lldb) po retails { item_id = 43; qty = 11; } (lldb) po [retails setObject:@(self.eventID) forKey:(id)@event_id]; error: Execution was interrupted, reason: internal ObjC exception breakpoint(-4).. The process has been returned to the state before expression evaluation. (lldb) po [retails objectForKey:(id)@event_id] nil (lldb)Thank you for the help. It is odd issue. I will debug more.
Topic: Programming Languages SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’18
Reply to AppKit always stalls on first Keyboard event?
I've been playing around with this more and noticed that I only see the hitch when I'm running my application with the LLDB debugger connected. If I run my app standalone, it seems to work without a hitch. Could LLDB be interfering with NSEvent dispatch somehow? Is LLDB doing its own processing on my key events before it reaches my app?
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to dlopen() reloads original instead of new dylib after changes
Hi Quinn, The image list is a good suggestion. I was just using that other day. I'll try that, and see what lldb reports. This is pure C++, no Swift or ObjC usage. For some of our users, the dylib hotloads and for others not. It's a mix of people mostly on 10.15.7 and XCode 12.2/3. I did the implementation mentioned above of renaming the lib, but it seems like we have a partial reload. So some code hotloads fine, and other code is still pointing to the old lib. Some code at init of the dylib where we crash (with renaming) is reporting the previous numbered dylib in the debugger. This may be an artifact of how Xcode loads the sources once at launch, but when I do hotload, my breakpoints show the new sources. By ODR, do you mean on-demand-resource? We did have those a while back, but I think they're disabled currently. it’s definitely not there after dlclose() on my system. But my system works. Others don't. So I'll get some more info on the machines that don't hotload. after dlopen() (lldb
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’21
Reply to import CryptoKit seems to not work in playground Xcode 13.2.1
Just for your happiness: adding my similar issue but with a different kit (StoreKit) and in lldb. (lldb) po product error: expression failed to parse: error: Couldn't lookup symbols: type metadata accessor for StoreKit.Product (lldb) po product.subscription error: expression failed to parse: error: Couldn't lookup symbols: StoreKit.Product.subscription.getter : Swift.Optional (lldb) po product.subscription?.promotionalOffers error: expression failed to parse: error: Couldn't lookup symbols: StoreKit.Product.subscription.getter : Swift.Optional
Replies
Boosts
Views
Activity
Jul ’22
editing Bool variable in lldb while debugging is not working properly
i wanted to edit an Bool value while debugging. For this i tried multiple approaches but none of them is workingFirst, I tried to keep the debug cursor on the variable and right click on the variable and tried to edit value. Although it shows the value had changed to true , the if block is not executedAnother ways i tried areexpression myvariable = truepo myvariable = truep myvariable = true.But in all these cases , if i print the variable in xcode lldb debugger, the value shows to be changed, but the execution flow is not changedvar myvariable = some expression if(variable){ // if block this part doesnt get executed after all these modifications. }I am using swift 4.2 and Xcode 10.3. Is there any other way to accomplish this?
Replies
1
Boosts
0
Views
1.3k
Activity
May ’20