Skip to content

Instantly share code, notes, and snippets.

@fanquake
fanquake / crash.md
Last active February 21, 2020 07:28
2020-02-21T06:47:47.246113Z [scheduler] UpdatedBlockTip: new block hash=00000000000000001264cb5b03b34447d49fb4da4892790a2c17d3c202124e98 fork block hash=000000000000000010800ae86eb74401b90f58c7296feb77c5587faae580930b (in IBD=true)
2020-02-21T06:47:47.246291Z [httpworker.3] BerkeleyEnvironment::Flush: [/Users/michael/Library/Application Support/Bitcoin/test] Flush(false)
2020-02-21T06:47:47.246397Z [scheduler] BlockConnected: block hash=000000000000000009acd4874e2be8e8a7b1d7e793c23ef2e91651a8d62620e1 block height=351323
2020-02-21T06:47:47.246480Z [httpworker.3] BerkeleyEnvironment::Flush: Flushing wallet.dat (refcount = 0)...
2020-02-21T06:47:47.246987Z [scheduler] [default wallet] SCHED: bool CWallet::AddToWalletIfInvolvingMe(const CTransactionRef &, CWalletTx::Confirmation, bool)
2020-02-21T06:47:47.259517Z [httpworker.3] BerkeleyEnvironment::Flush: wallet.dat checkpoint
2020-02-21T06:47:47.259649Z [scheduler] [default wallet] SCHED: bool CWallet::AddToWalletIfInvolvingMe(const CTransactionRef &, C

nm -D --defined-only librt-2.28.so

--- /arm32.txt
+++ /arm64.txt
@@ -1,30 +1,24 @@
-A GLIBC_2.4
-A GLIBC_2.7
+A GLIBC_2.17
 T __mq_open_2
 T aio_cancel
@fanquake
fanquake / no_network.md
Created December 12, 2019 01:45
Removing networking features from the Qt build
-s GCC_except_table0
-s GCC_except_table106
-s GCC_except_table11
-s GCC_except_table120
-s GCC_except_table120
-s GCC_except_table126
-s GCC_except_table24
-s GCC_except_table25
-s GCC_except_table29
make qt -C depends/ -j10 --keep-going
Building qt...
cd tools/bootstrap/ && ( test -e Makefile || /Users/michael/github/bitcoin/depends/work/build/x86_64-apple-darwin18.7.0/qt/5.12.6-9792c5f0a7e/qtbase/bin/qmake -o Makefile /Users/michael/github/bitcoin/depends/work/build/x86_64-apple-darwin18.7.0/qt/5.12.6-9792c5f0a7e/qtbase/src/tools/bootstrap/bootstrap.pro ) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile
cd 3rdparty/libpng/ && ( test -e Makefile || /Users/michael/github/bitcoin/depends/work/build/x86_64-apple-darwin18.7.0/qt/5.12.6-9792c5f0a7e/qtbase/bin/qmake -o Makefile /Users/michael/github/bitcoin/depends/work/build/x86_64-apple-darwin18.7.0/qt/5.12.6-9792c5f0a7e/qtbase/src/3rdparty/libpng/libpng.pro ) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile
cd 3rdparty/pcre2/ && ( test -e Makefile || /Users/michael/github/bitcoin/depends/work/build/x86_64-apple-darwin18.7.0/qt/5.12.6-9792c5f0a7e/qtbase/bin/qmake -o Makefile /Users/michael/github/bitcoin/de
aarch64  arm  i686-pc  risvc  symbol-check.py  x86_64
root@557096f567b5:/test# find aarch64/ -type f -executable | xargs python3 symbol-check.py
['libpthread.so.0', 'libm.so.6', 'libgcc_s.so.1', 'libc.so.6', 'ld-linux-aarch64.so.1']
['libpthread.so.0', 'libfontconfig.so.1', 'libfreetype.so.6', 'libxcb.so.1', 'libdl.so.2', 'libm.so.6', 'libgcc_s.so.1', 'libc.so.6', 'ld-linux-aarch64.so.1']
['libpthread.so.0', 'libm.so.6', 'libgcc_s.so.1', 'libc.so.6', 'ld-linux-aarch64.so.1']
['libpthread.so.0', 'libm.so.6', 'libgcc_s.so.1', 'libc.so.6', 'ld-linux-aarch64.so.1']
['libpthread.so.0', 'libm.so.6', 'libgcc_s.so.1', 'libc.so.6', 'ld-linux-aarch64.so.1']
['libpthread.so.0', 'libm.so.6', 'libgcc_s.so.1', 'libc.so.6', 'ld-linux-aarch64.so.1']
root@557096f567b5:/test# find arm -type f -executable | xargs python3 symbol-check.py
Configuring qt...

Creating qmake...

make[1]: Entering directory '/home/travis/build/bitcoin/bitcoin/depends/work/build/arm-linux-gnueabihf/qt/5.9.8-73ee9296876/qtbase/qmake'

In file included from /home/travis/build/bitcoin/bitcoin/depends/work/build/arm-linux-gnueabihf/qt/5.9.8-73ee9296876/qtbase/include/QtCore/qvector.h:1:0,

                 from /home/travis/build/bitcoin/bitcoin/depends/work/build/arm-linux-gnueabihf/qt/5.9.8-73ee9296876/qtbase/qmake/library/proitems.h:35,
```diff
--- dbus.txt
+++ nodbus.txt
@@ -722,15 +722,14 @@
s GCC_except_table10
s GCC_except_table10
s GCC_except_table10
s GCC_except_table10
s GCC_except_table10
s GCC_except_table10
nm -C src/qt/bitcoin-qt | grep -i ssl
                 U _OBJC_CLASS_$_NSSlider
0000000100f3fa80 T _OPENSSL_atomic_add
0000000100f3fc20 T _OPENSSL_cleanse
0000000100f3e4b0 T _OPENSSL_cpuid_setup
000000010178d538 b _OPENSSL_cpuid_setup.trigger
0000000100f3fab0 T _OPENSSL_ia32_cpuid
0000000100f3fcf0 T _OPENSSL_ia32_rdrand
0000000101781698 s _OPENSSL_ia32cap_P
nm -C src/qt/bitcoin-qt | grep -i ssl
00000000012b88d0 T DH_OpenSSL
00000000012b7040 T DSA_OpenSSL
000000000128d4f0 T DSO_METHOD_openssl
00000000012ba760 T ECDH_OpenSSL
000000000128c1b0 T ECDSA_OpenSSL
0000000001ed5d98 B OPENSSL_NONPIC_relocated
000000000129efb0 T OPENSSL_asc2uni
000000000126ce10 T OPENSSL_atomic_add
nm -C src/qt/bitcoin-qt.exe | grep -i ssl

0000000001dab060 r .rdata$IID_ID3D11ClassLinkage
0000000001dac7e0 r .rdata$IID_IProcessLock
00000000011dd2d0 T DH_OpenSSL
00000000011db9c0 T DSA_OpenSSL
00000000011e02d0 T DSO_METHOD_openssl
00000000011df440 T ECDH_OpenSSL
00000000011aa840 T ECDSA_OpenSSL