Search results for

LLDB crash

29,555 results found

Post

Replies

Boosts

Views

Activity

lldb-dap closes connection
If I build an x64 binary on my M4 Mini, when I try to debug it using Visual Studio remote debugging the connection is closed, which means I cannot debug my code in x64 mode. I need to be able to do this as I have architecture specific code. I have Rosetta installed. FWIW I have the same issue with lldb-mi :( David
3
0
86
Jul ’25
bitset lldb and debugger view issues
Env: Monterey 12.6.5, Xcode 14.0.1 Recent update for xcode. Straight forward declaration of bitset, but a large one. std::bitset<1048567> bs ; Running code in xcode, suddenly started getting lldb notice Message from debugger: The LLDB RPC server has exited unexpectedly. You may need to manually terminate your process. Please file a bug if you have reproducible steps. upon entering the function itself, not when executing the bitset declaration line. Moved the declaration to main, and still lldb notice. Then noticed bitset size in debugger dialog is 256 (see snippet image), although the bitset's real size is as declared (debugger shows real size in parentheses, but only show first 256 bits). Checked vector, it is show and represents in full. Duplicated on Ventura 13.3.1, Xcode 14.2. Suspect the LLDB issue was from changing bitset size to pow(2,64) before, which compiles, but generates thread EXC_BADACCESS ... error/warning. Two issues: first, why only display first 256
0
0
1.1k
May ’23
LLDB always exits abnormally on local code
I am building simple command-line programs in C. When I run LLDB on the command line on any such executable , even though I set a breakpoint in main, LLDB always runs to termination and reports an error. Below is an example: ~ % clang -Wall -g prog.c -o prog aviram@csaamdS278stma ~ % lldb prog (lldb) target create prog Current executable set to '/Users/aviram/prog' (x86_64). (lldb) breakpoint set --name main Breakpoint 1: where = progmain + 15 at prog.c:73:21, address = 0x0000000100003ebf (lldb) run Process 99926 launched: '/Users/aviram/prog' (x86_64) Process 99926 exited with status = -1 (0xffffffff) lost connection (lldb) ` Note that it says lost connection even though I am _ remote debugging. This happens with every executable I build._ Details: 2019 MacBook Pro (x86_64, Sonoma); Apple Clang 12.0.0 (downloaded with Xcode 15.0.1). Why is this happening and what can I do to debug my program (for real) using LLDB from the command line? T
3
0
1.1k
Dec ’23
Reply to Internal Xcode Server Error
OK, so I am at least back to the XCTRunner application quit dialog showing in the integration snapshots, and the tests failing because it is there. But at least I no longer have the internal Xcode Server error with no clue as to what the internal error was.If anyone has an idea why I am getting the XCTRunner has unexpectedly quit dialog that would be appreciated. I have seen it before and it was because test pre action scripts had commands in them that were failing and returning a non zero result code. This time doesn't appear to be the case.
Jan ’16
A bug in Xcode lldb debugger for swift
In some particular situation, Xcode debugger or lldb cli cannot correctly extract some value that returned by a async throw function and handled by guard let try?. Here is the minimum example: import Dispatch func test() async throws -> [Int] { return [369] } let group = DispatchGroup() group.enter() let task = Task { guard let res = try? await test() else { return } print(res) group.leave() } group.wait() If added a break point at print(res), the debugger cannot show the value of res. Due to forum limitation, I cannot paste a screenshot here... if use p res or po res at lldb cli, it shows: (lldb) p res error: expression failed to parse: error: :3:1: error: cannot find 'res' in scope res ^~~ (lldb) po res error: expression failed to parse: error: :3:1: error: cannot find 'res' in scope res ^~~ If test() returns a dict, or a costom struct, the issue retains. But if returned a trivial value like Int, it acts normally. Also, if remove the guard statement, make res a optiona
5
0
4.7k
Jul ’22
Confused about LLDB's "p" and "expr" commands
As I was watching WWDC19 Session: LLDB: beyond po I got confused about p command. In the session there was a following example to show how p command works: // Struct for demonstration purposes struct Trip { var name: String var destinations: [String] let cruise = Trip ( name: Mediterranean Cruise destinations: [Sorrento, Capri, Taormina]) Using p to get info about cruise instance: (lldb) p cruise (Travel.Trip) $R0 = { name = Mediterranean Cruise destinations = 3 values { [0] = Sorrento [1] = Capri [2] = Taormina } } I was following along and wrote the same code. But the output from LLDB turned out to be different: (lldb) p cruise (LLDB_Apple_Session_FollowAlong.Trip) { name = Mediterranean Cruise destinations = 3 values { [0] = Sorrento [1] = Capri [2] = Taormina } } As you can see LLDB didn't create a global variable R0 which I could later use in my debugging session and that seemed strange to me. Then the presenter said the following: p is just an alias for the
2
0
1.2k
Dec ’23
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
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
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
1k
May ’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