Skip to content

Commit 4188e3d

Browse files
committed
Fix(Cargo.tolm) - prevent SIGFPE crash on some CPUs by vendoring OpenSSL
Some new Intel/AMD CPUs that support SHA-NI instructions crash with a "floating point exception" when running binaries statically linked against old OpenSSL versions (like 1.0.2k). => [OpenSSL* SHA Crash Bug Requires Application Update](https://www.intel.com/content/www/us/en/developer/articles/troubleshooting/openssl-sha-crash-bug-requires-application-update.html?utm_source=chatgpt.com) - Using `vendored` features in `openssl` and `native-tls` will force static linking with a modern OpenSSL (>=1.1.1), built from source, this should fix the issue. Signed-off-by: Gafaiti Aymane [email protected]
1 parent 597e49a commit 4188e3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shai-llm/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ edition = "2021"
66
[dependencies]
77
# New LLM module dependencies
88
async-trait = "0.1"
9+
openssl = { version = "0.10", features = ["vendored"] }
10+
native-tls = { version = "0.2", features = ["vendored"] }
911
reqwest = { version = "0.12", features = ["json", "stream"] }
1012
futures = "0.3"
1113
serde = { version = "1.0", features = ["derive"] }
@@ -49,4 +51,3 @@ path = "src/examples/function_calling.rs"
4951
[[example]]
5052
name = "function_calling_streaming"
5153
path = "src/examples/function_calling_streaming.rs"
52-

0 commit comments

Comments
 (0)