bitcoin: bitcoind immediately segfaults on ppc64 openbsd 7.4
Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
v26.0 and v26.1rc1 both build successfully on big endian ppc64 openbsd 7.4 but when starting, bitcoind immediately segfaults. CPU is POWER9.
Unfortunately, gdb on this platform also crashes when attempting to debug so all I have is this:
$ egdb bitcoind bitcoind.core
GNU gdb (GDB) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "powerpc64-unknown-openbsd7.4".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from bitcoind...
[New process 613405]
Core was generated by `bitcoind'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 libunwind::LocalAddressSpace::get32 (this=<optimized out>, addr=<optimized out>) at /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libunwind/src/AddressSpace.hpp:221
221 /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libunwind/src/AddressSpace.hpp: No such file or directory.
(gdb) bt
#0 libunwind::LocalAddressSpace::get32 (this=<optimized out>, addr=<optimized out>) at /usr/src/gnu/lib/libcxxabi/../../../gnu/llvm/libunwind/src/AddressSpace.hpp:221
Abort trap (core dumped)
Expected behaviour
Bitcoind starts to sync.
Steps to reproduce
Build bitcoind on powerpc64 OpenBSD 7.4 on IBM POWER9. Start bitcoind.
How did you obtain Bitcoin Core
Compiled from source
What version of Bitcoin Core are you using?
v26.0 and v26.1rc1
Operating system and version
OpenBSD 7.4
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 17 (17 by maintainers)
Commits related to this issue
- fuzz: restrict fopencookie usage to __linux__ Should fix the GCC compilation portion of #29517: https://github.com/bitcoin/bitcoin/issues/29517#issuecomment-1973573314. See also: https://www.gnu.org... — committed to fanquake/bitcoin by fanquake 3 years ago
- fuzz: restrict fopencookie usage to Linux & FreeBSD Should fix the GCC compilation portion of #29517: https://github.com/bitcoin/bitcoin/issues/29517#issuecomment-1973573314. See also: https://www.g... — committed to fanquake/bitcoin by fanquake 3 years ago
- fuzz: restrict fopencookie usage to Linux & FreeBSD Should fix the GCC compilation portion of #29517: https://github.com/bitcoin/bitcoin/issues/29517#issuecomment-1973573314. See also: https://www.g... — committed to fanquake/bitcoin by fanquake 3 years ago
- fuzz: restrict fopencookie usage to Linux & FreeBSD Should fix the GCC compilation portion of #29517: https://github.com/bitcoin/bitcoin/issues/29517#issuecomment-1973573314. See also: https://www.g... — committed to fanquake/bitcoin by fanquake 3 years ago
- Merge bitcoin/bitcoin#29529: fuzz: restrict fopencookie usage to Linux & FreeBSD 312f3381a2d3a7afb7c81b4662214d4d67b4e84a fuzz: restrict fopencookie usage to Linux & FreeBSD (fanquake) Pull request ... — committed to bitcoin/bitcoin by fanquake 3 years ago
- fuzz: restrict fopencookie usage to Linux & FreeBSD Should fix the GCC compilation portion of #29517: https://github.com/bitcoin/bitcoin/issues/29517#issuecomment-1973573314. See also: https://www.g... — committed to glozow/bitcoin by fanquake 3 years ago
- fuzz: restrict fopencookie usage to Linux & FreeBSD Should fix the GCC compilation portion of #29517: https://github.com/bitcoin/bitcoin/issues/29517#issuecomment-1973573314. See also: https://www.g... — committed to kevkevinpal/bitcoin by fanquake 3 years ago
- fuzz: restrict fopencookie usage to Linux & FreeBSD Should fix the GCC compilation portion of #29517: https://github.com/bitcoin/bitcoin/issues/29517#issuecomment-1973573314. See also: https://www.g... — committed to kevkevinpal/bitcoin by fanquake 3 years ago
- fuzz: restrict fopencookie usage to Linux & FreeBSD Should fix the GCC compilation portion of #29517: https://github.com/bitcoin/bitcoin/issues/29517#issuecomment-1973573314. See also: https://www.g... — committed to BitgesellOfficial/bitgesell by fanquake 3 years ago
- Merge bitcoin/bitcoin#29529: fuzz: restrict fopencookie usage to Linux & FreeBSD 312f3381a2d3a7afb7c81b4662214d4d67b4e84a fuzz: restrict fopencookie usage to Linux & FreeBSD (fanquake) Pull request ... — committed to PastaPastaPasta/dash by fanquake 3 years ago
- Merge bitcoin/bitcoin#29529: fuzz: restrict fopencookie usage to Linux & FreeBSD 312f3381a2d3a7afb7c81b4662214d4d67b4e84a fuzz: restrict fopencookie usage to Linux & FreeBSD (fanquake) Pull request ... — committed to PastaPastaPasta/dash by fanquake 3 years ago
- Merge bitcoin/bitcoin#29529: fuzz: restrict fopencookie usage to Linux & FreeBSD 312f3381a2d3a7afb7c81b4662214d4d67b4e84a fuzz: restrict fopencookie usage to Linux & FreeBSD (fanquake) Pull request ... — committed to PastaPastaPasta/dash by fanquake 3 years ago
Can you try if this happens with 29.0rc2 as well? https://github.com/bitcoin/bitcoin/releases/tag/v29.0rc2
I am asking, because it is using a new build system (cmake), so things may have changed.
Can you try with both g++ and clang++, again? Also, do all binaries in the
build_dir/bincrash, or just bitcoind? Also, can you compile and run a simple stand-alonestd::cout << "Hi"program?#29529 should resolve this issue.