cli_wallet and witness_node coredump via faucet #486

Closed
opened 2022-11-24 17:24:48 +00:00 by rilesdun · 8 comments
rilesdun commented 2022-11-24 17:24:48 +00:00 (Migrated from gitlab.com)

Expected Behavior

Accounts being created successfully via the latest fix to the faucet

Current Behavior

The current fix for the cli_wallet worked using curl to post an account creation test, but after @skesarwani91 conducted some testing, this caused the cli_wallet server and witness_node to coredump

Steps taken to cause issue

  1. Setup new testnet using 1.5.19 release with eth, bitcoin, and hive SONs
  2. Setup faucet following new procedures provided by @kake
  3. Created account via curl post worked fine, but at some point crashed/coredumped (possibly during some performance testing by @skesarwani91)

Context (Environment)

Peerplays version/release or git commit hash:
1.5.19

bunker@mint2:~/testnet/peerplays$ ./cli_wallet --version
Version: 1.5.19-1-g40aac3ba
Git Revision: 40aac3bafe80c63ab1657619b807afda21fd8a58
Built: Nov  7 2022 at 11:45:03
SSL: OpenSSL 1.1.1f  31 Mar 2020
Boost: 1.71
bunker@mint2:~/testnet/peerplays$ ./witness_node --version
Version: 1.5.19-1-g40aac3ba
Git Revision: 40aac3bafe80c63ab1657619b807afda21fd8a58
Built: Nov  7 2022 at 11:38:24
SSL: OpenSSL 1.1.1f  31 Mar 2020
Boost: 1.71

Logs

cli_wallet:

locked >>> here...
182999ms th_a       main.cpp:232                  operator()           ] .
here...
184538ms th_a       main.cpp:232                  operator()           ] .
here...
385789ms th_a       main.cpp:232                  operator()           ] .
here...
387147ms th_a       main.cpp:232                  operator()           ] .
here...
427719ms th_a       main.cpp:232                  operator()           ] .
here...
365188ms th_a       main.cpp:232                  operator()           ] .
365191ms th_a       websocket_api.cpp:155         on_message           ] e.to_detail_string(): 11 eof_exception: End Of File
stringstream
    {}
    th_a  sstream.cpp:66 readsome

    {"str":""}
    th_a  json.cpp:463 from_string
Server has disconnected us.
9 canceled_exception: Canceled

    {}
    th_a  thread_d.hpp:477 start_next_fiber
Segmentation fault (core dumped)

witness_node:
The coredump is available for witness_node, but no logs are provided and the witness_node continued somehow

core.cli_wallet.1000.9f09c52867b64a3daabaf0568dc6c6cf.51649.1669206302000000000000.lz4

## Expected Behavior Accounts being created successfully via the latest fix to the faucet ## Current Behavior The current fix for the cli_wallet worked using `curl` to post an account creation test, but after @skesarwani91 conducted some testing, this caused the cli_wallet server and witness_node to coredump ## Steps taken to cause issue 1. Setup new testnet using 1.5.19 release with eth, bitcoin, and hive SONs 1. Setup faucet following new procedures provided by @kake 1. Created account via curl post worked fine, but at some point crashed/coredumped (possibly during some performance testing by @skesarwani91) ## Context (Environment) Peerplays version/release or git commit hash: 1.5.19 ``` bunker@mint2:~/testnet/peerplays$ ./cli_wallet --version Version: 1.5.19-1-g40aac3ba Git Revision: 40aac3bafe80c63ab1657619b807afda21fd8a58 Built: Nov 7 2022 at 11:45:03 SSL: OpenSSL 1.1.1f 31 Mar 2020 Boost: 1.71 ``` ``` bunker@mint2:~/testnet/peerplays$ ./witness_node --version Version: 1.5.19-1-g40aac3ba Git Revision: 40aac3bafe80c63ab1657619b807afda21fd8a58 Built: Nov 7 2022 at 11:38:24 SSL: OpenSSL 1.1.1f 31 Mar 2020 Boost: 1.71 ``` ## Logs cli_wallet: ``` locked >>> here... 182999ms th_a main.cpp:232 operator() ] . here... 184538ms th_a main.cpp:232 operator() ] . here... 385789ms th_a main.cpp:232 operator() ] . here... 387147ms th_a main.cpp:232 operator() ] . here... 427719ms th_a main.cpp:232 operator() ] . here... 365188ms th_a main.cpp:232 operator() ] . 365191ms th_a websocket_api.cpp:155 on_message ] e.to_detail_string(): 11 eof_exception: End Of File stringstream {} th_a sstream.cpp:66 readsome {"str":""} th_a json.cpp:463 from_string Server has disconnected us. 9 canceled_exception: Canceled {} th_a thread_d.hpp:477 start_next_fiber Segmentation fault (core dumped) ``` witness_node: The coredump is available for witness_node, but no logs are provided and the witness_node continued somehow [core.cli_wallet.1000.9f09c52867b64a3daabaf0568dc6c6cf.51649.1669206302000000000000.lz4](/uploads/e99336f87da52c939fbf815f5deeba91/core.cli_wallet.1000.9f09c52867b64a3daabaf0568dc6c6cf.51649.1669206302000000000000.lz4)
rilesdun commented 2022-11-24 17:41:08 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
serkixenos commented 2022-12-02 02:21:56 +00:00 (Migrated from gitlab.com)

@kake Cant reproduce the error

Witness node started with default, all-in=one, config file from qa environment.

Cli wallet started with with ./cli_wallet --chain-id=7c1c72eb738b3ff1870350f85daca27e2d0f5dd25af27df7475fbd92815e421e, and is initialized as following:

set_password password
unlock password
import_key nathan 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
import_balance nathan ["*"] true
reserve_asset nathan 5000000000 TEST true
upgrade_account nathan true
create_account_with_brain_key "NODDER FIAT BALSAMY MOBED SUFFETE NEEDLER JULOID GOITRAL WIRRAH BUMMED TINFUL SIRKI CASS DODDIE PISSANT FORGIVE" account01 nathan nathan true
transfer nathan account01 50000000 TEST "Welcome payment" true
upgrade_account account01 true

Cli wallet restarted with ./cli_wallet --chain-id=7c1c72eb738b3ff1870350f85daca27e2d0f5dd25af27df7475fbd92815e421e -d -r 0.0.0.0:8091

Interraction with the wallet as following:

# Unlocking wallet
curl --silent --data '{"jsonrpc": "2.0", "method": "unlock", "params": ["password"], "id": 1}' http://127.0.0.1:8091/rpc | jq
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": null
}

# Creating user
curl --silent --data '{"jsonrpc": "2.0", "method": "create_account_with_brain_key", "params": ["CHARIER TAN HAFIZ PROPHET BREGMA PALLI MAGUARI DOSSAL MYXOMA RATABLY OWK SMALT CUARTA ACTIVIN CROUT CLOSURE", "account", "account01", "account01", "true"], "id": 1}' http://127.0.0.1:8091/rpc | jq
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "ref_block_num": 365,
    "ref_block_prefix": 4209493300,
    "expiration": "2022-12-02T02:20:30",
    "operations": [
      [
        5,
        {
          "fee": {
            "amount": 0,
            "asset_id": "1.3.0"
          },
          "registrar": "1.2.20",
          "referrer": "1.2.20",
          "referrer_percent": 0,
          "name": "account",
          "owner": {
            "weight_threshold": 1,
            "account_auths": [],
            "key_auths": [
              [
                "TEST5VEMezMNjQNs7jGsqrAYaf717KBxqgsJVW7crj1jyJD7f74WSz",
                1
              ]
            ],
            "address_auths": []
          },
          "active": {
            "weight_threshold": 1,
            "account_auths": [],
            "key_auths": [
              [
                "TEST7mJHKRxKaz92s96eBUu53G6YjwzPYVgGmdynG2sAPS4oSX2Acq",
                1
              ]
            ],
            "address_auths": []
          },
          "options": {
            "memo_key": "TEST7kD6grnpfV7HvfFCYUn3VZhD6gaX3ePFBPFtzUuZSeSduK9spp",
            "voting_account": "1.2.5",
            "num_witness": 0,
            "num_committee": 0,
            "votes": [],
            "extensions": {
              "num_son": [
                [
                  "bitcoin",
                  0
                ],
                [
                  "ethereum",
                  0
                ],
                [
                  "hive",
                  0
                ]
              ]
            }
          },
          "extensions": {}
        }
      ]
    ],
    "extensions": [],
    "signatures": [
      "202f0ea07e0d3c6891dac3963752021452f1c44594df55753121a17819eb1d1bfa264af0936ce729b29190f80e088808d28228098db9743faea1f1ea3b698960ea"
    ]
  }
}

# Retrieve newly created account
curl --silent --data '{"jsonrpc": "2.0", "method": "get_account", "params": ["account"], "id": 1}' http://127.0.0.1:8091/rpc | jq
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "id": "1.2.22",
    "membership_expiration_date": "1970-01-01T00:00:00",
    "registrar": "1.2.20",
    "referrer": "1.2.20",
    "lifetime_referrer": "1.2.20",
    "network_fee_percentage": 2000,
    "lifetime_referrer_fee_percentage": 3000,
    "referrer_rewards_percentage": 0,
    "name": "account",
    "owner": {
      "weight_threshold": 1,
      "account_auths": [],
      "key_auths": [
        [
          "TEST5VEMezMNjQNs7jGsqrAYaf717KBxqgsJVW7crj1jyJD7f74WSz",
          1
        ]
      ],
      "address_auths": []
    },
    "active": {
      "weight_threshold": 1,
      "account_auths": [],
      "key_auths": [
        [
          "TEST7mJHKRxKaz92s96eBUu53G6YjwzPYVgGmdynG2sAPS4oSX2Acq",
          1
        ]
      ],
      "address_auths": []
    },
    "options": {
      "memo_key": "TEST7kD6grnpfV7HvfFCYUn3VZhD6gaX3ePFBPFtzUuZSeSduK9spp",
      "voting_account": "1.2.5",
      "num_witness": 0,
      "num_committee": 0,
      "votes": [],
      "extensions": {
        "num_son": [
          [
            "bitcoin",
            0
          ],
          [
            "ethereum",
            0
          ],
          [
            "hive",
            0
          ]
        ]
      }
    },
    "statistics": "2.6.22",
    "whitelisting_accounts": [],
    "blacklisting_accounts": [],
    "whitelisted_accounts": [],
    "blacklisted_accounts": [],
    "owner_special_authority": [
      0,
      {}
    ],
    "active_special_authority": [
      0,
      {}
    ],
    "top_n_control_flags": 0
  }
}
@kake Cant reproduce the error Witness node started with default, all-in=one, config file from qa environment. Cli wallet started with with `./cli_wallet --chain-id=7c1c72eb738b3ff1870350f85daca27e2d0f5dd25af27df7475fbd92815e421e`, and is initialized as following: ``` set_password password unlock password import_key nathan 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3 import_balance nathan ["*"] true reserve_asset nathan 5000000000 TEST true upgrade_account nathan true create_account_with_brain_key "NODDER FIAT BALSAMY MOBED SUFFETE NEEDLER JULOID GOITRAL WIRRAH BUMMED TINFUL SIRKI CASS DODDIE PISSANT FORGIVE" account01 nathan nathan true transfer nathan account01 50000000 TEST "Welcome payment" true upgrade_account account01 true ``` Cli wallet restarted with `./cli_wallet --chain-id=7c1c72eb738b3ff1870350f85daca27e2d0f5dd25af27df7475fbd92815e421e -d -r 0.0.0.0:8091` Interraction with the wallet as following: ``` # Unlocking wallet curl --silent --data '{"jsonrpc": "2.0", "method": "unlock", "params": ["password"], "id": 1}' http://127.0.0.1:8091/rpc | jq { "id": 1, "jsonrpc": "2.0", "result": null } # Creating user curl --silent --data '{"jsonrpc": "2.0", "method": "create_account_with_brain_key", "params": ["CHARIER TAN HAFIZ PROPHET BREGMA PALLI MAGUARI DOSSAL MYXOMA RATABLY OWK SMALT CUARTA ACTIVIN CROUT CLOSURE", "account", "account01", "account01", "true"], "id": 1}' http://127.0.0.1:8091/rpc | jq { "id": 1, "jsonrpc": "2.0", "result": { "ref_block_num": 365, "ref_block_prefix": 4209493300, "expiration": "2022-12-02T02:20:30", "operations": [ [ 5, { "fee": { "amount": 0, "asset_id": "1.3.0" }, "registrar": "1.2.20", "referrer": "1.2.20", "referrer_percent": 0, "name": "account", "owner": { "weight_threshold": 1, "account_auths": [], "key_auths": [ [ "TEST5VEMezMNjQNs7jGsqrAYaf717KBxqgsJVW7crj1jyJD7f74WSz", 1 ] ], "address_auths": [] }, "active": { "weight_threshold": 1, "account_auths": [], "key_auths": [ [ "TEST7mJHKRxKaz92s96eBUu53G6YjwzPYVgGmdynG2sAPS4oSX2Acq", 1 ] ], "address_auths": [] }, "options": { "memo_key": "TEST7kD6grnpfV7HvfFCYUn3VZhD6gaX3ePFBPFtzUuZSeSduK9spp", "voting_account": "1.2.5", "num_witness": 0, "num_committee": 0, "votes": [], "extensions": { "num_son": [ [ "bitcoin", 0 ], [ "ethereum", 0 ], [ "hive", 0 ] ] } }, "extensions": {} } ] ], "extensions": [], "signatures": [ "202f0ea07e0d3c6891dac3963752021452f1c44594df55753121a17819eb1d1bfa264af0936ce729b29190f80e088808d28228098db9743faea1f1ea3b698960ea" ] } } # Retrieve newly created account curl --silent --data '{"jsonrpc": "2.0", "method": "get_account", "params": ["account"], "id": 1}' http://127.0.0.1:8091/rpc | jq { "id": 1, "jsonrpc": "2.0", "result": { "id": "1.2.22", "membership_expiration_date": "1970-01-01T00:00:00", "registrar": "1.2.20", "referrer": "1.2.20", "lifetime_referrer": "1.2.20", "network_fee_percentage": 2000, "lifetime_referrer_fee_percentage": 3000, "referrer_rewards_percentage": 0, "name": "account", "owner": { "weight_threshold": 1, "account_auths": [], "key_auths": [ [ "TEST5VEMezMNjQNs7jGsqrAYaf717KBxqgsJVW7crj1jyJD7f74WSz", 1 ] ], "address_auths": [] }, "active": { "weight_threshold": 1, "account_auths": [], "key_auths": [ [ "TEST7mJHKRxKaz92s96eBUu53G6YjwzPYVgGmdynG2sAPS4oSX2Acq", 1 ] ], "address_auths": [] }, "options": { "memo_key": "TEST7kD6grnpfV7HvfFCYUn3VZhD6gaX3ePFBPFtzUuZSeSduK9spp", "voting_account": "1.2.5", "num_witness": 0, "num_committee": 0, "votes": [], "extensions": { "num_son": [ [ "bitcoin", 0 ], [ "ethereum", 0 ], [ "hive", 0 ] ] } }, "statistics": "2.6.22", "whitelisting_accounts": [], "blacklisting_accounts": [], "whitelisted_accounts": [], "blacklisted_accounts": [], "owner_special_authority": [ 0, {} ], "active_special_authority": [ 0, {} ], "top_n_control_flags": 0 } } ```
serkixenos commented 2022-12-02 02:22:46 +00:00 (Migrated from gitlab.com)

@kake Please provide more information on the problem, including exact transaction and populated operation you are trying to execute.

@kake Please provide more information on the problem, including exact transaction and populated operation you are trying to execute.
kake commented 2022-12-02 06:03:36 +00:00 (Migrated from gitlab.com)

I can not reproduce this issue in my local qa environment.

...

On Fri, 2 Dec 2022 at 07:52, serkixenos (@serkixenos) gitlab@mg.gitlab.com wrote:

serkixenos https://gitlab.com/serkixenos commented
https://gitlab.com/PBSA/peerplays/-/issues/486#note_1193701905:

@kake https://gitlab.com/kake Please provide more information on the
problem, including exact transaction and populated operation you are trying
to execute.


Reply to this email directly or view it on GitLab
https://gitlab.com/PBSA/peerplays/-/issues/486#note_1193701905.
You're receiving this email because you have been mentioned on gitlab.com.
Unsubscribe
https://gitlab.com/-/sent_notifications/REDACTED/unsubscribe
from this thread · Manage all notifications
https://gitlab.com/-/profile/notifications · Help
https://gitlab.com/help

--
Jemshid | 9349101566

I can not reproduce this issue in my local qa environment. <details><summary>...</summary> On Fri, 2 Dec 2022 at 07:52, serkixenos (@serkixenos) <gitlab@mg.gitlab.com> wrote: > serkixenos <https://gitlab.com/serkixenos> commented > <https://gitlab.com/PBSA/peerplays/-/issues/486#note_1193701905>: > > @kake <https://gitlab.com/kake> Please provide more information on the > problem, including exact transaction and populated operation you are trying > to execute. > > — > Reply to this email directly or view it on GitLab > <https://gitlab.com/PBSA/peerplays/-/issues/486#note_1193701905>. > You're receiving this email because you have been mentioned on gitlab.com. > Unsubscribe > <https://gitlab.com/-/sent_notifications/REDACTED/unsubscribe> > from this thread · Manage all notifications > <https://gitlab.com/-/profile/notifications> · Help > <https://gitlab.com/help> > -- Jemshid | 9349101566 </details>
serkixenos commented 2022-12-06 12:15:39 +00:00 (Migrated from gitlab.com)

@kake Can we close this ticket then?

@kake Can we close this ticket then?
serkixenos commented 2022-12-06 12:15:57 +00:00 (Migrated from gitlab.com)

assigned to @serkixenos

assigned to @serkixenos
kake commented 2022-12-06 13:10:24 +00:00 (Migrated from gitlab.com)

@rilesdun

Is the issue reproducible?

...

On Tue, 6 Dec 2022 at 17:45, serkixenos (@serkixenos) gitlab@mg.gitlab.com wrote:

serkixenos https://gitlab.com/serkixenos commented on a discussion
https://gitlab.com/PBSA/peerplays/-/issues/486#note_1197998445:

@kake https://gitlab.com/kake Can we close this ticket then?


Reply to this email directly or view it on GitLab
https://gitlab.com/PBSA/peerplays/-/issues/486#note_1197998445.
You're receiving this email because you have been mentioned on gitlab.com.
Unsubscribe
https://gitlab.com/-/sent_notifications/REDACTED/unsubscribe
from this thread · Manage all notifications
https://gitlab.com/-/profile/notifications · Help
https://gitlab.com/help

--
Jemshid | 9349101566

@rilesdun Is the issue reproducible? <details><summary>...</summary> On Tue, 6 Dec 2022 at 17:45, serkixenos (@serkixenos) <gitlab@mg.gitlab.com> wrote: > serkixenos <https://gitlab.com/serkixenos> commented on a discussion > <https://gitlab.com/PBSA/peerplays/-/issues/486#note_1197998445>: > > @kake <https://gitlab.com/kake> Can we close this ticket then? > > — > Reply to this email directly or view it on GitLab > <https://gitlab.com/PBSA/peerplays/-/issues/486#note_1197998445>. > You're receiving this email because you have been mentioned on gitlab.com. > Unsubscribe > <https://gitlab.com/-/sent_notifications/REDACTED/unsubscribe> > from this thread · Manage all notifications > <https://gitlab.com/-/profile/notifications> · Help > <https://gitlab.com/help> > -- Jemshid | 9349101566 </details>
rilesdun commented 2022-12-07 20:03:32 +00:00 (Migrated from gitlab.com)

I have tried to reproduce this, but it doesn't seem like its reproducable - I believe the issue was due to lack of documentation regarding the cli_wallet server fix for the faucet.

I will monitor this on the new testnet, but it seems to be working fine as of now

I will mark this as closed and monitor it closely

I have tried to reproduce this, but it doesn't seem like its reproducable - I believe the issue was due to lack of documentation regarding the cli_wallet server fix for the faucet. I will monitor this on the new testnet, but it seems to be working fine as of now I will mark this as closed and monitor it closely
rilesdun (Migrated from gitlab.com) closed this issue 2022-12-07 20:03:35 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#486
No description provided.