Louis-Michel Gelinas wrote:

I ran into an issue using libpcap and tcpdump.
Whenever I enter a filter tcpdump segfaults:

i.e.: works fine : #tcpdump segfault #tcpdump port 80

That's a rather common filter, I suspect. :-)

I.e., if this were a libpcap bug, unless it's a very new one, it would have been discovered by now - and I don't see it with

        $ gcc --version
powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 20041026 (Apple Computer, Inc. build 4061)
        Copyright (C) 2004 Free Software Foundation, Inc.
        This is free software; see the source for copying conditions.  There is 
NO
        warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE.

        $ uname -sr
        Darwin 8.3.0
        $ sw_vers
        ProductName:    Mac OS X
        ProductVersion: 10.4.3
        BuildVersion:   8F46

with the current CVS code, so I suspect it's not something that showed up recently.

What happens if you compile libpcap with GCC's optimizer turned off? I suspect this is a bug in the version of GCC in FC4.
-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.

Reply via email to