Search results for

LLDB crash

29,557 results found

Post

Replies

Boosts

Views

Activity

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 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
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 Can not open a bundle signed for mac app distribution
I tested my app via TestFlight, and it does not open, so I'm not very optimistic Just to be clear, the TestFlight release of your app is not launching? If so, that’s something I can help you debug. Moreover, it’s important to debug this because it’s very likely that your final App Store release will behave exactly like your TestFlight release (if it doesn’t, that’s a bug on Apple’s part). When you try to launch your TestFlight release from the Finder, what happens? Does it start at all? Does it display a “you do not have permission to open” alert? Or a “quit unexpectedly” alert? Or does it hang on launch, bouncing forever in the Dock? Or start launching but then simple quit with no alerts? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Mar ’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 lldb: argument starting with hash disappears.
I generally run a command with arguments using r: % lldb Test773781 (lldb) target create Test773781 ; (lldb) r arg1 #arg2 arg3 ; 0 …/Test773781 1 arg1 The interesting thing here is that LLDB has the right arguments: (lldb) settings show target.run-args target.run-args (arguments) = [0]: arg1 [1]: #arg2 [2]: arg3 It’s just not applying them at launch. Notably, the r command is an alias for process launch: (lldb) help r Launch the executable in the debugger. Syntax: r [] r [] 'r' is an abbreviation for 'process launch -X true --' Note that -X option. Its long name is --shell-expand-args. If you set it to false, it resolves this issue: (lldb) process launch -X false … 0 …/Test773781 1 arg1 2 #arg2 3 arg3 So it seems that LLDB’s shell-like argument expansion is interpreting the # as a comment. Fun times! Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Feb ’25
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 error: Error reading commands from file lldbinit - file not found.
LLDB is the debugger underlying the Xcode debugger. The .lldbinit file is read by the debugger when it starts up. You can use it to customise the debugger. For example: % cat .lldbinit command alias btall thread backtrace all % lldb (lldb) help btall … 'btall' is an abbreviation for 'thread backtrace all' To learn more about how this works, see the lldb man page. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Sep ’24
Reply to Debug Failed in Xcode Simulator
Thanks for the post, it seems like you are running a beta version of macOS. Can you please post the crash report from lldb? With that file, may I ask you to submit a bug? Once you open the bug report, please post the FB number here for my reference. If you have any questions about filing a bug report, take a look at Bug Reporting: How and Why? Albert Pascual
  Worldwide Developer Relations.
Feb ’25
Reply to dyld: Library not loaded: @rpath/libswiftCore.dylib
I am experiencing this exact issue too, and have tried almost all the suggested in the OP post to no avail.I have tried resintalling the WWDR cert and that does not help. I have also tried installing all the intermediate certs from Apple at http://www.apple.com/certificateauthority/Keychain Access evaluation of my developer cert for code signing passes.Performing the step- Set Embedded Content Contains Swift to YES (http://stackoverflow.com/questions/24002836/dyld-library-not-loaded-rpath-libswift-stdlib-core-dylib) does change the nature of the crash. After doing that, the crash output is just a non-informative (lldb) -- but typing bt after it yields:(lldb) bt* thread #1, stop reason = signal SIGABRT * frame #0: 0x0000000104e66f1c dyld`__abort_with_payload + 8 frame #1: 0x0000000104e666f4 dyld`abort_with_payload_wrapper_internal + 100 frame #2: 0x0000000104e66720 dyld`abort_with_payload + 12 frame #3: 0x0000000104e3c498 dyld`dyld::halt(char const*) + 312 frame #4: 0x000000
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’17
System Information - Manage Storage Crash
Hi.Is anyone else experiencing crashes when attempting to manage storage through About This Mac > Storage > Manage?Every time I go into it the app attempts to collect/analyze data but never completes the Documents and System and ultimately crashes and I receive the standard, System Information Quit Unexpectedly message. Any feedback is appreciated.Thanks.
2
0
1.3k
Jul ’16
help lldb breakpoints not hit
I have a 2 machine setup with the target machine configred as followsnvram boot-args set to debug=0x814e kdp_match_name=firewire fwkdp=0x8000csrutil disabledThe debug versions of the kexts are transferred to the target machine, loaded and kextcache rebuiltsudo kextcache -system-prelinked-kernelOn the host machinefwkdp is runningFrom fwkpfv, the debug versions of the kexts are loaded as the added print statements are shown in the logsIn another terminal windowlldb /Library/Developer/KDKs/<KDK Version>/System/Library/Kernels/kernelkdp-remote localhost, drop the target machine into the debugger and connection is made.target modules add <kext_contents>target modules load --file <name> __TEXT <known_address_the_kext_uses>br set --name <method_name_to_break>br list shows that the breakpoint is resolvedcThe kext loads, executes and the breakpoint is not hit. Any ideas?ThanksDavid
1
0
974
Dec ’15
Help needed with lldb - attach to Mac after a kernel panic
I am trying to debug a kernel panic in our kext. I can attach to the target Mac over ethernet if I: cause an NMI using add an IOPanic call to my kext and cause it to be executed use Dtrace to invoke a panic However if I reproduce the kernel panic which I am investigating, the Mac just restarts. How can I make the Mac wait for me to attach with lldb rather than restarting? My target configuration is: Mac is 2021 M1 Pro 14 MacBook Pro macOS 14.2 (23C64) Network: Apple Thunderbolt 3 <-> Thunderbolt 3 adapter + Apple Thunderbolt 2 to ethernet adapters Boot-args = debug=0x44 wdt=-1 kdp_match_name=en8 (I have also tried debug=0x104C0C)
2
0
971
Dec ’23