-
Notifications
You must be signed in to change notification settings - Fork 416
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
Core dump on startup [0.8.0] #193
Comments
|
Thanks for opening the issue! |
Same problem with rust 1.39:
|
Not sure but maybe it's related to rust-rocksdb crate #159 (comment)? |
Could you please try 48622f4? |
Still same issue
|
I also cloned the repo clean, checked out 0.8.0, built and run with the exact same result. |
Could you please try to |
Is it a cloud-based VM by chance? |
You can also try to downgrade just rocksdb crate version back to 0.12.1 since I think it was used at 0.7.1: diff --git a/Cargo.toml b/Cargo.toml
index a73a731..671fc63 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "electrs"
-version = "0.7.1"
+version = "0.8.0"
authors = ["Roman Zeyde <me@romanzey.de>"]
description = "An efficient re-implementation of Electrum Server in Rust"
license = "MIT"
@@ -10,20 +10,23 @@ keywords = ["bitcoin", "electrum", "server", "index", "database"]
documentation = "https://docs.rs/electrs/"
readme = "README.md"
edition = "2018"
+build = "build.rs"
+
+[package.metadata.configure_me]
+spec = "config_spec.toml"
[profile.release]
lto = true
[features]
-latest_rust = [] # use latest Rust features (otherwise, support Rust 1.32)
+latest_rust = [] # use latest Rust features (otherwise, support Rust 1.34)
[dependencies]
-arrayref = "0.3"
base64 = "0.10"
bincode = "1.0"
-bitcoin = "0.18"
-bitcoin_hashes = "0.3"
-clap = "2.31"
+bitcoin = { version = "0.21", features = ["use-serde"] }
+bitcoin_hashes = "0.7.1"
+configure_me = "0.3.3"
crossbeam-channel = "0.3"
dirs = "1.0"
error-chain = "0.12"
@@ -35,7 +38,7 @@ lru = "0.1"
num_cpus = "1.0"
page_size = "0.4"
prometheus = "0.5"
-rocksdb = "0.12.1"
+rocksdb = "0.12"
rust-crypto = "0.2"
serde = "1.0"
serde_derive = "1.0"
@@ -45,3 +48,6 @@ stderrlog = "0.4.1"
sysconf = ">=0.3.4"
time = "0.1"
tiny_http = "0.6"
+
+[build-dependencies]
+configure_me_codegen = "0.3.12" |
No, it's a physical machine in my basement. Nothing cloudy there, but a bit dusty. |
Could you please build and run latest rust-rocksdb tests?
I am suspecting that https://github.com/rust-rocksdb/rust-rocksdb/blob/3c810163091fb8d343a3fa8373edd4b5685ed84d/librocksdb-sys/build.rs#L100 is causing the crash :( |
Right! Here's my output.
My CPU is pretty old:
|
My CPU (Kentsfield) is from somewhere 2006-2009 which is older than Intel Nehalem (about 2010) |
My options seems to be a) Use electrs 0.7.1 |
|
I think that RocksDB is the only non-Rust crate, so the fix above should work well. |
FTR, this is an open issue at rust-rocksdb/rust-rocksdb#327. |
I cannot downgrade rocksdb to 0.12.2 with version 0.8.1.
I guess I'll try again with 0.8.0 or 0.7.1. |
I have an old 2009 AMD, but I'm not sure if that is my issue with rocksdb. I get Although, I'm running in docker without a toml configuration. |
0.7.1 wouldn't compile for me.
|
Thank you for reopening, but in fact I did get 0.8.0 to work after running |
@dmp1ce Did you manage to downgrade rocksdb on 0.8.1 too? I haven't tried that yet. |
No, because 0.8.1 requires at least 0.13 of rocksdb. I don't know why. Line 41 in 1498eed
I just used 0.8.0. |
Let's downgrade to 0.12.2 until rust-rocksdb/rust-rocksdb#327 is resolved. |
0.8.2 should fix this issue. |
The v0.13 release does not work well with some old CPU models, see: romanz#193 rust-rocksdb/rust-rocksdb#327 rust-rocksdb/rust-rocksdb#363
The v0.13 release does not work well with some old CPU models, see: romanz#193 rust-rocksdb/rust-rocksdb#327 rust-rocksdb/rust-rocksdb#363
Could this be bckported? Blockstream@a03813d I'm looking at compiling rocksdb with system library and having the dependency pinned makes it harder. |
FYI, I managed to compile If it gets merged, then my issue will be resolved. |
IIUC, this should currently be resolved in |
The v0.13 release does not work well with some old CPU models, see: romanz/electrs#193 rust-rocksdb/rust-rocksdb#327 rust-rocksdb/rust-rocksdb#363
I just upgraded from 0.7.1 to 0.8.0. 0.7.1 worked fine but 0.8.0 prints this on the log:
I upgraded by
Here's my
~/.electrs/config.toml
:I also tried to move away the db dir to start from scratch, but it didn't help.
The text was updated successfully, but these errors were encountered: