KomodoPlatform / Agama

Discontinued software - DONT USE - only for educational purpose
https://komodoplatform.com
MIT License
32 stars 46 forks source link

0.2.41d macos RPC issue #97

Open njappboy opened 6 years ago

njappboy commented 6 years ago

I just upgraded Agama on my macOS High Sierra 10.13.6 (17G65).

screen shot 2018-08-29 at 8 58 23 pm

Debug.log (last 50 lines)

2018-08-30 00:51:06 init message: Loading block index...
2018-08-30 00:51:06 Opening LevelDB in /Users/<myuseraccount>/Library/Application Support/Komodo/blocks/index
2018-08-30 00:51:06 Opened LevelDB successfully
2018-08-30 00:51:06 Opening LevelDB in /Users/<myuseraccount>/Library/Application Support/Komodo/chainstate
2018-08-30 00:51:06 Opened LevelDB successfully
2018-08-30 00:51:06 Opening LevelDB in /Users/<myuseraccount>/Library/Application Support/Komodo/notarisations
2018-08-30 00:51:06 Opened LevelDB successfully
2018-08-30 00:51:06 LoadBlockIndexDB: start loading guts
2018-08-30 00:51:40 LoadBlockIndexDB: loaded guts
2018-08-30 00:51:42 LoadBlockIndexDB: last block file = 26
2018-08-30 00:51:42 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=16314, size=128644463, heights=966473...982685, time=2018-08-15...2018-08-26)
2018-08-30 00:51:42 Checking all blk files are present...
2018-08-30 00:51:48 LoadBlockIndexDB: transaction index enabled
2018-08-30 00:51:48 LoadBlockIndexDB: address index disabled
2018-08-30 00:51:48 LoadBlockIndexDB: timestamp index disabled
2018-08-30 00:51:48 LoadBlockIndexDB: spent index disabled
2018-08-30 00:51:49 LoadBlockIndexDB: hashBestChain=0814e1b108844b9939a9d0087cf3e79ee5f3f47c0c4457b84e5771f3e0ad6727 height=982685 date=2018-08-26 22:01:38 progress=0.995026
2018-08-30 00:51:49 init message: Rewinding blocks if needed...
2018-08-30 00:51:53 init message: Verifying blocks...
2018-08-30 00:51:53 Verifying last 288 blocks at level 3
2018-08-30 00:52:10 No coin database inconsistencies in last 289 blocks (1606 transactions)
2018-08-30 00:52:10  block index           64282ms
2018-08-30 00:52:10 init message: Loading wallet...
2018-08-30 00:52:10 nFileVersion = 1001550
2018-08-30 00:52:10 Keys: 155 plaintext, 0 encrypted, 155 w/ metadata, 155 total
2018-08-30 00:52:10 ZKeys: 1 plaintext, 0 encrypted, 1 w/metadata, 1 total
2018-08-30 00:52:11  wallet                   52ms
2018-08-30 00:52:11 init message: Activating best chain...
2018-08-30 00:52:11 mapBlockIndex.size() = 988871
2018-08-30 00:52:11 nBestHeight = 982685
2018-08-30 00:52:11 setKeyPool.size() = 101
2018-08-30 00:52:11 mapWallet.size() = 84
2018-08-30 00:52:11 mapAddressBook.size() = 100
2018-08-30 00:52:11 init message: Loading addresses...
2018-08-30 00:52:11 torcontrol thread start
2018-08-30 00:52:11 Loaded 25672 addresses from peers.dat  126ms
2018-08-30 00:52:11 dnsseed thread start
2018-08-30 00:52:11 net thread start
2018-08-30 00:52:11 addcon thread start
2018-08-30 00:52:11 opencon thread start
2018-08-30 00:52:11 msghand thread start
2018-08-30 00:52:11 init message: Done loading
2018-08-30 00:52:11 receive version message: /MagicBean:1.0.15/: version 170003, blocks=987153, us=73.194.145.125:50812, peer=1
2018-08-30 00:52:11 Added time data, samples 2, offset +0 (+0 minutes)
2018-08-30 00:52:12 receive version message: /MagicBean:1.0.15/: version 170003, blocks=987153, us=73.194.145.125:50814, peer=2
2018-08-30 00:52:12 Added time data, samples 3, offset -1 (+0 minutes)
2018-08-30 00:52:12 ConnectBlock: wrote 1 block notarisations in block: 03859f1a29a6e60f7fd95595f9341d80b2c09d7b0982b99eb4c404f04dcd2f3c
2018-08-30 00:52:12 UpdateTip: new best=03859f1a29a6e60f7fd95595f9341d80b2c09d7b0982b99eb4c404f04dcd2f3c  height=982686  log2_work=47.675654  tx=2735323  date=2018-08-26 22:03:10 progress=0.995027  cache=0.2MiB(19tx)
2018-08-30 00:52:12 ConnectBlock: wrote 3 block notarisations in block: 016994e4d66627ba6ab20f68c878122c482af279497005ca8e56cf24dfbf3ef6
2018-08-30 00:52:12 UpdateTip: new best=016994e4d66627ba6ab20f68c878122c482af279497005ca8e56cf24dfbf3ef6  height=982687  log2_work=47.675656  tx=2735334  date=2018-08-26 22:04:10 progress=0.995029  cache=0.6MiB(66tx)

