You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
EXC_BAD_INSTRUCTION in lib crypto.3.dylib when v3.1.0 is run under the debugger. v3.0.8 does not generate problem lib. (Apple M1/M2) #20753
changed the title [-]EXC_BAD_INSTRUCTION in lib crypto.3.dylib when v3.1.0 is compiled from terminal. v3.0.8 does not generate problem lib.[/-][+]EXC_BAD_INSTRUCTION in lib crypto.3.dylib when v3.1.0 is compiled from terminal. v3.0.8 does not generate problem lib. (Apple M1/M2)[/+]on Apr 17, 2023
This is a known problem which should be fixed by #20305, but which hasn't been released yet.
Note that this should only happen when run under the debugger, which is shown in the stackoverflow question, but stated in this issue - I will edit to reflect this.
changed the title [-]EXC_BAD_INSTRUCTION in lib crypto.3.dylib when v3.1.0 is compiled from terminal. v3.0.8 does not generate problem lib. (Apple M1/M2)[/-][+]EXC_BAD_INSTRUCTION in lib crypto.3.dylib when v3.1.0 is run under the debugger. v3.0.8 does not generate problem lib. (Apple M1/M2)[/+]on Apr 17, 2023
(not sure how to set the labels for this - it's a bug report,. but for a bug that's already fixed, and other issues have mentioned this, so does that make it a duplicate?)
This bug just wasted a half hour of my time. It also leaves bad smell about OpenSSL project if I have to downgrade to an older version to debug on my MacBook.
Was able to work around this by changing brew linkage in gmake file as follows:
ifeq ($(ARCH),arm64)
# To debug on ARM, need an older version as OpenSSL 3.1 breaks lldb
# OpenSSL bug: https://github.com/openssl/openssl/issues/20155
# get working version with: brew install [email protected]
OPENSSL_LIB_PATH:=/opt/homebrew/opt/[email protected]/lib/
OPENSSL_INC_PATH:=/opt/homebrew/opt/[email protected]/include/
Given this is a regression introduced in 3.1, is there a reduced part of #20305 that could be backported rather than the whole thing? (@tom-cosgrove-arm might know?)
I agree and understand that a full backport is large, risky and not eligible.
I'm asking because we've been asked on multiple occasions now downstream to withdraw OpenSSL 3.1 due to this issue.
Activity
[-]EXC_BAD_INSTRUCTION in lib crypto.3.dylib when v3.1.0 is compiled from terminal. v3.0.8 does not generate problem lib.[/-][+]EXC_BAD_INSTRUCTION in lib crypto.3.dylib when v3.1.0 is compiled from terminal. v3.0.8 does not generate problem lib. (Apple M1/M2)[/+]tom-cosgrove-arm commentedon Apr 17, 2023
This is a known problem which should be fixed by #20305, but which hasn't been released yet.
Note that this should only happen when run under the debugger, which is shown in the stackoverflow question, but stated in this issue - I will edit to reflect this.
Note that it's actually a failure of
SIGILLunder macOS - see the comment at the top of https://github.com/mono/mono/pull/20321/files for details[-]EXC_BAD_INSTRUCTION in lib crypto.3.dylib when v3.1.0 is compiled from terminal. v3.0.8 does not generate problem lib. (Apple M1/M2)[/-][+]EXC_BAD_INSTRUCTION in lib crypto.3.dylib when v3.1.0 is run under the debugger. v3.0.8 does not generate problem lib. (Apple M1/M2)[/+]tom-cosgrove-arm commentedon Apr 17, 2023
(not sure how to set the labels for this - it's a bug report,. but for a bug that's already fixed, and other issues have mentioned this, so does that make it a duplicate?)
paulidale commentedon Apr 17, 2023
Duplicate IMO
Bo98 commentedon May 4, 2023
Does it need porting to the
openssl-3.1branch? Don't see the commit on that branch yet.(This issue appears to be labelled
branch: 3.0but it sounds like it should bebranch: 3.1)t8m commentedon May 4, 2023
This is not really a bug. Although inconvenient for debugging, this does not affect normal execution.
The #20305 was merged only to the master branch.
cjnewman commentedon Jun 15, 2023
This bug just wasted a half hour of my time. It also leaves bad smell about OpenSSL project if I have to downgrade to an older version to debug on my MacBook.
Was able to work around this by changing brew linkage in gmake file as follows:
Bo98 commentedon Jun 21, 2023
Given this is a regression introduced in 3.1, is there a reduced part of #20305 that could be backported rather than the whole thing? (@tom-cosgrove-arm might know?)
I agree and understand that a full backport is large, risky and not eligible.
I'm asking because we've been asked on multiple occasions now downstream to withdraw OpenSSL 3.1 due to this issue.
tom-cosgrove-arm commentedon Jun 21, 2023
I have a minimal fix, I just need to get it through internal review
Don't do SIGILL capability detection on Apple Silicon
tom-cosgrove-arm commentedon Jun 22, 2023
I don't think the label
branch: 3.0is right here, as there isn't a problem with 3.0, as I understand itDon't do SIGILL capability detection on Apple Silicon
tom-cosgrove-arm commentedon Jun 26, 2023
This should be fixed by #21261, which has now been merged