Re: [tcpdump-workers] Programming libpcap - "*** glibc detected"

2005-10-09 Thread Michal Kepien
> Your program is calling pcap_open_live() with a snapshot length of 1, > meaning that it only wants the first byte of every packet, but the Linux > libpcap doesn't correctly handle that when capturing on a device that > uses "cooked mode", such as a PPP device - it just allocates a buffer

Re: [tcpdump-workers] Programming libpcap - "*** glibc detected"

2005-10-08 Thread Guy Harris
Michal Kepien wrote: The whole `valgrind --leak-check=yes ./glibc_pcap_error' output can be found here: http://kempniu.no-ip.com/files/valgrind.log Well, after seeing the Valgrind errors and asking why it was complaining about a buffer of size 1, and then looking at the libpcap code to see

Re: [tcpdump-workers] Programming libpcap - "*** glibc detected"

2005-10-07 Thread Michal Kepien
> Could you try running that version of tcpdump, or your application, > under Valgrind, while capturing on a PPP link? If libpcap is > overwriting a buffer, that might find the place where it happens. The whole `valgrind --leak-check=yes ./glibc_pcap_error' output can be found here: http://kem

Re: [tcpdump-workers] Programming libpcap - "*** glibc detected"

2005-10-06 Thread Guy Harris
Michal Kepien wrote: $ tcpdump -h tcpdump version 3.9.2 libpcap version 0.9.2 I've compiled both libpcap and tcpdump from sources version 3.9.3 (yes, that's a "3" at the end :)) Could you try running that version of tcpdump, or your application, under Valgrind, while capturing on a PPP link?

Re: [tcpdump-workers] Programming libpcap - "*** glibc detected"

2005-10-02 Thread Michal Kepien
> I'll have to check on a system where glibc was not updated since install. I get the same errors on a Slackware box with an unupgraded libc version 2.3.4. Best regards, Michal - This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.

Re: [tcpdump-workers] Programming libpcap - "*** glibc detected"

2005-10-01 Thread Michal Kepien
> What version of libpcap is in your version of Slackware? (What does > "tcpdump -h" print?) $ tcpdump -h tcpdump version 3.9.2 libpcap version 0.9.2 I've compiled both libpcap and tcpdump from sources version 3.9.3 (yes, that's a "3" at the end :)) Best regards, Michal - This is the tcpdump-w

Re: [tcpdump-workers] Programming libpcap - "*** glibc detected"

2005-09-30 Thread Guy Harris
Michal Kepien wrote: I don't know whether this is the right place to post, but unfortunately nobody on the usenet was able to help me with this issue. I came across this while I was writing a simple libpcap-based program. The problem is, after I call any packet capturing function (pcap_next(), p

Re: [tcpdump-workers] Programming libpcap - "*** glibc detected"

2005-09-30 Thread Michal Kepien
> maybe you could recompile libpcap with your current libc and make certain > that gcc finds the new libpcap, i.e. set LD_LIBRARY_PATH, if necessary? Well, actually it has been compiled with the current libc... I really don't get it, I've skimmed through tcpdump sources and it also uses gmtime() (

Re: [tcpdump-workers] Programming libpcap - "*** glibc detected"

2005-09-29 Thread Michal Kepien
> the program looks ok and it compiled and ran on my sparc debian printing > "callback" on each packet (i had to use eth0 as the interface, but it > should not matter). Now that's odd, the program works fine if I use eth0 as the interface... While with ppp0 it crashes... Any ideas? Best regards,

Re: [tcpdump-workers] Programming libpcap - "*** glibc detected"

2005-09-29 Thread alexander medvedev
Hi Michal, the program looks ok and it compiled and ran on my sparc debian printing "callback" on each packet (i had to use eth0 as the interface, but it should not matter). maybe you could recompile libpcap with your current libc and make certain that gcc finds the new libpcap, i.e. set LD_LIBRAR

[tcpdump-workers] Programming libpcap - "*** glibc detected" errors

2005-09-28 Thread Michal Kepien
Hi all, I don't know whether this is the right place to post, but unfortunately nobody on the usenet was able to help me with this issue. I came across this while I was writing a simple libpcap-based program. The problem is, after I call any packet capturing function (pcap_next(), pcap_loop() etc.