Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: BlackHatCoiner on October 10, 2020, 07:46:56 AM



Title: Segmentation fault (core dumped) on bitcoin-qt load
Post by: BlackHatCoiner on October 10, 2020, 07:46:56 AM
I have built bitcoin core v0.20.0 on my Ubuntu 18.04 with no errors. Although, I face this problem when I run ./bitcoin-qt on the qt directory:

https://i.imgur.com/UuYXusU.png

The program opens (it shows me the bitcoin core's loading screen) and it instantly closes with the Segmentation fault. Does anyone have any ideas of what's the fault? Here's the debug.log of the .bitcoin folder: https://pastebin.com/raw/XaeesUm4


Title: Re: Segmentation fault (core dumped) on bitcoin-qt load
Post by: jackg on October 10, 2020, 07:58:01 AM
Have you only just built this? Could you try running it with -reindex if you haven't already synced.

I can't remember what fixed it for me when I had that error but it looks like a problem with the database logging file (backup your wallet before reindexing if you've made one also as an additional backup to current standing ones).


Title: Re: Segmentation fault (core dumped) on bitcoin-qt load
Post by: BlackHatCoiner on October 10, 2020, 08:01:33 AM
Have you only just built this? Could you try running it with -reindex if you haven't already synced.

I can't remember what fixed it for me when I had that error but it looks like a problem with the database logging file (backup your wallet before reindexing if you've made one also as an additional backup to current standing ones).

I ran it. It still shows me the same thing.
https://i.imgur.com/Mztp939.png


Title: Re: Segmentation fault (core dumped) on bitcoin-qt load
Post by: jackg on October 10, 2020, 09:06:39 AM
Can you check for a log here:
/home/angelo/.bitcoin/wallets/database

There might be a file called: debug, log or status.

It also mentions a db.log file in your data directory but I don't know if that's the thing with the problem or the thing with the information on how to fix it...


Title: Re: Segmentation fault (core dumped) on bitcoin-qt load
Post by: BlackHatCoiner on October 10, 2020, 09:11:03 AM
https://i.imgur.com/FzOugML.png

There is no file inside that folder. And I've ticked "Show Hidden Files".


Title: Re: Segmentation fault (core dumped) on bitcoin-qt load
Post by: jackg on October 10, 2020, 09:25:56 AM
/home/angelo/.bitcoin/wallets/db.log

The other one is here then and the answer is probably there...


Title: Re: Segmentation fault (core dumped) on bitcoin-qt load
Post by: HCP on October 10, 2020, 09:31:39 AM
If there is nothing useful in that db.log, maybe try using the GNU Debugger (gdb) and see if you can backtrace the core dump (Google/YouTube have some resources available on using gdb to debug "SegFaults")... that might help point you to what is actually causing the error.



Title: Re: Segmentation fault (core dumped) on bitcoin-qt load
Post by: BlackHatCoiner on October 10, 2020, 09:51:13 AM
/home/angelo/.bitcoin/wallets/db.log

The other one is here then and the answer is probably there...

https://i.imgur.com/lR0PkGR.png

Nothing here as well.


Title: Re: Segmentation fault (core dumped) on bitcoin-qt load
Post by: NotATether on October 10, 2020, 10:50:55 AM
Did you clone Bitcoin Core source code from Github master branch, or download it from the Releases Github page? If you clone the source from master branch, that's the development version of Bitcoin Core so it is unstable, various things may be broken.

Try downloading it from the Releases page https://github.com/bitcoin/bitcoin/archive/v0.20.1.tar.gz, compile that and it should run perfectly.


Title: Re: Segmentation fault (core dumped) on bitcoin-qt load
Post by: BlackHatCoiner on October 10, 2020, 03:08:57 PM
Did you clone Bitcoin Core source code from Github master branch, or download it from the Releases Github page? If you clone the source from master branch, that's the development version of Bitcoin Core so it is unstable, various things may be broken.

Try downloading it from the Releases page https://github.com/bitcoin/bitcoin/archive/v0.20.1.tar.gz, compile that and it should run perfectly.

I tried it again. Same error.


Title: Re: Segmentation fault (core dumped) on bitcoin-qt load
Post by: bob123 on October 11, 2020, 12:23:33 PM
Did make run correctly? No error/warnings?
Because it is not clear from your screenshot whether there were any errors / warnings when building.

Errors do not only appear at the end of the output.