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

panic when loading bview into rotonda #94

Open
ties opened this issue Nov 22, 2024 · 0 comments
Open

panic when loading bview into rotonda #94

ties opened this issue Nov 22, 2024 · 0 comments

Comments

@ties
Copy link

ties commented Nov 22, 2024

I am trying to load a bview into rotonda. On some runs, it succeeds. On others, it crashes:

http_listen = ["127.0.0.1:8080"]

[units.mrt-in]
type = "mrt-file-in"
# https://data.ris.ripe.net/rrc00/latest-bview.gz
filename = "../bview/latest-bview-rrc00"

[units.rib]
type = "rib"
sources = ["mrt-in"]

[targets.null]
type = "null-out"
sources = "rib"

Failure case

$ RUST_BACKTRACE=full rotonda --config rotonda.toml
no roto scripts path to load filters from
Listening for HTTP connections on 127.0.0.1:8080
Starting target 'null'
Starting unit 'rib'
Starting unit 'mrt-in'
All components are ready.
All components are running.
processing ../bview/latest-bview-rrc00
thread 'tokio-runtime-worker' panicked at ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rotonda-0.2.0/src/units/rib_unit/unit.rs:1102:61:
called `Result::unwrap()` on an `Err` value: OutOfRangeError(())
stack backtrace:
   0:        0x102831f60 - __mh_execute_header
   1:        0x10284fc68 - __mh_execute_header
   2:        0x10282ed68 - __mh_execute_header
   3:        0x1028330dc - __mh_execute_header
   4:        0x102832c8c - __mh_execute_header
   5:        0x102833b58 - __mh_execute_header
   6:        0x102833584 - __mh_execute_header
   7:        0x102832424 - __mh_execute_header
   8:        0x10283324c - __mh_execute_header
   9:        0x1028907d4 - __mh_execute_header
  10:        0x102890b64 - __mh_execute_header
  11:        0x102280e6c - __mh_execute_header
  12:        0x10227eff4 - __mh_execute_header
  13:        0x10228b134 - __mh_execute_header
  14:        0x10234aa50 - __mh_execute_header
  15:        0x1021affc0 - __mh_execute_header
  16:        0x10218ad90 - __mh_execute_header
  17:        0x102167e28 - __mh_execute_header
  18:        0x10214456c - __mh_execute_header
  19:        0x1027b2e3c - __mh_execute_header
  20:        0x1027b2788 - __mh_execute_header
  21:        0x1027be4b8 - __mh_execute_header
  22:        0x1027ad4cc - __mh_execute_header
  23:        0x1027b20c8 - __mh_execute_header
  24:        0x1027a36c4 - __mh_execute_header
  25:        0x102797b9c - __mh_execute_header
  26:        0x1027b7588 - __mh_execute_header
  27:        0x1027bc058 - __mh_execute_header
  28:        0x10279e504 - __mh_execute_header
  29:        0x102835cc8 - __mh_execute_header
  30:        0x188aeb2e4 - __pthread_deallocate
Gate[mrt-in (c21ee848-7732-4b91-b88a-e8c64d849bb1 clone of 8a31d9da-ce5f-4142-a25c-84c085153fd1)]: Failed to attach clone to parent c21ee848-7732-4b91-b88a-e8c64d849bb1
^CCTRL-C (SIGINT) received, shutting down.
Stopping unit 'mrt-in'
Stopping unit 'rib'
Stopping target 'null'

Successful case

$ rotonda --config rotonda.toml
no roto scripts path to load filters from
Listening for HTTP connections on 127.0.0.1:8080
Starting target 'null'
Starting unit 'rib'
Starting unit 'mrt-in'
All components are ready.
All components are running.
processing ../bview/latest-bview-rrc00

mrt-in: done processing ../bview/latest-bview-rrc00, emitted 51050483 routes in 103s
ca^CCTRL-C (SIGINT) received, shutting down.
Stopping unit 'rib'
Stopping unit 'mrt-in'
terminating unit, processed ["../bview/latest-bview-rrc00"]
Stopping target 'null'
^C^C^C
Exiting with exit code 0

context

$ rustup update
info: syncing channel updates for 'stable-aarch64-apple-darwin'

  stable-aarch64-apple-darwin unchanged - rustc 1.82.0 (f6e511eec 2024-10-15)

info: cleaning up downloads & tmp directories
info: self-update is disabled for this build of rustup
info: any updates to rustup will need to be fetched with your system package manager
$ cargo --version
cargo 1.82.0 (8f40fc59f 2024-08-21)
~/src/ripe/ris/example_apps/using_rotonda main*
$ cargo install rotonda
    Updating crates.io index
     Ignored package `rotonda v0.2.0` is already installed, use --force to override
$ rotonda --version
rotonda 0.2.0
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