Segmentation fault and resources unavailable on version 0.3.0

On router Turris 1.1 with version 0.3.0, which can be found in HBK/HBL/HBD branches, it seems that there are some issues with fwlogs, which I am able to reproduce.

Sometimes, I can reproduce this one:

root@turris:~# sentinel-fwlogs
Packet handling failed: Resource temporarily unavailable

But on the other hand, usually, I experience this:

root@turris:~# sentinel-fwlogs
Segmentation fault

I did not test it on other platforms, but it could be possible that it is happening there as well. Once I tested old version 0.1.0, it worked as it should.

@mhanak Would you mind taking a look at this issue? The project should be written in C. Shall I provide output from strace?