Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C++] Debugging Arrow with lldb on macOS/AArch64 is difficult due to OpenSSL #37589

Open
lidavidm opened this issue Sep 6, 2023 · 1 comment

Comments

@lidavidm
Copy link
Member

lidavidm commented Sep 6, 2023

Describe the enhancement requested

https://stackoverflow.com/questions/74059978/why-is-lldb-generating-exc-bad-instruction-with-user-compiled-library-on-macos

Basically: OpenSSL tries to detect processor features by just executing bad instructions, and on AArch64, lldb doesn't like that and effectively prevents you from debugging the program (you just get stuck on bad instruction breakpoints a lot). While it can be worked around, it looks like upgrading or downgrading OpenSSL would avoid this in the first place (e.g. openssl/openssl#20753)

Component(s)

C++

@metasim
Copy link

metasim commented May 24, 2024

Anyone know what the workaround is? I tried this in lldb and it still gets stuck trapping on openssl poking at ARM instructions...

settings set platform.plugin.darwin.ignored-exceptions EXC_BAD_INSTRUCTION

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants