#19 dnet 1.11 for python crashes under XP SP2

closed-fixed
nobody
None
5
2006-08-10
2006-04-11
Anonymous
No

I have have had a number of crashes under Windows XP
with SP 2. My machine has a number of interfaces,
including 802.11, 802.3, and VMWare interfaces. Eth2 is
a connected Broadcom NetXtreme Gigabit adapter.

Here is the simplest crash in python 2.4.3

import dnet
for a in dnet.intf(): print a

Crash.

if I use pcap, I can find an interface:

import pcap

>>> a = pcap.pcap()
>>> print a.name
eth2
>>> print a.readpkts()
[(1144789999.9557691, <read-only buffer ptr 0x010AF2AC,
size 60 at 0x009EB1A0>),
(1144789999.96422, <read-only buffer ptr 0x010AF2FC,
size 60 at 0x009EB200>), ( ...

works fine.

I can't use the interface name with dnet to get an
interface:

>>> import dnet
>>> a = dnet.eth('eth2')

Crash.

In case it helps, here is the stack trace when it dies.
from windbg formated: frame #, three raw args, function
info

00 7c8633d5 00000002 0021f074 ntdll!KiFastSystemCallRet
(FPO: [0,0,0])
01 00000002 0021f074 00000001
ntdll!ZwWaitForMultipleObjects+0xc (FPO: [5,0,0])
02 0021f28c 00000000 00000000
kernel32!UnhandledExceptionFilter+0x82d (FPO: [Non-Fpo])
03 00000000 0021f28c 7c34246e MSVCR71!_XcptFilter+0x15f
(FPO: [Non-Fpo])
WARNING: Stack unwind information not available.
Following frames may be wrong.
04 00000014 00000000 7ffdf000 python+0x11d2
05 1d001062 00000000 78746341
kernel32!BaseProcessStart+0x23 (FPO: [Non-Fpo])

dnet.arp() provides a loop that gives me correct
arptable info.

Thanks,
Jesse

Discussion

  • Dug Song

    Dug Song - 2006-08-10

    Logged In: YES
    user_id=18578

    sorry for the delay, i must have missed this.

    i think i know what this is, and committed what i hope is a fix for it -
    basically, to try to handle all MIB-II ifTypes, instead of just what's listed in
    ipifcons.h:

    Checking in intf-win32.c;
    /cvsroot/libdnet/libdnet/src/intf-win32.c,v <-- intf-win32.c
    new revision: 1.27; previous revision: 1.26
    done

    can you install http://monkey.org/~dugsong/tmp/
    dnet-1.11-1468881.win32-py2.4.exe and let me know if you can still
    reproduce the error?

    thanks!

     
  • Dug Song

    Dug Song - 2006-08-10
    • status: open --> closed-fixed
     
  • Nobody/Anonymous

    Logged In: NO

    That fix works, Thanks!
    Jesse

     

Log in to post a comment.