CAIDA / pybgpstream

Python bindings for BGPStream
https://bgpstream.caida.org
BSD 2-Clause "Simplified" License
28 stars 22 forks source link

Segmentation Fault on Single File Data Interface #21

Open rcopstein opened 4 years ago

rcopstein commented 4 years ago

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 _datainterface with no success.

digizeph commented 4 years ago

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

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 commented 4 years ago

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.