komodod debug

call komodo_args.(/Applications/Agama.app/Contents/Resources/app/assets/bin/osx/komodod) NOTARY_PUBKEY.()
..............................................................................................................................................................................................finished loading blocks 
processing /Users/<myuseraccount>/Library/Application Support/Komodo/komodostate 122592KB, validated.-1
inds.0x200116000 validate /Users/<myuseraccount>/Library/Application Support/Komodo/komodostate.ind fsize.7746728 datalen.125534620 n.1936682 lastfpos.0
took 16 seconds to process /Users/<myuseraccount>/Library/Application Support/Komodo/komodostate 122592KB
dyld: lazy symbol binding failed: Symbol not found: ___emutls_get_address
  Referenced from: /Applications/Agama.app/Contents/Resources/app/assets/bin/osx/libgomp.1.dylib
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: ___emutls_get_address
  Referenced from: /Applications/Agama.app/Contents/Resources/app/assets/bin/osx/libgomp.1.dylib
  Expected in: /usr/lib/libSystem.B.dylib

komodod exited with code null, crashed?
njappboy commented 6 years ago

Problem still persists. @ca333 can anyone validate the version of libSystem.B.dylib that is expected by this version of Agama? I can do additional triage on my end.

Here is some additional information on libSystem.B.dylib

$otool -L /usr/lib/libSystem.B.dylib
/usr/lib/libSystem.B.dylib:
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.50.4)
    /usr/lib/system/libcache.dylib (compatibility version 1.0.0, current version 80.0.0)
    /usr/lib/system/libcommonCrypto.dylib (compatibility version 1.0.0, current version 60118.50.1)
    /usr/lib/system/libcompiler_rt.dylib (compatibility version 1.0.0, current version 62.0.0)
    /usr/lib/system/libcopyfile.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/system/libcorecrypto.dylib (compatibility version 1.0.0, current version 562.70.1)
    /usr/lib/system/libdispatch.dylib (compatibility version 1.0.0, current version 913.60.2)
    /usr/lib/system/libdyld.dylib (compatibility version 1.0.0, current version 551.4.0)
    /usr/lib/system/libkeymgr.dylib (compatibility version 1.0.0, current version 28.0.0)
    /usr/lib/system/liblaunch.dylib (compatibility version 1.0.0, current version 1205.70.9)
    /usr/lib/system/libmacho.dylib (compatibility version 1.0.0, current version 906.0.0)
    /usr/lib/system/libquarantine.dylib (compatibility version 1.0.0, current version 86.0.0)
    /usr/lib/system/libremovefile.dylib (compatibility version 1.0.0, current version 45.0.0)
    /usr/lib/system/libsystem_asl.dylib (compatibility version 1.0.0, current version 356.70.1)
    /usr/lib/system/libsystem_blocks.dylib (compatibility version 1.0.0, current version 67.0.0)
    /usr/lib/system/libsystem_c.dylib (compatibility version 1.0.0, current version 1244.50.9)
    /usr/lib/system/libsystem_configuration.dylib (compatibility version 1.0.0, current version 963.50.8)
    /usr/lib/system/libsystem_coreservices.dylib (compatibility version 1.0.0, current version 51.0.0)
    /usr/lib/system/libsystem_darwin.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/system/libsystem_dnssd.dylib (compatibility version 1.0.0, current version 878.70.2)
    /usr/lib/system/libsystem_info.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/system/libsystem_m.dylib (compatibility version 1.0.0, current version 3147.50.1)
    /usr/lib/system/libsystem_malloc.dylib (compatibility version 1.0.0, current version 140.50.6)
    /usr/lib/system/libsystem_network.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/system/libsystem_networkextension.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/system/libsystem_notify.dylib (compatibility version 1.0.0, current version 172.0.0)
    /usr/lib/system/libsystem_sandbox.dylib (compatibility version 1.0.0, current version 765.70.1)
    /usr/lib/system/libsystem_secinit.dylib (compatibility version 1.0.0, current version 30.0.0)
    /usr/lib/system/libsystem_kernel.dylib (compatibility version 1.0.0, current version 4570.71.2)
    /usr/lib/system/libsystem_platform.dylib (compatibility version 1.0.0, current version 161.50.1)
    /usr/lib/system/libsystem_pthread.dylib (compatibility version 1.0.0, current version 301.50.1)
    /usr/lib/system/libsystem_symptoms.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/system/libsystem_trace.dylib (compatibility version 1.0.0, current version 829.70.1)
    /usr/lib/system/libunwind.dylib (compatibility version 1.0.0, current version 35.3.0)
    /usr/lib/system/libxpc.dylib (compatibility version 1.0.0, current version 1205.70.9)

