Search results for

“LLDB crash”

30,527 results found

Post

Replies

Boosts

Views

Activity

LLDB Breakpoints performance - what should I expect?
I wrote a script that adds a lot of breakpoints to my iOS project. Each breakpoint has a command that calls some logging code and continues without stopping.During my project execution, those breakpoints are called dozens if not hundreds times a second. Unfortunately, app performance collapsed after adding those breakpoints. It's pretty much unresponsive as executing breakpoints slow things down.Is this normal? Is performance cost for breakpoints so significant?I'm pasting below part of my python script from ~/.lldb:... for funcName in funcNames: breakpointCommand = f'breakpoint set -n {funcName} -f {fileName}' lldb.debugger.HandleCommand(breakpointCommand) lldb.debugger.HandleCommand('breakpoint command add --script-type python --python-function devTrackerScripts.breakpoint_callback')def breakpoint_callback(frame, bp_loc, dict): lineEntry = frame.GetLineEntry() functionName = frame.GetDisplayFunctionName() expression = f'expr -- proofLog(lineEntry: {lineEntry}, function: {functionName})' lldb.debugg
2
0
1.1k
Jan ’20
Sequoia, multicast and lldb - no route to host
On Sequoia it became impossible to properly debug programs using third party mDNS, multicast or broadcast, thanks to a bug? in I guess the new local network privacy feature, every send call returns no route to host. If I run the CI job, which properly packages, signs, notarizes said program, the resulting .app works fine and also requests permission to access the local network - which is impossible through lldb as it doesn't have an Info.plist, just the ***** binary itself. However this may not be the issue, see the repro method below. A fast and easy method to reproduce is using an example from this repo: https://github.com/keepsimple1/mdns-sd/ Running the query example in a good old shell without lldb (cargo run --example query _smb._tcp) starts outputting results. Then running the same binary through lldb (lldb -o run target/debug/examples/query _smb._tcp) would result in no route to host errors. I can't provide an output anymore as I was forced to downgrade. It works fi
4
0
944
Sep ’24
Reply to LLDB doesn’t stop on SIGABRT (assert) with x86 executable on Apple ARM
Thanks for the reply. I recommend that you do what Jim suggested on that thread you referenced [1], namely file a bug. Please post your bug number, just for the record. I have immediately reported the bug. Here is the number. FB13382646 In terms of workarounds, if you modify your assert macro to not use abort but rather invoke __builtin_trap(), that seems to make LLDB much happier. I tried __builtin_trap. As a result, LLDB stopped when the app crashed. Thank you very much.
Nov ’23
Reply to dlopen() reloads original instead of new dylib after changes
I should add that in the lldb session above, the library hotloads correctly despite image list reporting the name of the older library. Also image list barsigned000.dylib always reports something even when the library isn't loaded, but image list does not. It would be nice to not have to list every dylib from lldb to verify where one is loaded, but that appears to not be possible with current lldb. Also I forgot it in the example, but image list -b no longer listed the barsigned000.dylib after dlclose(). So that in addition to the dyld printout leads me to believe the dylib was purged. So we get stuck in a state where hotloading stops working, and we get constant crashes in dylib init code at startup after a test hotload that shouldn't crash. Then a few hours later, this problem goes away, as if there was a timeout on the dyld dylib cache that is failing.
Topic: App & System Services SubTopic: General Tags:
Jan ’21
Reply to Xcode crashes when creating core data entity
It's possible that this is 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: Programming Languages SubTopic: Swift Tags:
Jul ’15
lldb handling of dyld shared cache
[I've already asked this on llvm discourse, no answer yet] Can someone give me a brief intro or point me to documentation that describes how lldb handles the dyld shared cache on macOS? I’m trying to evaluate how to implement the same functionality in Valgrind. Prior to macOS 11 Big Sur Valgrind used DYLD_SHARED_REGION=avoid to force loading the libraries and then to bypass the cache and so to trigger reading the mach-o info to be able to redirect malloc/pthread functions. Without these redirs not much is working correctly.
0
0
961
Jan ’23
Reply to Error in Configurator 2 during Blueprint Application
Trying to apply a blueprint to over 100 devices right now and get the same error message every time. At first thought it was the apps because it seemed to be hanging while downloading them. So I removed them from the blueprint and attmepted to apply again only to get the same errorAn underlying service (ACUInternetServiceContext) unexpectedly quit. [ConfigurationUtilityKit.error – 0x68 (104)]
Oct ’15
Reply to Xcode build causes memory issue
5 feb. 2020 - Still no luck )))Xcode Version 11.3.1 (11C504)OSX Version 10.15.3 (19D76)Same issue with LLDB.`lldb-rpc-service` consumes more than 2Gb memory. It does not depend on the project, this problem in general with OS X and LLDB.I bought MacBook Pro with 16Gb and I work normally, only some times I have got crashes this service,But my colleagues on 8Gb become angry 😉
Feb ’20
lldb sometimes doesn't stop at breakpoints
I have some python scripts that I'm using within lldb to track messages that I receive from Endpoint Security (I'm trying to track down an issue where I may not respond to an es_message_t). So I added breakpoints for es_retain_message, es_release_message, es_respond_auth_result and es_respond_flags_result. And it works great... Some of the time. But it--fairly frequently--won't trigger one of the breakpoints. I will see cases where the es_retain_message python code didn't run but the es_respond_auth_result and the es_release_message did. Or any combination thereof. And sometimes they will all be called and everything will work out fine. I'm thinking there may be something thread based. All of the breakpoints are within code blocks--one from Endpoint Security and the other as an application-specific one (a concurrent queue). The pseudo-code looks something like: // Within the ES code block ... es_retain_message(msg) ... dispatch_async(localConcurrentQueue, ^{ ... es_respond_auth_result(msg) // or es_r
2
0
1.9k
Nov ’22
Reply to Outgoing SSL connections fail on macOS 15, work fine on earlier versions
@DTS Engineer I'm not asking for OpenSSL support. I'm asking for help on why lldb hangs when I try to step into an SSL library function. I also want to be clear: we can load the OpenSSL libraries fine. They work fine in macOS < 15. They do not work in macOS 15. lldb hangs in macOS 15. It does not hang in < 15. This all feels like some sort of security measure in macOS 15. I followed your Posting a Crash Report link and it seems to apply to everything except macOS. I don't see any your app crashed dialog, so I don't know if there is information in the system which would help diagnose the problem.
Nov ’24
LLDB Breakpoints performance - what should I expect?
I wrote a script that adds a lot of breakpoints to my iOS project. Each breakpoint has a command that calls some logging code and continues without stopping.During my project execution, those breakpoints are called dozens if not hundreds times a second. Unfortunately, app performance collapsed after adding those breakpoints. It's pretty much unresponsive as executing breakpoints slow things down.Is this normal? Is performance cost for breakpoints so significant?I'm pasting below part of my python script from ~/.lldb:... for funcName in funcNames: breakpointCommand = f'breakpoint set -n {funcName} -f {fileName}' lldb.debugger.HandleCommand(breakpointCommand) lldb.debugger.HandleCommand('breakpoint command add --script-type python --python-function devTrackerScripts.breakpoint_callback')def breakpoint_callback(frame, bp_loc, dict): lineEntry = frame.GetLineEntry() functionName = frame.GetDisplayFunctionName() expression = f'expr -- proofLog(lineEntry: {lineEntry}, function: {functionName})' lldb.debugg
Replies
2
Boosts
0
Views
1.1k
Activity
Jan ’20
Sequoia, multicast and lldb - no route to host
On Sequoia it became impossible to properly debug programs using third party mDNS, multicast or broadcast, thanks to a bug? in I guess the new local network privacy feature, every send call returns no route to host. If I run the CI job, which properly packages, signs, notarizes said program, the resulting .app works fine and also requests permission to access the local network - which is impossible through lldb as it doesn't have an Info.plist, just the ***** binary itself. However this may not be the issue, see the repro method below. A fast and easy method to reproduce is using an example from this repo: https://github.com/keepsimple1/mdns-sd/ Running the query example in a good old shell without lldb (cargo run --example query _smb._tcp) starts outputting results. Then running the same binary through lldb (lldb -o run target/debug/examples/query _smb._tcp) would result in no route to host errors. I can't provide an output anymore as I was forced to downgrade. It works fi
Replies
4
Boosts
0
Views
944
Activity
Sep ’24
Reply to LLDB doesn’t stop on SIGABRT (assert) with x86 executable on Apple ARM
Thanks for the reply. I recommend that you do what Jim suggested on that thread you referenced [1], namely file a bug. Please post your bug number, just for the record. I have immediately reported the bug. Here is the number. FB13382646 In terms of workarounds, if you modify your assert macro to not use abort but rather invoke __builtin_trap(), that seems to make LLDB much happier. I tried __builtin_trap. As a result, LLDB stopped when the app crashed. Thank you very much.
Replies
Boosts
Views
Activity
Nov ’23
Reply to Colour Recognition using Swift
There is no output, it crashes during the constructor: (lldb) Thread 1: EXC_BREAKPOINT(code = 1, subcode=0x1000bc7f0); which is why the print is blank.And my bad, I read on the object type's page that, that was how it was initialized. Still stuck!
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’17
Reply to Xcode 16.3 build on ios18.4 ,app can't launch
I was able to fix this by adding settings set plugin.process.gdb-remote.packet-timeout 300 to my ~/.lldbinit file Process still takes an abnormal time to launch, but at least lldb isn't crashing and the app is running as before.
Replies
Boosts
Views
Activity
Apr ’25
Reply to dlopen() reloads original instead of new dylib after changes
I should add that in the lldb session above, the library hotloads correctly despite image list reporting the name of the older library. Also image list barsigned000.dylib always reports something even when the library isn't loaded, but image list does not. It would be nice to not have to list every dylib from lldb to verify where one is loaded, but that appears to not be possible with current lldb. Also I forgot it in the example, but image list -b no longer listed the barsigned000.dylib after dlclose(). So that in addition to the dyld printout leads me to believe the dylib was purged. So we get stuck in a state where hotloading stops working, and we get constant crashes in dylib init code at startup after a test hotload that shouldn't crash. Then a few hours later, this problem goes away, as if there was a timeout on the dyld dylib cache that is failing.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’21
Reply to Xcode crashes when creating core data entity
It's possible that this is 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: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’15
lldb handling of dyld shared cache
[I've already asked this on llvm discourse, no answer yet] Can someone give me a brief intro or point me to documentation that describes how lldb handles the dyld shared cache on macOS? I’m trying to evaluate how to implement the same functionality in Valgrind. Prior to macOS 11 Big Sur Valgrind used DYLD_SHARED_REGION=avoid to force loading the libraries and then to bypass the cache and so to trigger reading the mach-o info to be able to redirect malloc/pthread functions. Without these redirs not much is working correctly.
Replies
0
Boosts
0
Views
961
Activity
Jan ’23
Reply to Xcode 11 hangs while attaching debugger to ios process
Well I have also this problem since Xcode 13.4.1 and WatchOS 8.7. Immediately when the Debugger reaches a breakpoint the lldb-rpc server crashes. Your workaround is not working, so I Hope that Xcode 14 will fix this problem
Replies
Boosts
Views
Activity
Sep ’22
XCode 13.3 stuck when input Chinese in lldb console
XCode 13.3 stuck when input Chinese in lldb console
Replies
14
Boosts
0
Views
3.4k
Activity
Mar ’22
Reply to Xcode Playground - The LLDB RPC server has crashed.
LLDB RPC server crashes always. I have to do a lot of cleaning everytime. But it comes back very soon. Extremely annoying. https://stackoverflow.com/questions/31011062/how-to-completely-uninstall-xcode-and-clear-all-settings/33812614#33812614
Topic: Graphics & Games SubTopic: Metal Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to Error in Configurator 2 during Blueprint Application
Trying to apply a blueprint to over 100 devices right now and get the same error message every time. At first thought it was the apps because it seemed to be hanging while downloading them. So I removed them from the blueprint and attmepted to apply again only to get the same errorAn underlying service (ACUInternetServiceContext) unexpectedly quit. [ConfigurationUtilityKit.error – 0x68 (104)]
Replies
Boosts
Views
Activity
Oct ’15
Reply to Xcode build causes memory issue
5 feb. 2020 - Still no luck )))Xcode Version 11.3.1 (11C504)OSX Version 10.15.3 (19D76)Same issue with LLDB.`lldb-rpc-service` consumes more than 2Gb memory. It does not depend on the project, this problem in general with OS X and LLDB.I bought MacBook Pro with 16Gb and I work normally, only some times I have got crashes this service,But my colleagues on 8Gb become angry 😉
Replies
Boosts
Views
Activity
Feb ’20
lldb sometimes doesn't stop at breakpoints
I have some python scripts that I'm using within lldb to track messages that I receive from Endpoint Security (I'm trying to track down an issue where I may not respond to an es_message_t). So I added breakpoints for es_retain_message, es_release_message, es_respond_auth_result and es_respond_flags_result. And it works great... Some of the time. But it--fairly frequently--won't trigger one of the breakpoints. I will see cases where the es_retain_message python code didn't run but the es_respond_auth_result and the es_release_message did. Or any combination thereof. And sometimes they will all be called and everything will work out fine. I'm thinking there may be something thread based. All of the breakpoints are within code blocks--one from Endpoint Security and the other as an application-specific one (a concurrent queue). The pseudo-code looks something like: // Within the ES code block ... es_retain_message(msg) ... dispatch_async(localConcurrentQueue, ^{ ... es_respond_auth_result(msg) // or es_r
Replies
2
Boosts
0
Views
1.9k
Activity
Nov ’22
Reply to Outgoing SSL connections fail on macOS 15, work fine on earlier versions
@DTS Engineer I'm not asking for OpenSSL support. I'm asking for help on why lldb hangs when I try to step into an SSL library function. I also want to be clear: we can load the OpenSSL libraries fine. They work fine in macOS < 15. They do not work in macOS 15. lldb hangs in macOS 15. It does not hang in < 15. This all feels like some sort of security measure in macOS 15. I followed your Posting a Crash Report link and it seems to apply to everything except macOS. I don't see any your app crashed dialog, so I don't know if there is information in the system which would help diagnose the problem.
Replies
Boosts
Views
Activity
Nov ’24