Interface descriptions via pcap broken

Brandon Gooch jamesbrandongooch at gmail.com
Wed Mar 2 22:57:20 UTC 2011


On Wed, Mar 2, 2011 at 3:52 PM, Wesley Shields <wxs at freebsd.org> wrote:
> On Wed, Mar 02, 2011 at 07:45:40PM +0000, Bruce Cran wrote:
>> On Wed, 2 Mar 2011 13:40:57 -0600
>> Brandon Gooch <jamesbrandongooch at gmail.com> wrote:
>>
>> > BTW, if you give your devices descriptions, libpcap
>> > starts to behave again; this could be a clue to the source of the bug
>> > :/
>>
>> 0xa5 is the malloc fill pattern when debugging is enabled, and
>> having recently reinstalled FreeBSD I forgot to create the malloc.conf
>> symlink. So something's reading from uninitialized memory.
>
> Does commit c65292b04b98d6a76d58c5a54ca8f81463bf24de in the libpcap git
> tree look like it could help? I haven't checked in detail but I think it
> might have never made it into a release yet?
>
> https://github.com/mcr/libpcap/commit/c65292b04b98d6a76d58c5a54ca8f81463bf24de
>
> -- WXS

I applied the patch attached (diff'd against the code from the github
link above), rebuilt libpcap and wireshark, and the problem described
no longer exists. Thanks for looking at this wxs@!

-Brandon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libpcap-inet.c.diff
Type: application/octet-stream
Size: 2008 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20110302/df5345aa/libpcap-inet.c.obj


More information about the freebsd-net mailing list