There is no ___emutls_get_address entry

$otool -v -I /usr/lib/libSystem.dylib
/usr/lib/libSystem.dylib:
Indirect symbols for (__TEXT,__stubs) 65 entries
address            index name
0x0000000000001b2e    36 ___error
0x0000000000001b34    37 ___keymgr_initializer
0x0000000000001b3a    38 ___libdarwin_init
0x0000000000001b40    39 ___libkernel_init
0x0000000000001b46    40 ___libplatform_init
0x0000000000001b4c    41 ___malloc_init
0x0000000000001b52    42 ___pthread_init
0x0000000000001b58    43 ___stack_logging_early_finished
0x0000000000001b5e    44 __asl_fork_child
0x0000000000001b64    46 __dyld_fork_child
0x0000000000001b6a    47 __dyld_initializer
0x0000000000001b70    48 __libSC_info_fork_child
0x0000000000001b76    49 __libSC_info_fork_parent
0x0000000000001b7c    50 __libSC_info_fork_prepare
0x0000000000001b82    51 __libc_fork_child
0x0000000000001b88    52 __libc_initializer
0x0000000000001b8e    53 __libcoreservices_fork_child
0x0000000000001b94    54 __libsecinit_initializer
0x0000000000001b9a    55 __libtrace_fork_child
0x0000000000001ba0    56 __libtrace_init
0x0000000000001ba6    57 __libxpc_initializer
0x0000000000001bac    58 __mach_fork_child
0x0000000000001bb2    59 __malloc_fork_child
0x0000000000001bb8    60 __malloc_fork_parent
0x0000000000001bbe    61 __malloc_fork_prepare
0x0000000000001bc4    62 __notify_fork_child
0x0000000000001bca    63 __pthread_atfork_child
0x0000000000001bd0    64 __pthread_atfork_child_handlers
0x0000000000001bd6    65 __pthread_atfork_parent
0x0000000000001bdc    66 __pthread_atfork_parent_handlers
0x0000000000001be2    67 __pthread_atfork_prepare
0x0000000000001be8    68 __pthread_atfork_prepare_handlers
0x0000000000001bee    71 _close
0x0000000000001bf4    72 _dispatch_atfork_child
0x0000000000001bfa    73 _dispatch_atfork_parent
0x0000000000001c00    74 _dispatch_atfork_prepare
0x0000000000001c06    76 _dyld_get_program_sdk_version
0x0000000000001c0c    78 _fork
0x0000000000001c12    80 _fsync
0x0000000000001c18    81 _getattrlist
0x0000000000001c1e    82 _getrlimit
0x0000000000001c24    83 _getxattr
0x0000000000001c2a    84 _libdispatch_init
0x0000000000001c30    86 _open
0x0000000000001c36    87 _pthread_attr_destroy
0x0000000000001c3c    88 _pthread_attr_init
0x0000000000001c42    89 _pthread_attr_setdetachstate
0x0000000000001c48    90 _pthread_create
0x0000000000001c4e    91 _pthread_mutex_lock
0x0000000000001c54    92 _pthread_mutex_unlock
0x0000000000001c5a    93 _pthread_self
0x0000000000001c60    94 _ptrace
0x0000000000001c66    95 _read
0x0000000000001c6c    97 _setattrlist
0x0000000000001c72    98 _setrlimit
0x0000000000001c78    99 _sigaction
0x0000000000001c7e   100 _stat
0x0000000000001c84   101 _strncmp
0x0000000000001c8a   102 _sysctl
0x0000000000001c90   103 _time
0x0000000000001c96   104 _unlink
0x0000000000001c9c   105 _write
0x0000000000001ca2   106 _xpc_atfork_child
0x0000000000001ca8   107 _xpc_atfork_parent
0x0000000000001cae   108 _xpc_atfork_prepare
Indirect symbols for (__DATA,__nl_symbol_ptr) 2 entries
address            index name
0x0000000000002000   109 dyld_stub_binder
0x0000000000002008 ABSOLUTE
Indirect symbols for (__DATA,__la_symbol_ptr) 65 entries
address            index name
0x0000000000002010    36 ___error
0x0000000000002018    37 ___keymgr_initializer
0x0000000000002020    38 ___libdarwin_init
0x0000000000002028    39 ___libkernel_init
0x0000000000002030    40 ___libplatform_init
0x0000000000002038    41 ___malloc_init
0x0000000000002040    42 ___pthread_init
0x0000000000002048    43 ___stack_logging_early_finished
0x0000000000002050    44 __asl_fork_child
0x0000000000002058    46 __dyld_fork_child
0x0000000000002060    47 __dyld_initializer
0x0000000000002068    48 __libSC_info_fork_child
0x0000000000002070    49 __libSC_info_fork_parent
0x0000000000002078    50 __libSC_info_fork_prepare
0x0000000000002080    51 __libc_fork_child
0x0000000000002088    52 __libc_initializer
0x0000000000002090    53 __libcoreservices_fork_child
0x0000000000002098    54 __libsecinit_initializer
0x00000000000020a0    55 __libtrace_fork_child
0x00000000000020a8    56 __libtrace_init
0x00000000000020b0    57 __libxpc_initializer
0x00000000000020b8    58 __mach_fork_child
0x00000000000020c0    59 __malloc_fork_child
0x00000000000020c8    60 __malloc_fork_parent
0x00000000000020d0    61 __malloc_fork_prepare
0x00000000000020d8    62 __notify_fork_child
0x00000000000020e0    63 __pthread_atfork_child
0x00000000000020e8    64 __pthread_atfork_child_handlers
0x00000000000020f0    65 __pthread_atfork_parent
0x00000000000020f8    66 __pthread_atfork_parent_handlers
0x0000000000002100    67 __pthread_atfork_prepare
0x0000000000002108    68 __pthread_atfork_prepare_handlers
0x0000000000002110    71 _close
0x0000000000002118    72 _dispatch_atfork_child
0x0000000000002120    73 _dispatch_atfork_parent
0x0000000000002128    74 _dispatch_atfork_prepare
0x0000000000002130    76 _dyld_get_program_sdk_version
0x0000000000002138    78 _fork
0x0000000000002140    80 _fsync
0x0000000000002148    81 _getattrlist
0x0000000000002150    82 _getrlimit
0x0000000000002158    83 _getxattr
0x0000000000002160    84 _libdispatch_init
0x0000000000002168    86 _open
0x0000000000002170    87 _pthread_attr_destroy
0x0000000000002178    88 _pthread_attr_init
0x0000000000002180    89 _pthread_attr_setdetachstate
0x0000000000002188    90 _pthread_create
0x0000000000002190    91 _pthread_mutex_lock
0x0000000000002198    92 _pthread_mutex_unlock
0x00000000000021a0    93 _pthread_self
0x00000000000021a8    94 _ptrace
0x00000000000021b0    95 _read
0x00000000000021b8    97 _setattrlist
0x00000000000021c0    98 _setrlimit
0x00000000000021c8    99 _sigaction
0x00000000000021d0   100 _stat
0x00000000000021d8   101 _strncmp
0x00000000000021e0   102 _sysctl
0x00000000000021e8   103 _time
0x00000000000021f0   104 _unlink
0x00000000000021f8   105 _write
0x0000000000002200   106 _xpc_atfork_child
0x0000000000002208   107 _xpc_atfork_parent
0x0000000000002210   108 _xpc_atfork_prepare

gcc information:

$gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/c++/4.2.1
Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
njappboy commented 6 years ago

Still unresolved on my end

barbierir commented 6 years ago

I'm having the same issue with 0.2.41d-beta on Ubuntu 18.04