Skip to content

Instantly share code, notes, and snippets.

@martinhbramwell
Created May 17, 2012 14:14
Show Gist options
  • Save martinhbramwell/2719187 to your computer and use it in GitHub Desktop.
Save martinhbramwell/2719187 to your computer and use it in GitHub Desktop.
Ugly Buggly #2
chef@cgf:~$
chef@cgf:~$
chef@cgf:~$
chef@cgf:~$
chef@cgf:~$ mkdir -p ~/.ot && sudo make uninstall && make clean && make DSP=1 java && make DSP=1 && sudo make install
:
:
:
make[1]: Leaving directory `/home/chef/ot/Open-Transactions/util/signcontract'
Done!
mkdir -p /usr/local/bin
rm -f /usr/local/bin/ot_server && cp ./transaction/transaction.exe /usr/local/bin/ot_server
rm -f /usr/local/bin/ot && cp ./testwallet/testwallet.exe /usr/local/bin/ot
mkdir ~chef/.ot && cp -r ./ot-sample-data/* ~chef/.ot && chown -R chef: ~chef/.ot
chef@cgf:~$
chef@cgf:~$
chef@cgf:~$
chef@cgf:~$
chef@cgf:~/ot/Open-Transactions$ cd ~
chef@cgf:~$
chef@cgf:~$
chef@cgf:~$
chef@cgf:~$
chef@cgf:~$ ot_server
Welcome to Open Transactions... Test Server -- version 0.80f
(transport build: OTMessage -> OTEnvelope -> ZMQ )
server main: Reading ini file (/home/chef/.ot/ot_init.cfg).
Found Server data_folder path: ~/.ot/server_data
Using data_folder path: /home/chef/.ot/server_data
Now loading the server nym, which will also ask you for a password, to unlock
its private key. (Default password is "".)
Setting logfile: /home/chef/.ot/log-server.log
Setting log level: 0
Setting cron refill_trans_number: 500
Setting cron ms_between_cron_beats: 10000
Setting heartbeat_no_requests: 10
Setting heartbeat ms_between_beats: 100
Setting latency blocking: false
Setting latency send_fail_no_tries: 2
Setting latency send_fail_max_ms: 5000
Setting permissions override_nym_id: T1Q3wZWgeTUoaUvn9m1lzIK5tn5wITlzxzrGNI8qtaV
Setting markets minimum_scale: 1
Setting security master_key_timeout: -1
Setting permissions admin_usage_credits to: false
Setting permissions admin_server_locked to: false
Setting permissions cmd_usage_credits to: false
Setting permissions cmd_issue_asset to: true
Setting permissions cmd_get_contract to: true
Setting permissions cmd_check_server_id to: true
Setting permissions cmd_create_user_acct to: true
Setting permissions cmd_del_user_acct to: true
Setting permissions cmd_check_user to: true
Setting permissions cmd_get_request to: true
Setting permissions cmd_get_trans_num to: true
Setting permissions cmd_send_message to: true
Setting permissions cmd_get_nymbox to: true
Setting permissions cmd_process_nymbox to: true
Setting permissions cmd_create_asset_acct to: true
Setting permissions cmd_del_asset_acct to: true
Setting permissions cmd_get_acct to: true
Setting permissions cmd_get_inbox to: true
Setting permissions cmd_get_outbox to: true
Setting permissions cmd_process_inbox to: true
Setting permissions cmd_issue_basket to: false
Setting permissions transact_exchange_basket to: true
Setting permissions cmd_notarize_transaction to: true
Setting permissions transact_process_inbox to: true
Setting permissions transact_transfer to: true
Setting permissions transact_withdrawal to: true
Setting permissions transact_deposit to: true
Setting permissions transact_withdraw_voucher to: true
Setting permissions transact_deposit_cheque to: true
Setting permissions cmd_get_mint to: true
Setting permissions transact_withdraw_cash to: true
Setting permissions transact_deposit_cash to: true
Setting permissions cmd_get_market_list to: true
Setting permissions cmd_get_market_offers to: true
Setting permissions cmd_get_market_recent_trades to: true
Setting permissions cmd_get_nym_market_offers to: true
Setting permissions transact_market_offer to: true
Setting permissions transact_payment_plan to: true
Setting permissions transact_cancel_cron_item to: true
Setting permissions transact_smart_contract to: true
Setting permissions cmd_trigger_clause to: true
OTDB::InitDefaultStorage: Existing storage context doesn't already exist. (Creating it.)
StorageFS::Init: New path segments are: /home/chef/.ot/server_data notaryServer.xml
Created folder: /home/chef/.ot/server_data/smartcontracts
Created folder: /home/chef/.ot/server_data/spent
Loading Open Transactions server. File version: 1.0
Last Issued Transaction Number: 579
ServerID:
tBy5mL14qSQXCJK7Uz3WlTOKRP9M0JZksA3Eg7EnnQ1
PLEASE SIGN YOUR PASSPHRASE, for: "OTAsymmetricKey::LoadPrivateKeyFromCertString is calling PEM_read_bio_PrivateKey..."
(OT) passphrase:
*** glibc detected *** ot_server: malloc(): memory corruption: 0x0000000002736cb0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7a87a)[0x7f12a982887a]
/lib/x86_64-linux-gnu/libc.so.6(__libc_malloc+0x6e)[0x7f12a982ae1e]
/usr/local/lib/libcrypto.so.1.0.0(CRYPTO_malloc+0x5e)[0x7f12ab0b668e]
/usr/local/lib/libcrypto.so.1.0.0(EVP_CipherInit_ex+0x329)[0x7f12ab141fe9]
/usr/local/lib/libcrypto.so.1.0.0(PEM_do_header+0xee)[0x7f12ab16e4ce]
/usr/local/lib/libcrypto.so.1.0.0(PEM_bytes_read_bio+0x3ca)[0x7f12ab16ff1a]
/usr/local/lib/libcrypto.so.1.0.0(PEM_read_bio_PrivateKey+0x7f)[0x7f12ab171ddf]
ot_server[0x566eed]
ot_server[0x5673b2]
ot_server[0x4e0e8a]
ot_server[0x46637c]
ot_server[0x467013]
ot_server[0x4661e6]
ot_server[0x492ff4]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xff)[0x7f12a97cceff]
ot_server[0x454c09]
======= Memory map: ========
00400000-009a1000 r-xp 00000000 08:02 3278713 /usr/local/bin/ot_server
00ba1000-00bc2000 r--p 005a1000 08:02 3278713 /usr/local/bin/ot_server
00bc2000-00bc4000 rw-p 005c2000 08:02 3278713 /usr/local/bin/ot_server
00bc4000-00bc5000 rw-p 00000000 00:00 0
0270b000-0274d000 rw-p 00000000 00:00 0 [heap]
7f12a4000000-7f12a4021000 rw-p 00000000 00:00 0
7f12a4021000-7f12a8000000 ---p 00000000 00:00 0
7f12a8dea000-7f12a9189000 rw-p 00000000 00:00 0
7f12a9189000-7f12a918d000 r-xp 00000000 08:02 1993024 /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f12a918d000-7f12a938c000 ---p 00004000 08:02 1993024 /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f12a938c000-7f12a938d000 r--p 00003000 08:02 1993024 /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f12a938d000-7f12a938e000 rw-p 00004000 08:02 1993024 /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f12a938e000-7f12a93a5000 r-xp 00000000 08:02 1992997 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7f12a93a5000-7f12a95a4000 ---p 00017000 08:02 1992997 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7f12a95a4000-7f12a95a5000 r--p 00016000 08:02 1992997 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7f12a95a5000-7f12a95a6000 rw-p 00017000 08:02 1992997 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7f12a95a6000-7f12a95ad000 r-xp 00000000 08:02 1993295 /lib/x86_64-linux-gnu/librt-2.13.so
7f12a95ad000-7f12a97ac000 ---p 00007000 08:02 1993295 /lib/x86_64-linux-gnu/librt-2.13.so
7f12a97ac000-7f12a97ad000 r--p 00006000 08:02 1993295 /lib/x86_64-linux-gnu/librt-2.13.so
7f12a97ad000-7f12a97ae000 rw-p 00007000 08:02 1993295 /lib/x86_64-linux-gnu/librt-2.13.so
7f12a97ae000-7f12a9938000 r-xp 00000000 08:02 1993175 /lib/x86_64-linux-gnu/libc-2.13.so
7f12a9938000-7f12a9b38000 ---p 0018a000 08:02 1993175 /lib/x86_64-linux-gnu/libc-2.13.so
7f12a9b38000-7f12a9b3c000 r--p 0018a000 08:02 1993175 /lib/x86_64-linux-gnu/libc-2.13.so
7f12a9b3c000-7f12a9b3d000 rw-p 0018e000 08:02 1993175 /lib/x86_64-linux-gnu/libc-2.13.so
7f12a9b3d000-7f12a9b43000 rw-p 00000000 00:00 0
7f12a9b43000-7f12a9b58000 r-xp 00000000 08:02 1993026 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f12a9b58000-7f12a9d57000 ---p 00015000 08:02 1993026 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f12a9d57000-7f12a9d58000 r--p 00014000 08:02 1993026 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f12a9d58000-7f12a9d59000 rw-p 00015000 08:02 1993026 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f12a9d59000-7f12a9ddd000 r-xp 00000000 08:02 1993212 /lib/x86_64-linux-gnu/libm-2.13.so
7f12a9ddd000-7f12a9fdc000 ---p 00084000 08:02 1993212 /lib/x86_64-linux-gnu/libm-2.13.so
7f12a9fdc000-7f12a9fdd000 r--p 00083000 08:02 1993212 /lib/x86_64-linux-gnu/libm-2.13.so
7f12a9fdd000-7f12a9fde000 rw-p 00084000 08:02 1993212 /lib/x86_64-linux-gnu/libm-2.13.so
7f12a9fde000-7f12aa0c6000 r-xp 00000000 08:02 3581516 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.14
7f12aa0c6000-7f12aa2c5000 ---p 000e8000 08:02 3581516 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.14
7f12aa2c5000-7f12aa2cd000 r--p 000e7000 08:02 3581516 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.14
7f12aa2cd000-7f12aa2cf000 rw-p 000ef000 08:02 3581516 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.14
7f12aa2cf000-7f12aa2e4000 rw-p 00000000 00:00 0
7f12aa2e4000-7f12aa2fc000 r-xp 00000000 08:02 1993293 /lib/x86_64-linux-gnu/libpthread-2.13.so
7f12aa2fc000-7f12aa4fc000 ---p 00018000 08:02 1993293 /lib/x86_64-linux-gnu/libpthread-2.13.so
7f12aa4fc000-7f12aa4fd000 r--p 00018000 08:02 1993293 /lib/x86_64-linux-gnu/libpthread-2.13.so
7f12aa4fd000-7f12aa4fe000 rw-p 00019000 08:02 1993293 /lib/x86_64-linux-gnu/libpthread-2.13.so
7f12aa4fe000-7f12aa502000 rw-p 00000000 00:00 0
7f12aa502000-7f12aa504000 r-xp 00000000 08:02 1993206 /lib/x86_64-linux-gnu/libdl-2.13.so
7f12aa504000-7f12aa704000 ---p 00002000 08:02 1993206 /lib/x86_64-linux-gnu/libdl-2.13.so
7f12aa704000-7f12aa705000 r--p 00002000 08:02 1993206 /lib/x86_64-linux-gnu/libdl-2.13.so
7f12aa705000-7f12aa706000 rw-p 00003000 08:02 1993206 /lib/x86_64-linux-gnu/libdl-2.13.so
7f12aa706000-7f12aa739000 r-xp 00000000 08:02 9316956 /usr/local/lib/libzmq.so.1.0.1
7f12aa739000-7f12aa939000 ---p 00033000 08:02 9316956 /usr/local/lib/libzmq.so.1.0.1
7f12aa939000-7f12aa93c000 r--p 00033000 08:02 9316956 /usr/local/lib/libzmq.so.1.0.1
7f12aa93c000-7f12aa93d000 rw-p 00036000 08:02 9316956 /usr/local/lib/libzmq.so.1.0.1
7f12aa93d000-7f12aa942000 r-xp 00000000 08:02 9186628 /usr/local/lib/libmsgpack.so.3.0.0
7f12aa942000-7f12aab41000 ---p 00005000 08:02 9186628 /usr/local/lib/libmsgpack.so.3.0.0
7f12aab41000-7f12aab42000 r--p 00004000 08:02 9186628 /usr/local/lib/libmsgpack.so.3.0.0
7f12aab42000-7f12aab43000 rw-p 00005000 08:02 9186628 /usr/local/lib/libmsgpack.so.3.0.0
7f12aab43000-7f12aac2e000 r-xp 00000000 08:02 9579603 /usr/local/lib/libprotobuf.so.7.0.0
7f12aac2e000-7f12aae2d000 ---p 000eb000 08:02 9579603 /usr/local/lib/libprotobuf.so.7.0.0
7f12aae2d000-7f12aae31000 r--p 000ea000 08:02 9579603 /usr/local/lib/libprotobuf.so.7.0.0
7f12aae31000-7f12aae34000 rw-p 000ee000 08:02 9579603 /usr/local/lib/libprotobuf.so.7.0.0Aborted
chef@cgf:~$
chef@cgf:~$
chef@cgf:~$
chef@cgf:~$
chef@cgf:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment