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

Most upvoted comments

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/bin crash, or just bitcoind? Also, can you compile and run a simple stand-alone std::cout << "Hi" program?

When building with gcc 11.2.0p9:

#29529 should resolve this issue.