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
Flows aggregate field causes segmentation fault #561
Comments
Hi Jeff ( @thetooth ), Thanks for reporting this. In case of crashes, yes, can you please follow instructions here? https://github.com/pmacct/pmacct/blob/1.7.7/QUICKSTART#L2876-#L2896 . It would be of great help. You can paste output of gdb or valgrind here or, if you prefer, by unicast email. Paolo |
That's fairly impossible, in this distro they have stripped all debugging symbols and any means of installing debug tooling, I did manage to get a core but there is nothing useful. Here is the only info I can get out of the system:
With ASLR off (i think?):
|
Hi Jeff, Yeah, unfortunately as you hinted that is not of much help. I will try to reproduce the issue in my dev environment. Failing that, we'll have to invent something. Paolo |
Hi Jeff, I am sorry to feedback that i have tried to reproduce the issue with the exact same config above (and played a bit around it) but, at least in my dev environment, i am unable to reproduce it. I'd appreciate further input / support from your side in order to troubleshoot this further. Paolo |
Thanks for giving it a go, I will try to reproduce it on my side with a debug binary tomorrow. I am extremely bad at using C/C++ tooling so it may take some time, perhaps I will be able to statically link the entire libc runtime and up, if it still dies then it should give a good indication as to where it's going wrong. But I do believe it's still related to the flows param as I've had this process up for 7 days now by just omitting it. |
I'm currently setting up a router using the vyos distro and have encountered a problem a few others seem to be running into, that is flow accounting not working on certain hardware. I did some digging and tracked the issue down to this project, the configuration is generated by some tooling behind the scenes and results in this:
The uacctd process crashes out immediately with this configuration, either in core or plugin/memory. Disabling the IMT plugin allows other flow exports to work.
After some tests with different or default buffer sizes (in case these were completely wrong), I found the issue seems to be in the aggregate line, specifically the use of the flows counter.
Crashes
Works
Not sure what the deal would be or if there is some reason this counter cannot be used with the IMT plugin but it would be nice to have this work, the reason being is the vyos guys are unlikely to want to change the config since most of there customers are using it purely for netflow export (I assume flows aggregate is used for that?), I however think the pmacct output is much more readable than some flashy graph that only updates once every 15 minutes. If no one can reproduce I can try and get a stack trace but might take me some time to setup.
Version
1.7.6-git [RELEASE]
1.7.7-git [ef37a41]
The text was updated successfully, but these errors were encountered: