-
Notifications
You must be signed in to change notification settings - Fork 1
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
Can't open a given nffile which nfdump does #11
Comments
I'll have a look. Thanks for the sample! This always helps! |
It was indeed a boundary check error in the go decoding code. I fixed that in master. An updated new version will follow. |
@phaag I have yet another file that is not passing boundary check and panicking. Sample is attached.
|
That sample is really corrupt! However, I need to friendly exit or skip. |
A datablock is missing records. Do you have multiple processes writing to the same file?
|
It's a single But I suspect something is wrong with the VM hosting this collector. I'm having segfaults I can't explain on my processing code, although no errors on nfcapd process. Maybe physical memory fault or faulty storage, still not sure.
For now that would do the trick, just to avoid the panic calls. |
I added another data block boundary check! It spits an error, but does no longer crashes! |
Have you checked the syslog file? any specific error messages of the collector? |
Thanks! Will try right away.
Apparently no errors on the collector side, I run it on a dedicated container. Logs are clean. |
I guess the output can be less verbose, this line
|
Sorry - fixed. |
@phaag just to feedback to you, this VM had faulty memory. That's why files were so messed up! Still, we made the code more resilient. That's good anyways.
|
Hi Pete,
I have a nffile that is properly decoded using classic nfdump
1.7.4-a16f86f
but throws an error when using go-nfdumpv0.0.4
.Below some logs and I'm attaching the sample.
broken.sample.zip
The text was updated successfully, but these errors were encountered: