Search results for

LLDB crash

30,301 results found

Post

Replies

Boosts

Views

Activity

Xcode debug lldb remote
I want to do source level debugging of an external environment using Xcode's graphical debugger. I have an External Build System project with local source files that builds libraries/executables (not macOS or iOS) and creates their dSYM symbol files (also stored locally). I have a script that I can run from Xcode that starts the library/executables (in an external environment), and gets their slide addresses so their symbols can be loaded into lldb. The script also returns a gdb-remote url that I can use with lldb to begin debugging. Is there a way for Xcode to use the lldb info gathered by my script to start its graphical debugger? If this feature doesn't exist, then I see two simple ways that this feature could be implemented: a) In the Run Action, there's a Run Script action in the Pre-actions to start the remote environment and gather the debug info to create a lldb script that has the gdb-remote command, and commands to add the target modules, and to load the target mo
1
0
2k
Jun ’21
Reply to Strange problems with breakpoints appear after migration (MacBook x86_64 Sequoia to Mac M3 arm64 Sequoia)
It would help if you put your preformatted text into a code block. See Quinn’s Top Ten DevForums Tips for advice on how to do that. I’m very confused by your post, so lemme start out with some thing simple. You wrote: [quote='768774021, boitet2002, /thread/768774, /profile/boitet2002'] without lldb … stop reason = EXC_BREAKPOINT [/quote] I don’t understand this. The stop reason message clearly indicates that you’re running your program under LLDB. So how can that be “without lldb”? It looks like you’re building a standalone executable rather than an app. If so, what happens if you run the program from Terminal directly? I’m presuming it’ll crash there too. If so, that should generate a crash report. Please post the crash report here. See Posting a Crash Report for advice on how to do that. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Nov ’24
iOS Simulator keeps quitting unexpectedly after system updates - cannot launch Simulator.app
Until two days ago, Xcode and simulators were working perfectly fine. I turned the computer off and some software updates got installed, including macOS Catalina). I am now unable to launch Simulator. It's for any device, it simply doesn't open the application. All I see is simulator quit uenxpectedlyI've also noticed that Simulator and processors keep themselves alive no matter how many times I quit them or kill them from command line:com.apple.CoreSimulator.CoreSimulatorServiceSimulatorI found similar posts, but they are at least three years old and got a /DeviceTypes folder withing /Developer which I don't.I have tried different approaches, including:Deleting DerivedData folderDeleting /Library/Developer/Xcode folderUpdating Xcode to 11.1Usinng Xcode 10.3, where the command line tools are actually incompatible with Catalina OS.Reinstalling Xcode, restarting my machine at every step of the deletion and reinstallationDeleting CoreSimulator folderThe following commands in terminal: sudo killall -9 com.apple.C
2
0
4.8k
Oct ’19
lldb error
This is what I am getting every time I close the app. Please suggest alternatives for Xcode 13 dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/sarthaks/Library/Developer/Xcode/DerivedData/Dicee-iOS13-bwfmsdtnysirovgrfszwvnzssntm/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRo
0
0
711
Jan ’22
lldb KDK vs python
OK I somehow managed to break lldb loading KDKs, and my best guess is it picks the wrong python framework.lldb /Library/Developer/KDKs/KDK_10.14_18A336e.kdk/System/Library/Kernels/kernel (lldb) target create /Library/Developer/KDKs/KDK_10.14_18A336e.kdk/System/Library/Kernels/kernel unable to load scripting data for module kernel - error reported was Missing parentheses in call to 'print'. Did you mean print(Loading kernel debugging from %s % __file__)? (kernel.py, line 69) File temp.py, line 1, in# which lldb/usr/bin/lldb# which python/usr/bin/pythonClearing PATH and PYTHONPATH, or setting thing appears to make no changes.Any clues?
5
0
2.7k
May ’20
Reply to Outgoing SSL connections fail on macOS 15, work fine on earlier versions
Thanks for that. On disabling the signal handler I was able to get a crash report. However, the contents of that crash report are quite weird, and that leads me to another question about your runtime. In my crash report I see this: Thread 1: 0 libsystem_kernel.dylib … mach_msg2_trap + 8 1 libsystem_kernel.dylib … mach_msg2_internal + 80 2 libsystem_kernel.dylib … mach_msg_overwrite + 480 3 libsystem_kernel.dylib … mach_msg + 24 4 libacli11029t6.dylib … lisp_exception_watcher + 348 5 libsystem_pthread.dylib … _pthread_start + 136 6 libsystem_pthread.dylib … thread_start + 8 which suggests you have a Mach exception handler that’s active even with your signal handler disabled. Is it possible to disable that? Implementing a Mach exception handler correctly is really hard, so I’m hoping that I can disable this in order to increase my trust level of the crash report. Also, I suspect that disabling this exception handler will help with the LLDB issue [1]. Share and Enjoy
Nov ’24
lldb addkext changes?
I've been using lldb in quite a set way, generally just ^R search backwards and paste in the load address;However, I find it no longer works with xcode8.(lldb) addkext -F module/zfs/zfs.kext/Contents/MacOS/zfs 0xffffff7f9051b000 target modules add module/zfs/zfs.kext/Contents/MacOS/zfs target modules load --file module/zfs/zfs.kext/Contents/MacOS/zfs --slide 0xffffff7f9051b000 ERROR:error: no object file for module 'module/zfs/zfs.kext/Contents/MacOS/zfs' error: either the --file <module> or the --uuid <uuid> option must be specified.[1]+ Stopped lldb /Library/Developer/KDKs/KDK_10.11.6_15G1004.kdk/System/Library/Kernels/kernel # ls -l module/zfs/zfs.kext/Contents/MacOS/zfs -rwxr-xr-x 1 lundman admin 2858792 Sep 21 16:15 module/zfs/zfs.kext/Contents/MacOS/zfsSo I guess the pwd has now changed or something, odd, but I can live with that. I lets try supplying the full path instead;(lldb) addkext -F /Users/lundman/src/zfs/osx.zfs/x/zfs/module/zfs/zfs.kext/Contents/
1
0
894
Sep ’16
Reply to Settings crashes iOS 12 Dev beta 6
I have both installed and it's still happening...How long does it take to go away, presuming you have both apps?Edit: Nevermind, the exact thing I was trying to do is brokenNew Issues • Settings might unexpectedly quit when attempting to view or select a voice in Speech settings. (42859905)
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’18
LLDB and environment variables in Xcode
Hey! I am writing type formatting scripts in Python for lldb, as described in https://lldb.llvm.org/use/variable.html#python-scripting. I'm trying to pass an environment variable to lldb from Xcode to determine the path to the scripts in the project root, so the project is not bound to some predetermined path. I am having trouble doing this in Xcode. What I have tried: lldbinit file Create a .lldbinit file in $(SRCROOT) with the following content: platform shell echo $SRCROOT. Set the path to the .lldbinit file in Edit Scheme... > Info > LLDB Init File ($(SRCROOT)/.lldbinit). Set the SRCROOT environment variable to $(SRCROOT) in Edit Scheme... > Arguments > Environment Variables. entry-point breakpoint Add a breakpoint to the entry-point of the application. Set the Automatically continue after evaluating actions option. Add the action platform shell $(SRCROOT) or platform shell $SRCROOT. Set the SRCROOT environment variable to $(SRCROOT) in Edit Scheme... > Arguments
3
0
276
Nov ’25
Reply to MacOS Big Sur Lagging
I've never ever had so many issues with my Mac. Software developers blame Apple! I've wearied them troubleshooting issues, but it is clearly Apple. Apple's own apps lag and crash! Anything big lags and crashes! All my professional software, DEVONThink 3, Tinderbox 8, Curio, Affinity Photo, or DeVinci Resolve crash in Big Sur. I start up the software and it's a crapshoot as to when I get the app has Quit unexpectedly and it's affecting my productivity at work. Sadly this is on an my new M1 so I have no idea of knowing if it's this is Apple's silicon or Big Sur??? 🤨. I really do not have the time to troubleshoot all these issues, so I'm just left feeling very soured with my M1 purchase. 😠 MacBook Pro (13-inch, M1, 2020) MacOS Big Sur: 11.2.3 (20D91)
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’21
Is there any way to make lldb behave?
I've had long-standing problems getting lldb to see local variables in many situations. For example, in this CBPeripheral delegate method,func peripheral(peripheral: CBPeripheral, didDiscoverCharacteristicsForService service: CBService, error: NSError?) { if case let .DiscoverCharacteristics(periph) = btState { if periph == peripheral { btState = .Connected(service) } } connectPeer() }the debugger doesn't see self or self.btState or even peripheral or periph. It doesn't matter if you try to access them through the Xcode UI or through the lldb command line. The specific error is use of unresolved identifier 'xxx'.Is there any way around this situation? It's getting pretty frustrating. (This is Xcode 7 beta 3, btw.)
2
0
449
Jul ’15
Reply to Can't Create Simulator
It's possible that your runtimes are in a different directory, but many have resolved your issue by removing them. In the latest 10.11 Release Notes it is explained that:Xcode processes may quit unexpectedly if older iOS Simulator runtimes (Xcode 6.x) are present on disk.
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’15