After running for several days, capturing packets, pcap_loop hangs in the poll() call.
This is running on Debian Squeeze kernel 2.6.32-5-amd64 and 3.2.0-0.bpo.3-amd64
#0 0x00007ffff6d5c998 in poll () from /lib/libc.so.6
#1 0x00007ffff7f3acd7 in ?? () from /usr/lib/x86_64-linux-gnu/libpcap.so.0.8
#2 0x00007ffff7f41f01 in pcap_loop () from /usr/lib/x86_64-linux-gnu/libpcap.so.0.8
#3 0x0000000000417332 in main (argc=<value optimized out>, argv=<value optimized out>) at main.cpp:113
Version 1.3.0 of libpcap.
Restarting the program makes it run normally again.
the program is basically:
while(1){
int r = pcap_loop(descr, 0, got_packet, (u_char*)&info);
}
and got packet does it's stuff with the packet and returns. This is very low traffic interface, so no CPU or memory problems
Administrators of the "libpcap" SourceForge project have superseded this tracker item (formerly artifact 3569206, now bug 174) with issue 177 of the "libpcap" GitHub project.