Search results for

“LLDB crash”

30,527 results found

Post

Replies

Boosts

Views

Activity

Reply to Debug Failed in Xcode Simulator
Seeing the same issue — the breakpoints successfully stop the execution, but when I try to inspect something with po myVariable, the Xcode aborts app execution with the following in the console: Couldn't find the Objective-C runtime library in loaded images. Message from debugger: The LLDB RPC server has crashed. You may need to manually terminate your process. The crash log is located in ~/Library/Logs/DiagnosticReports and has a prefix 'lldb-rpc-server'. Please file a bug and attach the most recent crash log. I've started observing these issues after updating to macOS 15.4 on Friday, April 4th macOS 15.4 (24E248) Xcode 16.3 (16E140) and Xcode 16.2 (16C5032a)
Apr ’25
Access UIDynamicAnimator's debugEnabled in lldb?
Hi all:I watched the WWDC15 talked titled What's New in UIKit Dynamics and Visual Effects. Around the 16:00 minute mark the speaker refers to UIDynamicAnimators debugEnabled feature.He states:• Pause the debugger• Find a reference to your UIDynamicAnimator• Set debugEnabled to trueNow, this is likely something very trivial. However, my LLDB skills are poor. If anyone could enlighten me as to how I would go about doing this the right way, it would be very much appreciated.The steps I've currently tried are:• Run the app• Hit 'pause' in the debug area• Search in local variables segment to the left of the console (it's always blank)• I've tried referring to the animator by the variable name I gave it, 'animator', but the console returns an error stating the command is invalid• I've tried using 'expr animator.debugEnabled = true' - same issue.Do I need to edit my scheme to be in a specific mode? Really quite lost.Thanks in advance for any help.
1
0
798
Jul ’15
Reply to Command /Applications/Xcode-beta.app/Contents/Developer/usr/bin/ibtool failed with exit code 255
This could be caused by the presence of old runtimes as mentioned in the Release Notes:Xcode processes may quit unexpectedly if older iOS Simulator runtimes (Xcode 6.x) are present on diskTo see if that's the case (or to rule it out as a cause), delete all (old) runtimes from /Library/Developer/CoreSimulator/Profiles/Runtimes.
Jul ’15
Stripping protections to allow lldb debugging
Chrome has started crashing almost immediately after startup. I've reported the issue to the Chrome team here: https://issues.chromium.org/issues/385433270 I'm hoping to debug the issue a bit more myself. This page from the Chrome team https://chromium.googlesource.com/chromium/src/+/master/docs/mac/debugging.md#chrome-builds suggests using the follow to strip off the protections: codesign --force --sign - path/to/Google Chrome.app However, applying that seems to have no effect: % codesign --force --sign - /Applications/Google Chrome copy.app /Applications/Google Chrome copy.app: replacing existing signature /Applications/Google Chrome copy.app: resource fork, Finder information, or similar detritus not allowed % lldb /Applications/Google Chrome copy.app (lldb) target create /Applications/Google Chrome copy.app Current executable set to '/Applications/Google Chrome copy.app' (arm64). (lldb) run error: process exited with status -1 (attach failed (Not allowed to attach to pr
Topic: Code Signing SubTopic: General Tags:
1
0
650
Dec ’24
XCode does not hit the breakpoint but lldb can
Hi, I am working on a quite huge source code in which the breakpoint function is critical but unfortunately, XCode does not hit the breakpoint. To illustrate the problem clearly, I simplified the step to help you reproduce. XCode version: 12.5 OSX version: 11.3 Steps: 1, Pull the source of WebRTC, build it with is_debug=true and symbol_level=2 I ran the steps below: Note: This forum does not allow me to post the actual link, so please let me post how to reach there. A Viste webrtc.org/support/overview B Select Native development in the left pane. C Select iOS link on the page. D Go through the steps till and include Using Xcode 2, I open the XCode project and select AppRTCMobile , set the breakpoint at main.m, and hit the play button, XCode did build the source yet the breakpoint does not get hit. 3, I suspected that the problem might be the ninja build code inside the huge source, so I made an experiment using lldb to load the binary, it is actually working, here is the copy of messages: Load the ap
1
0
1.1k
May ’21
Debugger lldb-mi no longer present?
Hi, I am using Mohave 10.14.6 on a work computer with XCode 11.2 having recently been upgraded from High Sierra. Before the upgrade, I had been successfully using lldb-mi as part of my cross-platform C++ debugging sessions; this binary file had been present in the /Applications/Xcode.app/Contents/Developer/usr/bin folder before the upgrade. After the upgrade, lldb-mi is gone! How do I get it back? I see this is also happening to Catalina developers (not just Mohave). There are bugs debugging certain C++ elements in lldb thus the need for lldb-mi. How do I get lldb-mi back? A quick look through /usr/local/bin and other spots didn't locate it either unless I missed something? Thanks in advance for anyone's help.
1
0
5.3k
Nov ’19
LLDB fails to launch app from XCode 13
I'm getting the error: ** Warning: Error creating LLDB target at path '/Users/tantan/Library/Developer/Xcode/DerivedData/Videe-bpukzfmjaxewiuaiolulcqllukjg/Build/Products/Debug-iphonesimulator/[AppName].app'- using an empty LLDB target which can cause slow memory reads from remote devices.** Is there anyone who can explain to me what the reason is and how can fix it? Thanks,
1
0
2.4k
Dec ’21
How to debug simple C++ program with LLDB + arm64 M1?
Here's a simple C++ program: cpp #include stdio.h int main() { printf(Hello worldn); return 0; } On my M1 Macbook air, I can compile, run, and debug this program successfully: bash % clang++ hello.cpp -g % ./a.out Hello world % lldb a.out (lldb) target create a.out Current executable set to '/Users/sam/build/a.out' (x86_64). (lldb) run Process 55681 launched: '/Users/sam/build/a.out' (x86_64) Hello world Process 55681 exited with status = 0 (0x00000000) When adding -arch arm64, it builds and runs, as expected: bash % clang++ hello.cpp -g -arch arm64 % ./a.out Hello world But debugging seems to fail: bash % lldb a.out (lldb) target create a.out Current executable set to '/Users/sam/build/a.out' (arm64). (lldb) run error: process exited with status -1 (attach failed ((os/kern) invalid argument)) Is there anything special I need to do to get lldb to work with an executable compiled with -arch arm64? Macbook Air (M1, 2020) Big Sur 11.0.1 bash % clang+
1
0
4.3k
May ’21
Xcode: Message from debugger: The LLDB RPC server has exited unexpectedly.
Xcode version: 12.3 (12C33) Apple M1 Device, On running an app through Xcode lldb server is crashing. Process: lldb-rpc-server [35042] Path: /Applications/Xcode.app/Contents/SharedFrameworks/LLDBRPC.framework/Versions/A/Resources/lldb-rpc-server Identifier: lldb-rpc-server Version: 1205.0.11.1 Code Type: ARM-64 (Native) Parent Process: Xcode [91389] Responsible: Xcode [91389] User ID: 501 Date/Time: 2021-02-11 09:13:32.670 +0530 OS Version: macOS 11.0 (20A2411) Report Version: 12 Anonymous UUID: 0EECC9B3-B670-EE4C-4C01-5167159E1F56 Sleep/Wake UUID: D137B035-CA2E-4AD8-9CC0-8CB1247AC472 Time Awake Since Boot: 100000 seconds Time Since Wake: 140 seconds System Integrity Protection: enabled Crashed Thread: 6 lldb.process.internal-state(pid=38840) Exception Type: EXC_BAD_ACCESS (Code Signature Invalid) Exception Codes: 0x0000000000000032, 0x000000016b6e8000 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: Namespace CODESIGNING, Code 0x2
0
0
917
Feb ’21
Reply to UIKitSystem Quit Unexpectedly
From the https://download.developer.apple.com/Documentation/Beta_Release_Notes_Jun_4_2018/macOS_10.14_beta_Release_Notes.pdfNew Built-in Mac AppsNew IssuesOn Macs with a Force Touch trackpad, News and Stocks might quit unexpectedly when you Force click text to look up the definition of a word. (40070065)Sharing and editing in Voice Memos is unavailable in macOS 10.14 beta. (40537700)
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’18
Reply to High Sierra - keyboard issue
What I had to do was switch off slow keys and sticky keys in the accessibility preferences. It stopped my mac trying to save web archives everytime I pressed s, h or the space bar. Other weird things happen still. Like photoshop is barely useable at the moment - forever falling over and unexpectedly quitting.
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’17
Reply to Debug Failed in Xcode Simulator
Seeing the same issue — the breakpoints successfully stop the execution, but when I try to inspect something with po myVariable, the Xcode aborts app execution with the following in the console: Couldn't find the Objective-C runtime library in loaded images. Message from debugger: The LLDB RPC server has crashed. You may need to manually terminate your process. The crash log is located in ~/Library/Logs/DiagnosticReports and has a prefix 'lldb-rpc-server'. Please file a bug and attach the most recent crash log. I've started observing these issues after updating to macOS 15.4 on Friday, April 4th macOS 15.4 (24E248) Xcode 16.3 (16E140) and Xcode 16.2 (16C5032a)
Replies
Boosts
Views
Activity
Apr ’25
Access UIDynamicAnimator's debugEnabled in lldb?
Hi all:I watched the WWDC15 talked titled What's New in UIKit Dynamics and Visual Effects. Around the 16:00 minute mark the speaker refers to UIDynamicAnimators debugEnabled feature.He states:• Pause the debugger• Find a reference to your UIDynamicAnimator• Set debugEnabled to trueNow, this is likely something very trivial. However, my LLDB skills are poor. If anyone could enlighten me as to how I would go about doing this the right way, it would be very much appreciated.The steps I've currently tried are:• Run the app• Hit 'pause' in the debug area• Search in local variables segment to the left of the console (it's always blank)• I've tried referring to the animator by the variable name I gave it, 'animator', but the console returns an error stating the command is invalid• I've tried using 'expr animator.debugEnabled = true' - same issue.Do I need to edit my scheme to be in a specific mode? Really quite lost.Thanks in advance for any help.
Replies
1
Boosts
0
Views
798
Activity
Jul ’15
Reply to Command /Applications/Xcode-beta.app/Contents/Developer/usr/bin/ibtool failed with exit code 255
This could be caused by the presence of old runtimes as mentioned in the Release Notes:Xcode processes may quit unexpectedly if older iOS Simulator runtimes (Xcode 6.x) are present on diskTo see if that's the case (or to rule it out as a cause), delete all (old) runtimes from /Library/Developer/CoreSimulator/Profiles/Runtimes.
Replies
Boosts
Views
Activity
Jul ’15
Reply to xcode7 beta4 IB crash: Internal assertion failure
This could be caused by the presence of old runtimes as mentioned in the Release Notes:Xcode processes may quit unexpectedly if older iOS Simulator runtimes (Xcode 6.x) are present on diskTo see if that's the case (or to rule it out as a cause), delete all (old) runtimes from /Library/Developer/CoreSimulator/Profiles/Runtimes.
Replies
Boosts
Views
Activity
Jul ’15
Stripping protections to allow lldb debugging
Chrome has started crashing almost immediately after startup. I've reported the issue to the Chrome team here: https://issues.chromium.org/issues/385433270 I'm hoping to debug the issue a bit more myself. This page from the Chrome team https://chromium.googlesource.com/chromium/src/+/master/docs/mac/debugging.md#chrome-builds suggests using the follow to strip off the protections: codesign --force --sign - path/to/Google Chrome.app However, applying that seems to have no effect: % codesign --force --sign - /Applications/Google Chrome copy.app /Applications/Google Chrome copy.app: replacing existing signature /Applications/Google Chrome copy.app: resource fork, Finder information, or similar detritus not allowed % lldb /Applications/Google Chrome copy.app (lldb) target create /Applications/Google Chrome copy.app Current executable set to '/Applications/Google Chrome copy.app' (arm64). (lldb) run error: process exited with status -1 (attach failed (Not allowed to attach to pr
Topic: Code Signing SubTopic: General Tags:
Replies
1
Boosts
0
Views
650
Activity
Dec ’24
XCode does not hit the breakpoint but lldb can
Hi, I am working on a quite huge source code in which the breakpoint function is critical but unfortunately, XCode does not hit the breakpoint. To illustrate the problem clearly, I simplified the step to help you reproduce. XCode version: 12.5 OSX version: 11.3 Steps: 1, Pull the source of WebRTC, build it with is_debug=true and symbol_level=2 I ran the steps below: Note: This forum does not allow me to post the actual link, so please let me post how to reach there. A Viste webrtc.org/support/overview B Select Native development in the left pane. C Select iOS link on the page. D Go through the steps till and include Using Xcode 2, I open the XCode project and select AppRTCMobile , set the breakpoint at main.m, and hit the play button, XCode did build the source yet the breakpoint does not get hit. 3, I suspected that the problem might be the ninja build code inside the huge source, so I made an experiment using lldb to load the binary, it is actually working, here is the copy of messages: Load the ap
Replies
1
Boosts
0
Views
1.1k
Activity
May ’21
Debugger lldb-mi no longer present?
Hi, I am using Mohave 10.14.6 on a work computer with XCode 11.2 having recently been upgraded from High Sierra. Before the upgrade, I had been successfully using lldb-mi as part of my cross-platform C++ debugging sessions; this binary file had been present in the /Applications/Xcode.app/Contents/Developer/usr/bin folder before the upgrade. After the upgrade, lldb-mi is gone! How do I get it back? I see this is also happening to Catalina developers (not just Mohave). There are bugs debugging certain C++ elements in lldb thus the need for lldb-mi. How do I get lldb-mi back? A quick look through /usr/local/bin and other spots didn't locate it either unless I missed something? Thanks in advance for anyone's help.
Replies
1
Boosts
0
Views
5.3k
Activity
Nov ’19
LLDB fails to launch app from XCode 13
I'm getting the error: ** Warning: Error creating LLDB target at path '/Users/tantan/Library/Developer/Xcode/DerivedData/Videe-bpukzfmjaxewiuaiolulcqllukjg/Build/Products/Debug-iphonesimulator/[AppName].app'- using an empty LLDB target which can cause slow memory reads from remote devices.** Is there anyone who can explain to me what the reason is and how can fix it? Thanks,
Replies
1
Boosts
0
Views
2.4k
Activity
Dec ’21
How to debug simple C++ program with LLDB + arm64 M1?
Here's a simple C++ program: cpp #include stdio.h int main() { printf(Hello worldn); return 0; } On my M1 Macbook air, I can compile, run, and debug this program successfully: bash % clang++ hello.cpp -g % ./a.out Hello world % lldb a.out (lldb) target create a.out Current executable set to '/Users/sam/build/a.out' (x86_64). (lldb) run Process 55681 launched: '/Users/sam/build/a.out' (x86_64) Hello world Process 55681 exited with status = 0 (0x00000000) When adding -arch arm64, it builds and runs, as expected: bash % clang++ hello.cpp -g -arch arm64 % ./a.out Hello world But debugging seems to fail: bash % lldb a.out (lldb) target create a.out Current executable set to '/Users/sam/build/a.out' (arm64). (lldb) run error: process exited with status -1 (attach failed ((os/kern) invalid argument)) Is there anything special I need to do to get lldb to work with an executable compiled with -arch arm64? Macbook Air (M1, 2020) Big Sur 11.0.1 bash % clang+
Replies
1
Boosts
0
Views
4.3k
Activity
May ’21
Xcode: Message from debugger: The LLDB RPC server has exited unexpectedly.
Xcode version: 12.3 (12C33) Apple M1 Device, On running an app through Xcode lldb server is crashing. Process: lldb-rpc-server [35042] Path: /Applications/Xcode.app/Contents/SharedFrameworks/LLDBRPC.framework/Versions/A/Resources/lldb-rpc-server Identifier: lldb-rpc-server Version: 1205.0.11.1 Code Type: ARM-64 (Native) Parent Process: Xcode [91389] Responsible: Xcode [91389] User ID: 501 Date/Time: 2021-02-11 09:13:32.670 +0530 OS Version: macOS 11.0 (20A2411) Report Version: 12 Anonymous UUID: 0EECC9B3-B670-EE4C-4C01-5167159E1F56 Sleep/Wake UUID: D137B035-CA2E-4AD8-9CC0-8CB1247AC472 Time Awake Since Boot: 100000 seconds Time Since Wake: 140 seconds System Integrity Protection: enabled Crashed Thread: 6 lldb.process.internal-state(pid=38840) Exception Type: EXC_BAD_ACCESS (Code Signature Invalid) Exception Codes: 0x0000000000000032, 0x000000016b6e8000 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: Namespace CODESIGNING, Code 0x2
Replies
0
Boosts
0
Views
917
Activity
Feb ’21
Reply to UIKitSystem Quit Unexpectedly
From the https://download.developer.apple.com/Documentation/Beta_Release_Notes_Jun_4_2018/macOS_10.14_beta_Release_Notes.pdfNew Built-in Mac AppsNew IssuesOn Macs with a Force Touch trackpad, News and Stocks might quit unexpectedly when you Force click text to look up the definition of a word. (40070065)Sharing and editing in Voice Memos is unavailable in macOS 10.14 beta. (40537700)
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’18
Reply to Xcode7 SKS files keep crashing when adding sprites or anything!!!
This could be caused by the presence of old runtimes as mentioned in the Release Notes:Xcode processes may quit unexpectedly if older iOS Simulator runtimes (Xcode 6.x) are present on diskTo see if that's the case (or to rule it out as a cause), delete all (old) runtimes from /Library/Developer/CoreSimulator/Profiles/Runtimes.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’15
Reply to High Sierra - keyboard issue
What I had to do was switch off slow keys and sticky keys in the accessibility preferences. It stopped my mac trying to save web archives everytime I pressed s, h or the space bar. Other weird things happen still. Like photoshop is barely useable at the moment - forever falling over and unexpectedly quitting.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’17
Variable name auto-complete gone from lldb?
Ever since updating to Xcode 16.3, auto-completing variable names in lldb does not work. Is this a known bug? Is there a workaround to get it do auto-complete again?
Replies
6
Boosts
0
Views
388
Activity
Apr ’25
Reply to Under stress tests, our Network Extension crashed due to QOS?
It crashed under lldb so I was able to backtrace -- it was my Swiftian @synchronized replacement, which (in some places) was using a Swift dictionary. I changed all the places to use an NSLock instead, and have been running it since, so far so good.
Replies
Boosts
Views
Activity
Feb ’24