-
Notifications
You must be signed in to change notification settings - Fork 731
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
Segfault #167
Comments
It would be nice to see the actual stack trace. Does it crash in |
Yes, it seems so |
I assume you are using leveldb 1.20? If so, can you try to downgrade to 1.19? |
Downgraded, crash, the same string appears in logs. |
It's probably some incompatibility with leveldb/snappy/plyvel. Can you report this upstream? |
Hm, I'm not sure what to report and where. Could you tell me versions that you use and are working? |
I'm not sure either. Python code can not cause a segmentation fault. Since electrumx is written in Python, the issue caused somewhere else. You should report it to either wbolster/plyvel or google/leveldb. Since I'm using rocksdb exclusively (it results in smaller databases and a bit better performance) I can't provide information about working versions. However, as far as I know, the versions in Ubuntu 16.04 do work. |
Ok, I switched to rocksdb and it runs fine for now, electrumx passed flush 9, height 217,164 with no crashes so far. |
I had no luck with RocksDB (#168), but I downgraded to Leveldb v 1.18 and it worked. Not the best solution, but at least I have electrum node running. |
FWIW on my DragonFlyBSD system I use LevelDB 1.19 without issues. I suspect there is some unresolved library conflict on your system with 1.19; likely something somewhere needs to be recompiled; it usually indicates a bug in one of the package descriptions. |
If you have an option to recompile (yourself, from source) or reinstall everything from packages, that might help. A bit drastic, for sure. |
Are you running Arch Linux in an unprivileged container? |
container? do you mean a docker or other cgroup container? I am getting this error with electrumx running as a electrumx user in arch (running on the "metal") |
I mean a LXC container. I had this same problem when I ran it inside that. Apparently privileges are not the source of this problem, then. |
downgrading to leveldb 1.18 also worked for me. |
I also experienced the segfault on 1.20 on Arch, and downgrading to 1.18 fixed it for me as well. |
I also experienced the segfault on 1.20 on debian buster, downgrading to 1.18 was difficult and resulted in electrumx not starting with ImportError: /opt/python/lib/python3.6/site-packages/plyvel/_plyvel.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN7leveldb2DB4OpenERKNS_7OptionsERKNSt7__cxx1112basic_stringIcSt11char_trai [... couldn't copy everything] |
I'm inclined to close these 2 issues @Deathorn as I'm near-certain they are rooted in system library issues unique to your O/S and likely to only one or two versions. Are they still present on more recent O/S upgrades? |
Since you posted that message I tried updating from 1.18 to 1.20 and running for a bit, and haven't experienced a segfault. However, when I originally had the crash it occurred relatively early on while it was catching up to my already up-to-date bitcoin node. It's possible that the bug only occurs on some earlier blocks, and now that I'm past them the later version is fine. I'm not sure. If I do get a segfault again I'll update here, but after 3 days of being up I haven't yet. |
I'm going to close this - it's not something there is any reason to believe is a bug in ElectrumX; it's python after all, and many are using it fine. |
Yeah, I've been fine on 1.20 for the last 3 weeks now. |
Hello, I have a problem running eletrumx, and do not know what to do next. So I build v.1.0.8 it with the help of AUR package in Arch Linux. And when I start electrumx server, I got this from logs:
And then a long text of "Stack trace of thread". If I start electrumx again, I got this immediately
What is wrong?
The text was updated successfully, but these errors were encountered: