-
Notifications
You must be signed in to change notification settings - Fork 2.2k
lnd 0.9.1 crashing on raspberry pi #4052
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
Comments
Could you paste a bit more of the lnd log? I think it's located somewhere like |
Yeah sure. log of lnd has the same content except for the systemd stuff.
|
11/SEGV means, as far as I know, that lnd tries to access memory which is not assigned to lnd. Which should be a bug of lnd. |
Hmm... It's really hard to tell what exactly went wrong as there is no stack trace. It indeed looks like the OS kills the process because of a segmentation violation. |
Yeah sure, I can try that if you could provide me a binary for linux armv7 built with go 1.13 |
After testing 0.9.1 built with go1.13 I figured out that no crashes appear anymore. I'm not sure what the problem is but I can confirm that a binary built with go1.13 works like a charm. Tested on armv7 (raspberry pi). |
Current suspect is some asm code in @turcane was able to reproduce the bug on a second Raspberry Pi. He also volunteered to try running a binary compiled with |
bingo. this was the problem. after more than 1 hour runtime on two raspberries no crashes anymore. great job! |
Can confirm this error with using a RPi4 4GB with RaspiBlitz v1.4 upgraded to lnd v0.9.1 (running well on v0.9.0):
Also reported by @kilrau: openoms/lightning-node-management#6 Will compile from source with Go 1.13 and report. |
Unfortunately experienced the same after running for ~10h even if compiled from source with the v0.9.1 tagged commit on Go v1.13.3 :
|
And after two days? @turcane |
i can confirm that my raspi3 with release version 0.9.1 also crashes after some minutes/hour, version 0.9.0 works. |
Do y'all have the |
When running without systemd all I get after the usual LND [DBG] PEER outputs is:
and exit |
unfortunately the same for me with the 0.9.1 version. I installed 0.9.0 again yesterday and so far no crashes. if you want me to test any version, just let me know :) |
In this commit, we update to a new version of `x/crypto` that drops broken ARM assembly that can cause a segfault in systems like raspis. The broken assembly was removed in this commit to the runtime: golang/go@8b77410. Fixes lightningnetwork#4052.
In this commit, we update to a new version of `x/crypto` that drops broken ARM assembly that can cause a segfault in systems like raspis. The broken assembly was removed in this commit to the runtime: golang/go@8b77410. Fixes #4052.
Can y'all try out this branch to see if it resolves things? https://github.com/lightningnetwork/lnd/tree/v0.9.2-beta-rc1-branch It includes one commit on top of |
ok, running with the commit b96de11 Will report if still up after a day. |
I encountered a similar problem on an odroid-hc2 (architecture: armv7l) with lnd version 0.9.1 failing with a segmentation fault as well:
|
Had no issues since with the updated library, the problem is likely solved, since it is the longest uptime with lnd v0.9.1. Folks running a RaspiBlitz setup can use this script to test: Paste the commit hash: |
@openoms dope! If over the next day or so, we don't get a conflicting response, we'll cut |
In this commit, we update to a new version of `x/crypto` that drops broken ARM assembly that can cause a segfault in systems like raspis. The broken assembly was removed in this commit to the runtime: golang/go@8b77410. Fixes #4052.
We've tagged the new version: https://github.com/lightningnetwork/lnd/releases/tag/v0.9.2-beta Binaries are uploading as I type this, will then have the usual release notes template albeit it'll be much smaller (only a single change). |
Uh oh!
There was an error while loading. Please reload this page.
Background
lnd crashes after a few minutes for some reason. This happens since 0.9.1. After downgrading to 0.9.0 lnd runs again without any crashes
Your environment
Steps to reproduce
Update lnd to 0.9.1
Expected behaviour
It should not crash :-)
Actual behaviour
It crashes after a few minutes
log
lnd.conf
bitcoin.conf
The text was updated successfully, but these errors were encountered: