Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"monitor" Segmentation Violation #193

Open
Flo354 opened this issue Dec 30, 2023 · 0 comments
Open

"monitor" Segmentation Violation #193

Flo354 opened this issue Dec 30, 2023 · 0 comments

Comments

@Flo354
Copy link

Flo354 commented Dec 30, 2023

Hello,

Few seconds after starting "monitor", the program crashes with a "SIGSEV" error.

% vigilante monitor --config /home/babylon/.vigilante/vigilante.yml --genesis /home/babylon/.babylond/config/genesis.json                                        
INFO[2023-12-30T13:17:49Z] Successfully loaded config file at /home/babylon/.vigilante/vigilante.yml  module=config
INFO[2023-12-30T13:17:49Z] Successfully created the BTC client and connected to the BTC server  module=btcclient
INFO[2023-12-30T13:17:49Z] Successfully generated TLS certificates for the RPC server  module=rpcserver
INFO[2023-12-30T13:17:49Z] the Monitor is started                        module=monitor
INFO[2023-12-30T13:17:49Z] liveness checker is started, checking liveness every 100 seconds  module=monitor
INFO[2023-12-30T13:17:49Z] Successfully started the GRPC server at 127.0.0.1:8080  module=rpcserver
INFO[2023-12-30T13:17:49Z] the BTC scanner is started                    module=btcscanner
INFO[2023-12-30T13:17:49Z] the bootstrapping starts at 793155            module=btcscanner
INFO[2023-12-30T13:17:49Z] Successfully started Prometheus metrics server at 127.0.0.1:2112  module=metrics
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x20eb27c]

goroutine 75 [running]:
github.com/babylonchain/vigilante/monitor/btcscanner.(*BtcScanner).Bootstrap(0xc0005d6100)
	/home/babylon/vigilante/monitor/btcscanner/btc_scanner.go:185 +0x35c
created by github.com/babylonchain/vigilante/monitor/btcscanner.(*BtcScanner).Start
	/home/babylon/vigilante/monitor/btcscanner/btc_scanner.go:78 +0x85
zsh: exit 2     vigilante monitor --config /home/babylon/.vigilante/vigilante.yml --genesis 

Below is my vigilante.yml file if it is of some use:

common:
  retry-sleep-time: 1s
  max-retry-sleep-time: 1m
btc:
  no-client-tls: true
  ca-file: ~
  endpoint: localhost:8332
  estimate-mode: CONSERVATIVE
  tx-fee-max: 20000 # maximum tx fee, 20,000sat/kvb
  tx-fee-min: 1000 # minimum tx fee, 1,000sat/kvb
  default-fee: 1000 # 1,000sat/kvb
  target-block-num: 2
  wallet-endpoint: ~
  wallet-password: CONCEALED
  wallet-name: CONCEALED
  wallet-lock-time: 10
  wallet-ca-file: ~
  net-params: regtest
  username: CONCEALED
  password: CONCEALED
  reconnect-attempts: 3
  btc-backend: bitcoind
  zmq-endpoint: tcp://localhost:29000
babylon:
  key: CONCEALED
  chain-id: bbn-test-2
  rpc-addr: http://localhost:16457
  grpc-addr: http://localhost:16458
  account-prefix: bbn
  keyring-backend: test
  gas-adjustment: 1.2
  gas-prices: 2ubbn
  key-directory: /home/babylon/.babylond
  debug: true
  timeout: 20s
  block-timeout: ~
  output-format: json
  submitter-address: CONCEALED
  sign-mode: direct
grpc:
  onetime-tls-key: true
  rpc-key: ""
  rpc-cert: /home/babylon/.vigilante/rpc.cert
  endpoints:
    - localhost:8080
grpcweb:
  placeholder: grpcwebconfig
metrics:
  host: 127.0.0.1
  server-port: 2112
submitter:
  netparams: regtest
  buffer-size: 100
  resubmit-fee-multiplier: 1
  polling-interval-seconds: 60
  resend-interval-seconds: 1800
reporter:
  netparams: regtest
monitor:
  checkpoint-buffer-size: 1000
  btc-block-buffer-size: 1000
  btc-cache-size: 1000
  btc-confirmation-depth: 6
  liveness-check-interval-seconds: 100
  max-live-btc-heights: 200
  liveness-checker: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant