-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
Fix spawn source subcommand #954
Conversation
406781c
to
561a969
Compare
I haven't seen any unit or integration tests yet. What was your strategy in this regard? |
When I test this locally, I get the following warning in
|
I tried
|
I missed that. I think this is because of the eraser. |
I don't know what's causing this, can you |
21a2df9
to
da11c90
Compare
Commands should be covered by integration tests in general. I'm still thinking about how this can be worked into the dsl. |
I'm already getting a segfault when I run Backtrace:
|
How did you test invalid parameters on the command line? This always causes segfaults for me, like this one ☝️. |
I'll give this a spin to try reproducing the issues locally. |
I can reproduce the changes mentioned by @tobim locally on macOS. The PCAP source spawned by the node hangs after forwarding to the importer once. Sadly we don't have good enough trace logs for the PCAP source, which is what we should start with. I cannot, however, reproduce the issues mentioned by @mavam. I think something may be messed up on your end. |
Upon further investigation, the PCAP source inside the node seems to be down after a while. Sending a status atom to the source returns with |
When a line_range was created on stdin in an actor context, the actor would wait until data was available, and would not be able to handle other messages in the meantime. This happened with the `spawn source` command, which was an easy way to "dos" the node.
Co-authored-by: Matthias Vallentin <matthias@tenzir.com>
da47787
to
8bc4946
Compare
fixture: ServerTester | ||
steps: | ||
- command: spawn source suricata -r @./data/suricata/eve.json | ||
- command: import -b zeek |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment explaining why this is necessary?
We should add changelog entries for the other fixes we made as well @tobim. |
86a48e9
to
e5ec970
Compare
dd97b28
to
cb640ae
Compare
GCC warns about unused variables in conjunction with the comma operator inside of decltype expressions. This change unwraps the __VA_ARGS__ pack outside and silences the warning for each parameter individually.
cb640ae
to
d301f6f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I consider the changes by @dominiklohmann in this PR ready to merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving @tobim's side of things here.
No description provided.