-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Exits for no reason by itself when listening on lo
or any
.
#127
Comments
I'm having trouble reproducing this, this works fine for me:
if sniffglue exits this usually means all worker threads have terminated, for example because the handle to the network device got closed, but possibly also because they got killed by seccomp (this usually should give you at least some output though). To verify this, check your system logs, try If it is related to seccomp, you need to run |
lo
or any
.lo
or any
.
Thanks for trying to reproduce and for these suggestions! I think the
I suspect that this |
I didn't have time to debug this in depth yet, but according to
If you feel like debugging this, you'd need to figure out which undocumented error-case you're reaching in the Linux kernel. |
I managed to reproduce this too by building from source on Arch Linux (through a dhcp packet, but also udp):
I was suspecting this is because two threads are trying to read a packet at the same time, but this shouldn't be possible because of this mutex: loop {
let packet = {
let mut cap = cap.lock().unwrap();
cap.next_pkt()
};
// ...
Curious. |
Hi,
while trying out
sniffglue
(at version 0.15.0 on Debian GNU/Linux Unstable, package version 0.15.0-7), I noticed that, when using either the interfacelo
(local loopback device) or the virtual interfaceany
(i.e. sniff on on all interfaces), it outputs a bunch of packets and then exits (even with exit code 0, so not a crash?) for no obvious reason reproducibly after a seemingly random number of packets (so far I've counted 28, 49, 106 and 116 usingsniffglue lo | wc -l
).So far, when I used it on
any
, it also only showed packets from thelo
interface before it exited. But that might have been just chance.The text was updated successfully, but these errors were encountered: