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

Segmentation Fault on Single File Data Interface #21

Open
rcopstein opened this issue Jan 6, 2020 · 2 comments
Open

Segmentation Fault on Single File Data Interface #21

rcopstein opened this issue Jan 6, 2020 · 2 comments

Comments

@rcopstein
Copy link

I have a stream configured to read from an MRT file using

self.stream = BGPStream()
self.stream.set_data_interface("singlefile")
self.stream.set_data_interface_option("singlefile", "upd-file", file_path)

Whenever I try to access the elements from the stream, either by using

self.stream.__iter__()

or

for elem in self.stream:
  ...

I get a "Segmentation Fault (Core Dumped)" message.
I have also tried changing the data_interface with no success.

@digizeph
Copy link
Contributor

digizeph commented Jan 6, 2020

Hey Rafael , thanks for using bgpstream! To help us reproduce this problem, can you provide some more extra information?

  • version of libbgpstream
  • version of pybgpstream
  • the link to the mrt file you are trying to parse

For using libbgpstream2.0 and pybgpstream (recommended version), you can check out this example script:
https://bgpstream.caida.org/docs/api/pybgpstream/pybgpstream.html#example
More tutorials can be found here:
https://bgpstream.caida.org/docs/tutorials/pybgpstream

@rcopstein
Copy link
Author

Thanks for the quick response!
I have both libbgpstream and pybgpstream on v2.0.0. I am trying to parse a BGP Update from the RouteViews project, found here.

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

2 participants