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
zcashd exits with "Segmentation fault" shortly after starting while syncing #2787
Comments
Seems like there might have been corruption of datadir due to abort attempts on Docker since it's running as expected on reinstall. Using the @daira any additional insight? |
@ioptio The line "2017-12-02 13:20:11 Shutdown: done" would lead me to believe that it did shut down properly before docker killed the container and the datadir got corrupted during a normal shutdown. But perhaps I am wrong and it was indeed docker that caused the corruption in which case I wouldn't expect zcash to recover from this. |
@lucasvo How are you running your container? Are you mounting your datadir in/out to persist changes/inside outside the cointainer? Just trying to get a little more information on how you are running your container/daemon. |
@ianamunoz Yes, I was mounting the volume with |
@ianamunoz any additional input/questions? |
Couple thoughts here @lucasvo in case you are still trying to run with a docker container. One is your container logs indicate you are running a testnet node. I see it starting with 18232 and the default data directory If you are trying to talk to the daemon from your host outside of the container your Hard to debug the docker side without your exact run command. If you don't mount in the directory to the proper location you would see a new data directory being created inside the container. I have also seen permissions affect the runtime depending on your I can't pull your datadir from the link above to see your .conf file. Does it still exist somewhere? |
We're closing this ticket. Feel free to reopen if the above comment didn't address your concerns. Hope it works out! |
Describe the issue
I set up a node inside of a docker container based on the the Dockerfile pasted below. I aborted the process a few times before by hitting Ctrl+C in the terminal and it was continuing the sync from where it left off until it got stuck in this state.
I backed up the datadir and started with a blank one and it runs as expected.
Can you reliably reproduce the issue?
With my corrupted data dir it segfaults reliably on startup.
Expected behaviour
It shouldn't crash.
Actual behaviour + errors
Application ends with the text "Segmentation fault" No other error.
The debug.log excerpt from the last normal shutdown doesn't indicate anything bad happened.
The version of Zcash you were using:
Zcash Daemon version v1.0.13 from https://apt.z.cash/ (jessie main)
Machine specs:
Any extra information that might be useful in the debugging process.
Do you have a back up of
~/.zcash
directory and/or take a VM snapshot?The text was updated successfully, but these errors were encountered: