Search results for

“LLDB crash”

30,531 results found

Post

Replies

Boosts

Views

Activity

Reply to Build 18A326h downloads but won't install
On my 2014 Mac Mini, the download and installation process appeared to work flawlessly to completion, although it took more than an hour (perhaps because the Mini is slow). But when it was done, About This Mac still says it's build 18A326g, not 18A326h.I shut the Mini down and then booted it up again. Still 18A326g. But when I ran Software Update in System Preferences again, it claimed that the Mini is up to date and won't let me update again. Very confusing.Then a minute later UI???Kit quit unexpectedly. I clicked the button to reopen it, and all appears to be ok now except it's still 18A326g.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’18
Reply to Error when debugging: Cannot create Swift scratch context
Could you capture a types log by putting log enable lldb types -f /tmp/types.log into ~/.lldbinit-Xcode an relaunching Xcode and reproducing the error? If it doesn't show up in the LLDB console the types usually contains the underlying error. You can either post it here, or look through it yourself and read the blocks around LogConfiguration closely. They show how the Swift and Clang compilers that are embedded into LLDB were initialized for your app. Usually they contain a hint why things go wrong.
Jun ’20
Viber Keeps crashing; unable to open
Hi Experts, I have been trying to use Viber Desktop (latest version) on my MacBook(macOS Cataline 10.15.6) but since last few weeks, it keeps on crashing and quits unexpectedly. Have tried updating Viber and also clean uninstall/install, but no luck. Below are crash logs available(attached as txt file). Viber Crash Logs - https://developer.apple.com/forums/content/attachment/b73a25f9-2dcf-49c3-a8ae-5e902082d3e7 Can anyone pls help? Thank you.
Topic: Code Signing SubTopic: General Tags:
0
0
1k
Aug ’20
Reply to Crash starting app after upgrade to Monterey
Hello, I cannot debug more, because I would need to compile a debuggable version of libmalloc. My findings so far: I enter in https://opensource.apple.com/source/libmalloc/libmalloc-317.140.5/src/malloc.c.auto.html free Then, it enters in find_registered_zone When inside find_registered_zone, I lose myself. I know that tcmalloc library is called because I can see that the malloc library asks the size (which is translated in the call to tcmalloc::mz_size). Then, tcmalloc (here: https://github.com/gperftools/gperftools/blob/master/src/libc_override_osx.h#L108) correctly calculates the size and returns 128 When back to the malloc library, I see that more code on find_registered_zone is executed, but at some point, instead of the tcmalloc zone, the default zone is returned and then free_definite_size is called on that. But... default_zone is the tc_malloc one, which doesn't have free_definite_size, and crash! ... (lldb) thread step-inst Process 95351 stopped * thread #1, queue = 'com.apple.main-
Nov ’21
Reply to Weird crashes when accessing Swift Array
[quote='796681022, Nickkk, /thread/760029?answerId=796681022#796681022, /profile/Nickkk'] were you thinking of a particular command that creates disassemblies with symbol names [/quote] I generally do this stuff in LLDB. The trick there is to make sure you’re debugging the right build. You’re on the Mac, and it’s actually pretty straightforward here: Just run LLDB from the command line and target your built binary: % lldb /path/to/your.app … (lldb) r … Alternatively, run the app from Finder and then, in Xcode, choose Debug > Attach to Process. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’24
Possible Xcode Bug?: Thread Frame Views do not update, when stepped via LLDB script
Hello,I am trying to add an LLDB command via a Python script, one which adds a custom 'step' operation. I've been able to add a new command, execute it from within Xcode's Console view, and get it to step through the current frame (in the current thread), however, Xcode's user interface does not update to reflect the new location of the program counter. Neither the stack trace in the Debug Navigator, nor the highlighted line in the code editor (that indicates the current line), will update if and when I run this custom command. lldb, when asked via direct commands (issued through Xcode's Console view), will report that the program counter has updated and that the stack trace is different, however Xcode's UI will not update, at least until one of the stock, lldb, 'step*' command(s) are run.I am using Xcode Version 8.3.2 (8E2002). This issue has occurred for me when debugging Mac apps, and iOS apps.Here is simplified, and tested code for the custom lldb command, which I am wo
0
0
398
May ’17
Reply to Map Pin title problem
Hi there,After the information you gave me I checked things out a bit further.It appears to be when the Map is loaded.I am getting differing error messages. Please see below.2015-07-06 18:00:00.078 USAShoppingMalls[4481:60b] -[__NSArrayM length]: unrecognized selector sent to instance 0x200a2910(lldb)2015-07-06 18:01:57.798 USAShoppingMalls[4490:60b] -[VGLResourceImpl length]: unrecognized selector sent to instance 0x1d1a9e90(lldb)Everything loads into the array correctly but it crashes when the mapview is displayed.I corrected a code error of 2 off ;; after setting the region.span.longitudeDelta = 7.0f;;.I also get different results depending on whether I load the Mapview and then the Annotations or the Other way around.I am not fully aware of what should be loaded first or if it should be loaded in ViewDidLoad or [super viewDidLoad];Thanks Ossie
Jul ’15
fail to install lldb on Big Sur (11.0) from command line
Hi, I'm using the following command in order to install lldb without Xcode > xcode-select --install However, the window that pops up with the progress bar gets halted on task Finding Software Those are the relevant errors I could trace from log stream: 2020-07-29 14:17:28.792892+0300 0x2bfe Default 0x68a7 163 0 runningboardd: (RunningBoard) [com.apple.runningboard:process] [daemon<com.apple.dt.CommandLineTools.installondemand(502)>:843] Error 45 setting darwin role to UserInteractive: Operation not supported, falling back to setting priority 2020-07-29 14:17:28.931499+0300 0x2bff Default 0x68af 163 0 runningboardd: (RunningBoard) [com.apple.runningboard:process] [daemon<com.apple.dt.CommandLineTools.installondemand(502)>:843] Error 45 setting darwin role to UserInteractiveFocal: Operation not supported, falling back to setting priority Any idea how to tackle this issue?
1
0
586
Jul ’20
Reply to Swift Terminal Window in Xcode Beta
There are a couple of things that you could be referring to:If you have a swift app, cmd-shift-Y is the default keybinding to open the Console where the output of print() will go.If you pause in the debugger, LLDB understand swift code. From there, you can type repl to get an interactive swift session:(lldb) repl1>Just typing xcrun swift from Terminal.app will give you the same thing. It will still be lldb, but it will jump directly into repl mode for you to play around with Swift.Is that what you had in mind?
Jun ’15
Reply to How to and When to uninstall a privileged helper
Thank you for the suggestions. And here is the Bug number 29038737.This approach is unlikely to yield a reliable solution. There are just too many ways that things can go wrong. This is also what I am quite concerned about the idea. The removable disk example is a very good one that can be considered as one of the cases that the helper is unexpectedly removed. For these cases, I can have the application check and re-install (re-bless) the helper with prompt the auth at the startup though this bothers the user for the auth again. Are there any other side effects about this idea? The most important thing I was worried about is that whether the solution could have any undefined behavior since it is not a standard approach.
Topic: Privacy & Security SubTopic: General Tags:
Nov ’16
Reply to Xcode Debugger Extensions
add a new button in the Debugger pane and be able to modify program stateThe problem here is the GUI. LLDB has a sophisticated extension architecture, supporting aliases for simple stuff and Python scripting for accomplishing complex tasks. These work in LLDB from both the command line (via the lldb command) and within Xcode. However, Xcode does not have any mechanism for loading extensions that tweak its GUI. One possibility here is to host that GUI outside of Xcode, in a floating palette say. The tricky part here is managing the IPC between the GUI and the LLDB extension, although that’s probably doable.Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Apr ’19
Why is CFNetworking crashing on iOS11
We have an app that is working just fine in iOS 10, but crashes in iOS 11.I am currently trying to trace the problem, but the first crash is here; CFDataRef bodyData = CFHTTPMessageCopyBody( message ); CFHTTPMessageSetBody( newMessage, bodyData ); CFRelease( bodyData ); bodyData = NULL; It seems that I get a nil value from the CFHTTPMessageCopyBody in iOS 11, but not in iOS 10;From debugger;iOS 11(lldb) po message<CFHTTPMessageRef 0x1c417fbc0(0x1c417fbd0)> { GET request, url /873769144/sec/ENCRYPTED_Television*******_240516_1.mp4 -- http:/(lldb) po bodyData<nil>(lldb) po newMessage<CFHTTPMessageRef 0x1c4360840(0x1c4360850)> { GET request, url http:/****iOS 10(lldb) po message<CFHTTPMessageRef 0x170173a40(0x170173a50)> { GET request, url /771278348/sec/ENCRYPTED_Television_**********_240516_1.mp4 -- http:/(lldb) po bodyData<>(lldb) po newMessage<CFHTTPMessageRef 0x170173b00(0x170173b10)> { GET request, u
4
0
3.1k
Oct ’17
Reply to Can LLDB be used on Sandboxed Apps
Should this work? Yes. And, indeed, it does work on my machine. I created a test project from the macOS > App template, which defaults to being sandboxed, and I was able to debug it with the command-line LLDB: % codesign -d --entitlements - Test747110.app … [Dict] [Key] com.apple.security.app-sandbox [Value] [Bool] true [Key] com.apple.security.files.user-selected.read-only [Value] [Bool] true [Key] com.apple.security.get-task-allow [Value] [Bool] true % lldb Test747110.app (lldb) target create Test747110.app Current executable set to '…/Test747110.app' (arm64). (lldb) r Process 70203 launched: '…/Test747110.app/Contents/MacOS/Test747110' ``` This is Xcode 15.2 on macOS 14.2.1. Are you sure that sandboxing is the only constraint here? If, for example, your sandboxed app was downloaded from the Mac App Store, you can’t debug that with LLDB. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Programming Languages SubTopic: General Tags:
Feb ’24
Reply to Build 18A326h downloads but won't install
On my 2014 Mac Mini, the download and installation process appeared to work flawlessly to completion, although it took more than an hour (perhaps because the Mini is slow). But when it was done, About This Mac still says it's build 18A326g, not 18A326h.I shut the Mini down and then booted it up again. Still 18A326g. But when I ran Software Update in System Preferences again, it claimed that the Mini is up to date and won't let me update again. Very confusing.Then a minute later UI???Kit quit unexpectedly. I clicked the button to reopen it, and all appears to be ok now except it's still 18A326g.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’18
Reply to Error when debugging: Cannot create Swift scratch context
Could you capture a types log by putting log enable lldb types -f /tmp/types.log into ~/.lldbinit-Xcode an relaunching Xcode and reproducing the error? If it doesn't show up in the LLDB console the types usually contains the underlying error. You can either post it here, or look through it yourself and read the blocks around LogConfiguration closely. They show how the Swift and Clang compilers that are embedded into LLDB were initialized for your app. Usually they contain a hint why things go wrong.
Replies
Boosts
Views
Activity
Jun ’20
Reply to App Fix: app won't work until I reset my iPad
This is all I got:(lldb)
Replies
Boosts
Views
Activity
Oct ’15
Viber Keeps crashing; unable to open
Hi Experts, I have been trying to use Viber Desktop (latest version) on my MacBook(macOS Cataline 10.15.6) but since last few weeks, it keeps on crashing and quits unexpectedly. Have tried updating Viber and also clean uninstall/install, but no luck. Below are crash logs available(attached as txt file). Viber Crash Logs - https://developer.apple.com/forums/content/attachment/b73a25f9-2dcf-49c3-a8ae-5e902082d3e7 Can anyone pls help? Thank you.
Topic: Code Signing SubTopic: General Tags:
Replies
0
Boosts
0
Views
1k
Activity
Aug ’20
Reply to Crash starting app after upgrade to Monterey
Hello, I cannot debug more, because I would need to compile a debuggable version of libmalloc. My findings so far: I enter in https://opensource.apple.com/source/libmalloc/libmalloc-317.140.5/src/malloc.c.auto.html free Then, it enters in find_registered_zone When inside find_registered_zone, I lose myself. I know that tcmalloc library is called because I can see that the malloc library asks the size (which is translated in the call to tcmalloc::mz_size). Then, tcmalloc (here: https://github.com/gperftools/gperftools/blob/master/src/libc_override_osx.h#L108) correctly calculates the size and returns 128 When back to the malloc library, I see that more code on find_registered_zone is executed, but at some point, instead of the tcmalloc zone, the default zone is returned and then free_definite_size is called on that. But... default_zone is the tc_malloc one, which doesn't have free_definite_size, and crash! ... (lldb) thread step-inst Process 95351 stopped * thread #1, queue = 'com.apple.main-
Replies
Boosts
Views
Activity
Nov ’21
Reply to Weird crashes when accessing Swift Array
[quote='796681022, Nickkk, /thread/760029?answerId=796681022#796681022, /profile/Nickkk'] were you thinking of a particular command that creates disassemblies with symbol names [/quote] I generally do this stuff in LLDB. The trick there is to make sure you’re debugging the right build. You’re on the Mac, and it’s actually pretty straightforward here: Just run LLDB from the command line and target your built binary: % lldb /path/to/your.app … (lldb) r … Alternatively, run the app from Finder and then, in Xcode, choose Debug > Attach to Process. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’24
Possible Xcode Bug?: Thread Frame Views do not update, when stepped via LLDB script
Hello,I am trying to add an LLDB command via a Python script, one which adds a custom 'step' operation. I've been able to add a new command, execute it from within Xcode's Console view, and get it to step through the current frame (in the current thread), however, Xcode's user interface does not update to reflect the new location of the program counter. Neither the stack trace in the Debug Navigator, nor the highlighted line in the code editor (that indicates the current line), will update if and when I run this custom command. lldb, when asked via direct commands (issued through Xcode's Console view), will report that the program counter has updated and that the stack trace is different, however Xcode's UI will not update, at least until one of the stock, lldb, 'step*' command(s) are run.I am using Xcode Version 8.3.2 (8E2002). This issue has occurred for me when debugging Mac apps, and iOS apps.Here is simplified, and tested code for the custom lldb command, which I am wo
Replies
0
Boosts
0
Views
398
Activity
May ’17
Reply to Map Pin title problem
Hi there,After the information you gave me I checked things out a bit further.It appears to be when the Map is loaded.I am getting differing error messages. Please see below.2015-07-06 18:00:00.078 USAShoppingMalls[4481:60b] -[__NSArrayM length]: unrecognized selector sent to instance 0x200a2910(lldb)2015-07-06 18:01:57.798 USAShoppingMalls[4490:60b] -[VGLResourceImpl length]: unrecognized selector sent to instance 0x1d1a9e90(lldb)Everything loads into the array correctly but it crashes when the mapview is displayed.I corrected a code error of 2 off ;; after setting the region.span.longitudeDelta = 7.0f;;.I also get different results depending on whether I load the Mapview and then the Annotations or the Other way around.I am not fully aware of what should be loaded first or if it should be loaded in ViewDidLoad or [super viewDidLoad];Thanks Ossie
Replies
Boosts
Views
Activity
Jul ’15
fail to install lldb on Big Sur (11.0) from command line
Hi, I'm using the following command in order to install lldb without Xcode > xcode-select --install However, the window that pops up with the progress bar gets halted on task Finding Software Those are the relevant errors I could trace from log stream: 2020-07-29 14:17:28.792892+0300 0x2bfe Default 0x68a7 163 0 runningboardd: (RunningBoard) [com.apple.runningboard:process] [daemon<com.apple.dt.CommandLineTools.installondemand(502)>:843] Error 45 setting darwin role to UserInteractive: Operation not supported, falling back to setting priority 2020-07-29 14:17:28.931499+0300 0x2bff Default 0x68af 163 0 runningboardd: (RunningBoard) [com.apple.runningboard:process] [daemon<com.apple.dt.CommandLineTools.installondemand(502)>:843] Error 45 setting darwin role to UserInteractiveFocal: Operation not supported, falling back to setting priority Any idea how to tackle this issue?
Replies
1
Boosts
0
Views
586
Activity
Jul ’20
Reply to Swift Terminal Window in Xcode Beta
There are a couple of things that you could be referring to:If you have a swift app, cmd-shift-Y is the default keybinding to open the Console where the output of print() will go.If you pause in the debugger, LLDB understand swift code. From there, you can type repl to get an interactive swift session:(lldb) repl1>Just typing xcrun swift from Terminal.app will give you the same thing. It will still be lldb, but it will jump directly into repl mode for you to play around with Swift.Is that what you had in mind?
Replies
Boosts
Views
Activity
Jun ’15
Reply to How to and When to uninstall a privileged helper
Thank you for the suggestions. And here is the Bug number 29038737.This approach is unlikely to yield a reliable solution. There are just too many ways that things can go wrong. This is also what I am quite concerned about the idea. The removable disk example is a very good one that can be considered as one of the cases that the helper is unexpectedly removed. For these cases, I can have the application check and re-install (re-bless) the helper with prompt the auth at the startup though this bothers the user for the auth again. Are there any other side effects about this idea? The most important thing I was worried about is that whether the solution could have any undefined behavior since it is not a standard approach.
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’16
Reply to Xcode Debugger Extensions
add a new button in the Debugger pane and be able to modify program stateThe problem here is the GUI. LLDB has a sophisticated extension architecture, supporting aliases for simple stuff and Python scripting for accomplishing complex tasks. These work in LLDB from both the command line (via the lldb command) and within Xcode. However, Xcode does not have any mechanism for loading extensions that tweak its GUI. One possibility here is to host that GUI outside of Xcode, in a floating palette say. The tricky part here is managing the IPC between the GUI and the LLDB extension, although that’s probably doable.Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Replies
Boosts
Views
Activity
Apr ’19
Reply to .lldbinit not automatically ran (inside Xcode)
Are you running lldb from the command line? Or are you asking about the LLDB hosted within Xcode’s debugger? Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Replies
Boosts
Views
Activity
Aug ’16
Why is CFNetworking crashing on iOS11
We have an app that is working just fine in iOS 10, but crashes in iOS 11.I am currently trying to trace the problem, but the first crash is here; CFDataRef bodyData = CFHTTPMessageCopyBody( message ); CFHTTPMessageSetBody( newMessage, bodyData ); CFRelease( bodyData ); bodyData = NULL; It seems that I get a nil value from the CFHTTPMessageCopyBody in iOS 11, but not in iOS 10;From debugger;iOS 11(lldb) po message<CFHTTPMessageRef 0x1c417fbc0(0x1c417fbd0)> { GET request, url /873769144/sec/ENCRYPTED_Television*******_240516_1.mp4 -- http:/(lldb) po bodyData<nil>(lldb) po newMessage<CFHTTPMessageRef 0x1c4360840(0x1c4360850)> { GET request, url http:/****iOS 10(lldb) po message<CFHTTPMessageRef 0x170173a40(0x170173a50)> { GET request, url /771278348/sec/ENCRYPTED_Television_**********_240516_1.mp4 -- http:/(lldb) po bodyData<>(lldb) po newMessage<CFHTTPMessageRef 0x170173b00(0x170173b10)> { GET request, u
Replies
4
Boosts
0
Views
3.1k
Activity
Oct ’17
Reply to Can LLDB be used on Sandboxed Apps
Should this work? Yes. And, indeed, it does work on my machine. I created a test project from the macOS > App template, which defaults to being sandboxed, and I was able to debug it with the command-line LLDB: % codesign -d --entitlements - Test747110.app … [Dict] [Key] com.apple.security.app-sandbox [Value] [Bool] true [Key] com.apple.security.files.user-selected.read-only [Value] [Bool] true [Key] com.apple.security.get-task-allow [Value] [Bool] true % lldb Test747110.app (lldb) target create Test747110.app Current executable set to '…/Test747110.app' (arm64). (lldb) r Process 70203 launched: '…/Test747110.app/Contents/MacOS/Test747110' ``` This is Xcode 15.2 on macOS 14.2.1. Are you sure that sandboxing is the only constraint here? If, for example, your sandboxed app was downloaded from the Mac App Store, you can’t debug that with LLDB. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Programming Languages SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’24