CAIDA / bgpstream

BGP measurement analysis for the masses
GNU General Public License v2.0
109 stars 43 forks source link

PyBGPStream hangs(?) after corrupted dump #85

Open kurtrwall opened 5 years ago

kurtrwall commented 5 years ago

In pybgpstream v1.2.1, I have a stream created to pull all events from all collectors for the routeviews and ris projects in live mode (by setting the end timestamp to 0). This runs perfectly fine for a while, until I encounter the following:

2019-03-12 09:24:38 [warn] ERROR attribute is truncated: expected=10244 remaining=1481
2019-03-12 09:24:38 [warn] process_one_attr failed, stopping attribute processing

After this, the stream effectively hangs with no other logging or indication of any other kind. I'm not very experienced in C, but I followed the code to this line where the NULL is handled here, but I'm not quite sure what to look for that would cause such a behavior after that.

One of the issues in figuring this out is that it seems to be working correctly for a while, but after about a day it hangs. Any help is appreciated, thanks.