** ------------------------------ Hi All, I wrote a small program which calls pcap_next_ex() function to read packets while processing a bunch of PCAP files (offline mode) "sequentially" - one after another.
However, pcap_next_ex() generates a segmentation fault (I observed this using GNU gdb). By the way, my program also produces some user logs so that I have the opportunity to observe which PCAP file is being processed at a certain time. On the other hand, when I re-run the same program with the individual PCAP file as the only program input, which I observed in the user logs that pcap_next_ex() generated segfault in the previous run while the file was being processed, I observe no crash. Hence, I began to think that there is problem with pcap_next_ex() in terms of memory leak, etc which becomes apparent when it is called successively for a bunch of PCAP files, not for a single file. Questions: 1. Is there such a pcap_next_ex() behaviour reported before ? 2. If you think, this is impossible, what might I be doing wrong ? etc. I use Ubuntu 9.10 (64-bit) which installs libpcap v1.0.0-2ubuntu1 by default. Thanks.
_______________________________________________ Winpcap-users mailing list Winpcap-users@winpcap.org https://www.winpcap.org/mailman/listinfo/winpcap-users