-
Notifications
You must be signed in to change notification settings - Fork 335
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 error #43
Comments
Okay, I will set up a 16.04 VM to reproduce the issue. |
Let me know if you need me to test further or need resources. |
Same issue for me on Linux Mint 18.2 64 bits (based on Ubuntu 16.04 LTS).
|
Can you post a reproduce of the issue? My steps: Also please be aware that the current staging tree is not finished. So it can't connect to mainnet or testnet. |
I have the same issue: Running on Ubuntu 16.04.3 LTS ader@HP-15-Notebook-PC:~/coins/BTCGPU/src$ ./bgoldd -daemon
bgoldd: crypto/common.h:138: int init_and_check_sodium(): Assertion `crypto_sign_verify_detached(sig, message, sizeof(message), pk) != 0' failed.
Aborted (core dumped) core dump file: core.zip |
No problem, this is just for help. For me :
No problem on previous merge.
|
@argos66 did you build with a fresh clone or |
still getting same error |
@h4x3rotab (gdb) r
Starting program: /home/ader/coins/BTCGPU/src/bgoldd -daemon
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
bgoldd: crypto/common.h:138: int init_and_check_sodium(): Assertion `crypto_sign_verify_detached(sig, message, sizeof(message), pk) != 0' failed.
Program received signal SIGABRT, Aborted.
0x00007ffff5189428 in __GI_raise (sig=sig@entry=6)
at ../sysdeps/unix/sysv/linux/raise.c:54
54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 0x00007ffff5189428 in __GI_raise (sig=sig@entry=6)
at ../sysdeps/unix/sysv/linux/raise.c:54
#1 0x00007ffff518b02a in __GI_abort () at abort.c:89
#2 0x00007ffff5181bd7 in __assert_fail_base (fmt=<optimized out>,
assertion=assertion@entry=0x1004227e8 "crypto_sign_verify_detached(sig, message, sizeof(message), pk) != 0",
file=file@entry=0x100423d34 "crypto/common.h", line=line@entry=138,
function=function@entry=0x10042a400 <init_and_check_sodium()::__PRETTY_FUNCTION__> "int init_and_check_sodium()") at assert.c:92
#3 0x00007ffff5181c82 in __GI___assert_fail (
assertion=assertion@entry=0x1004227e8 "crypto_sign_verify_detached(sig, message, sizeof(message), pk) != 0",
file=file@entry=0x100423d34 "crypto/common.h", line=line@entry=138,
function=function@entry=0x10042a400 <init_and_check_sodium()::__PRETTY_FUNCTION__> "int init_and_check_sodium()") at assert.c:101
#4 0x00000001000602b5 in init_and_check_sodium () at crypto/common.h:138
#5 AppInitSanityChecks () at init.cpp:1166
#6 0x000000010003c557 in AppInit (argc=2, argv=<optimized out>)
at bitcoind.cpp:142
#7 0x000000010002fb2f in main (argc=2, argv=0x7fffffffdf28)
at bitcoind.cpp:195 |
@D3m0nKingx , now I've retested with a new and fresh git clone and same result. |
after recompile same result with libdb5.3 and with libdb4.8 |
Same error for me on Ubuntu 16.04 LTS ./autogen.sh && ./configure --with-incompatible-bdb && make && ./src/bgoldd |
Hi guys, can you try to build all the dependencies from |
My environment is a clone of a VM that builds Bitcoin Core and Bitcoin Cash fine. Plus libsodium and libsodium-dev. If you need more, put checks in the configure script. I'm not going to build all the dependencies by myself if my Ubuntu install ships all of them pre-build. |
@h4x3rotab after building |
during the build of ./depends i see this occurs:
also libsodium in depends is a newer version 1.0.13 than the package available through ubuntu. |
I think you should provide some more detailed compiling instructions... @h4x3rotab |
I was able to solve this issue by upgrading libsodium to 1.0.15 https://download.libsodium.org/libsodium/releases/ Daemon is running and working ! |
Can confirm that, but you have to upgrade libsodium from the scratch, so compile it |
I am still receiving same error message after Sodium update |
you need to compile sodium libsosium from the scratch. |
@Coryvmcs1 make sure you uninstalled the previous version if you had installed. when you compile and install the new libsodium version make sure you do |
after compiling I still get the following error. bgoldd |
@Coryvmcs1 please do |
linux-vdso.so.1 => (0x00007ffd8bf99000) |
do |
no go i have other equihash projects that run just fine on this machine. Not sure what is going on here. |
ldd bgoldd |
on my system: linux-vdso.so.1 => (0x00007ffda093f000)
libboost_system.so.1.58.0 => /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0 (0x00007f766a947000)
libboost_filesystem.so.1.58.0 => /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0 (0x00007f766a72f000)
libboost_program_options.so.1.58.0 => /usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.58.0 (0x00007f766a4b1000)
libboost_thread.so.1.58.0 => /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.58.0 (0x00007f766a28b000)
libboost_chrono.so.1.58.0 => /usr/lib/x86_64-linux-gnu/libboost_chrono.so.1.58.0 (0x00007f766a083000)
libdb_cxx-5.3.so => /usr/lib/x86_64-linux-gnu/libdb_cxx-5.3.so (0x00007f7669cae000)
libminiupnpc.so.10 => /usr/lib/x86_64-linux-gnu/libminiupnpc.so.10 (0x00007f7669aa1000)
libevent_pthreads-2.0.so.5 => /usr/lib/x86_64-linux-gnu/libevent_pthreads-2.0.so.5 (0x00007f766989e000)
libevent-2.0.so.5 => /usr/lib/x86_64-linux-gnu/libevent-2.0.so.5 (0x00007f7669658000)
libzmq.so.5 => /usr/lib/x86_64-linux-gnu/libzmq.so.5 (0x00007f76693f2000)
libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f7668fae000)
libsodium.so.23 => /usr/lib/x86_64-linux-gnu/libsodium.so.23 (0x00007f7668d58000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f76689d6000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f76686cd000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f76684b7000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f766829a000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7667ed0000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f7667cc8000)
libevent_core-2.0.so.5 => /usr/lib/x86_64-linux-gnu/libevent_core-2.0.so.5 (0x00007f7667a9e000)
libsodium.so.18 => /usr/lib/x86_64-linux-gnu/libsodium.so.18 (0x00007f7667840000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f766763c000)
/lib64/ld-linux-x86-64.so.2 (0x00007f766b345000) did you rerun |
running it again one more time for good luck :-) |
ok daemon looks like it wants to start but just sits there and gets stuck. Debug log is here 2017-10-21 03:58:45 Bitcoin version v0.15.0.1-574a6e5-dirty DB Log is empty I redacted the home directory info in case you are wondering. |
looks fine, from the same directory run |
yea it responds |
SolutionStep 1) Install Dependencies:
Step 2) Compile daemon and Qt
Step 3) Run / test daemon
In separate terminal:
|
nice to see your issue was solved with @Coryvmcs1's help. I can only highly recommend to setup rpcuser and password and limit access to localhost in /.bitcoingold/bitcoin.conf better set different rpc-port also, if you are running original core on the same machine. I am running the testnet, but seems a local one (dnsseed does not match), but
and even more important:
|
for ubuntu 16.04 users with the older libsodium there is no easy build from scratch right now. I got the same segfaults on every binary. When the actual codebase NEEDS the version 1.0.13, i sugest to put it as "internal" code to the dependencys when the actual used system-files are older. |
he codebase does not obligatory need 1.0.13, I built against 1.0.15, anyway better to take care for dependencies |
for now only by using the "depends" folder results in a not segfaulting binary for me. There are to many variables on different linuxes that can result in crashing bins. I suggest to make the depends to the defaults for compiling. Anyway: this client is the only one, compared with many altoins, that brings so much troubles by using different lib-versions for compiling. I suggest, to make it generally working with minimal extra needs for ubuntu 14.04 and 16.04, because this versions are mostly used by the miners and servers at the moment. |
Could you guys upload steps to build this to the /doc/unix-build file? |
#57 duplicated |
Hello. Help me. To Ubuntu 14.04. for Ubuntu 14.04 is required too the libsodium18? ldd bgoldd I have made cd BTCGPU && ./autogen.sh && ./configure && make, I receive error: bgoldd: crypto/common.h:138: int init_and_check_sodium(): Assertion `crypto_sign_verify_detached(sig, message, sizeof(message), pk) != 0' failed. |
(edited, because used wrong link) I fixed the problem on 14.04 with downloading 1.0.15 from https://download.libsodium.org/libsodium/releases/libsodium-1.0.15-mingw.tar.gz untar and cd into the dir then ye good olde: If you are not root put "sudo" in front of the commands afterwards recompile BTCGPU. |
Thanks. It works, only the correct reference such https://download.libsodium.org/libsodium/releases/libsodium-1.0.15.tar.gz |
@jagottsicher can't we simply connect our peers directly (until dnsseeds get fixed)? |
I know they are working on the testnet being up shortly. |
Workaround for Ubuntu 16.04 Xenial UsersDownload deb files from https://packages.ubuntu.com/artful/libsodium-dev and https://packages.ubuntu.com/artful/libsodium18 for your architecture, e.g.
This gives you libsodium 1.0.13 from Ubuntu 17.10 (Artful) which can be installed on 16.04 without problems since it only has a dependency on libc6:
Now compile BTCGPU. No assertion anymore when starting |
c0deright solution helps |
It's recommended to build all the dependencies from |
On Ubuntu 16.04 after configure make seems to make the daemon fine.
Once you go to execute the daemon the following issues occurs.
bgoldd: crypto/common.h:138: int init_and_check_sodium(): Assertion `crypto_sign_verify_detached(sig, message, sizeof(message), pk) != 0' failed.
Aborted (core dumped)
The text was updated successfully, but these errors were encountered: