Sorry if this has been reported before; I googled the topic for a while and checked the Wiki with no results.
card is xspaN-based, distro is debian sid, kernel 2.6.18, ndiswrapper 1.30, built with module-assistant (debian)
When trying to trunk my wireless device, using ifenslave and the linux bonding module, the ndiswrapper module segfaults and the kernel hangs.
Dec 27 00:14:15 localhost kernel: ndiswrapper (miniport_set_power_state:400): wlan0 does not support power management; halting the device
Dec 27 00:14:15 localhost kernel: ndiswrapper: using IRQ 11
Dec 27 00:14:15 localhost kernel: Modules linked in: bonding freq_table ipv6 button ac battery dm_snapshot dm_mirror dm_mod ndiswrapper ide_generic pcmcia firmware_class joydev snd_maestro3 snd_ac97_codec snd_ac97_bus tsdev snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_page_alloc snd i2c_piix4 irda shpchp pci_hotplug yenta_socket rsrc_nonstatic pcmcia_core floppy soundcore i2c_core rtc parport_pc parport crc_ccitt intel_agp agpgart psmouse pcspkr serio_raw evdev ext3 jbd mbcache ide_cd cdrom ide_disk 3c59x mii uhci_hcd usbcore piix generic ide_core thermal processor fan
Dec 27 00:14:15 localhost kernel: EIP is at hangcheck_add+0x6e/0x7f [ndiswrapper]
Dec 27 00:14:15 localhost kernel: [<d0adf867>]</d0adf867> miniport_set_power_state+0xdf/0x239 [ndiswrapper]
Dec 27 00:14:15 localhost kernel: [<d0adfb24>]</d0adfb24> ndis_reinit+0x3c/0x62 [ndiswrapper]
Dec 27 00:14:15 localhost kernel: [<d0ae0164>]</d0ae0164> ndis_set_mac_address+0xf4/0x15a [ndiswrapper]
Dec 27 00:14:15 localhost kernel: EIP: [<d0ade276>]</d0ade276> hangcheck_add+0x6e/0x7f [ndiswrapper] SS:ESP 0068:cd859df8
Dec 27 00:15:15 localhost kernel: ndiswrapper version 1.30 loaded (preempt=no,smp=yes)
Dec 27 00:15:15 localhost kernel: ndiswrapper: driver net5416 (Belkin,05/19/2006,6.0.0.174) loaded
Dec 27 00:15:15 localhost kernel: ndiswrapper: using IRQ 11
Dec 27 00:15:15 localhost kernel: wlan0: ethernet device 00:11:50:f7:5e:29 using serialized NDIS driver: net5416, version: 0x60000, NDIS version: 0x501, vendor: '', 168C:0023.5.conf
Dec 27 00:15:15 localhost kernel: usbcore: registered new driver ndiswrapper
...
Dec 27 00:16:00 localhost kernel: ndiswrapper (miniport_set_power_state:400): wlan0 does not support power management; halting the device
Dec 27 00:16:00 localhost kernel: ndiswrapper: using IRQ 11
Dec 27 00:16:00 localhost kernel: ------------[ cut here ]------------
Dec 27 00:16:00 localhost kernel: kernel BUG at include/linux/timer.h:82!
Dec 27 00:16:00 localhost kernel: invalid opcode: 0000 [#1]
Dec 27 00:16:00 localhost kernel: SMP
Dec 27 00:16:00 localhost kernel: Modules linked in: bonding freq_table ipv6 button ac battery dm_snapshot dm_mirror dm_mod ndiswrapper ide_generic joydev tsdev snd_maestro3 snd_ac97_codec snd_ac97_bus pcmcia snd_pcm_oss snd_mixer_oss firmware_class snd_pcm snd_timer snd_page_alloc snd i2c_piix4 irda psmouse i2c_core shpchp pci_hotplug intel_agp agpgart crc_ccitt floppy parport_pc parport serio_raw pcspkr rtc yenta_socket rsrc_nonstatic pcmcia_core soundcore evdev ext3 jbd mbcache ide_cd cdrom ide_disk 3c59x mii uhci_hcd usbcore piix generic ide_core thermal processor fan
Dec 27 00:16:00 localhost kernel: CPU: 0
Dec 27 00:16:00 localhost kernel: EIP: 0060:[<d0af3276>]</d0af3276> Tainted: P VLI
Dec 27 00:16:00 localhost kernel: EFLAGS: 00010282 (2.6.18-3-686 #1)
Dec 27 00:16:00 localhost kernel: EIP is at hangcheck_add+0x6e/0x7f [ndiswrapper]
Dec 27 00:16:00 localhost kernel: eax: cfc49504 ebx: cfc492c0 ecx: 00000000 edx: cfc492c0
Dec 27 00:16:00 localhost kernel: esi: 00000000 edi: cd60be3c ebp: cd60be2c esp: cd60bdf8
Dec 27 00:16:00 localhost kernel: ds: 007b es: 007b ss: 0068
Dec 27 00:16:00 localhost kernel: Process ifenslave (pid: 2591, ti=cd60a000 task=cf1d8000 task.ti=cd60a000)
Dec 27 00:16:00 localhost kernel: Stack: d0af4867 cfc492c0 00000000 d0af4b24 cfc492c0 cfc49000 d0af5164 30300000
Dec 27 00:16:00 localhost kernel: 30353131 65353766 00003932 00000000 00000002 00000000 00000000 000f000e
Dec 27 00:16:00 localhost kernel: d0afda53 00000000 00000000 1100f505 295ef750 00000000 cfc49000 ffffffed
Dec 27 00:16:00 localhost kernel: Call Trace:
Dec 27 00:16:00 localhost kernel: [<d0af4867>]</d0af4867> miniport_set_power_state+0xdf/0x239 [ndiswrapper]
Dec 27 00:16:00 localhost kernel: [<d0af4b24>]</d0af4b24> ndis_reinit+0x3c/0x62 [ndiswrapper]
Dec 27 00:16:00 localhost kernel: [<d0af5164>]</d0af5164> ndis_set_mac_address+0xf4/0x15a [ndiswrapper]
Dec 27 00:16:00 localhost kernel: [<c0227eea>]</c0227eea> dev_set_mac_address+0x2f/0x4b
Dec 27 00:16:00 localhost kernel: [<d0b0dee2>]</d0b0dee2> bond_enslave+0x1a3/0x645 [bonding]
Dec 27 00:16:00 localhost kernel: [<c02810ce>]</c02810ce> _write_lock_bh+0x8/0x1a
Dec 27 00:16:00 localhost kernel: [<d0b0f24a>]</d0b0f24a> bond_do_ioctl+0x246/0x33d [bonding]
Dec 27 00:16:00 localhost kernel: [<d0ed96de>]</d0ed96de> fib6_clean_node+0x0/0x6a [ipv6]
Dec 27 00:16:00 localhost kernel: [<d0ed9023>]</d0ed9023> fib6_age+0x0/0x5d [ipv6]
Dec 27 00:16:00 localhost kernel: [<d0b0f004>]</d0b0f004> bond_do_ioctl+0x0/0x33d [bonding]
Dec 27 00:16:00 localhost kernel: [<c022989a>]</c022989a> dev_ifsioc+0x362/0x37c
Dec 27 00:16:00 localhost kernel: [<c0229df9>]</c0229df9> dev_ioctl+0x399/0x462
Dec 27 00:16:00 localhost kernel: [<c021ff02>]</c021ff02> sock_ioctl+0x193/0x1b5
Dec 27 00:16:00 localhost kernel: [<c021fd6f>]</c021fd6f> sock_ioctl+0x0/0x1b5
Dec 27 00:16:00 localhost kernel: [<c0169350>]</c0169350> do_ioctl+0x1c/0x5d
Dec 27 00:16:00 localhost kernel: [<c01695db>]</c01695db> vfs_ioctl+0x24a/0x25c
Dec 27 00:16:00 localhost kernel: [<c0169635>]</c0169635> sys_ioctl+0x48/0x5f
Dec 27 00:16:00 localhost kernel: [<c0102c11>]</c0102c11> sysenter_past_esp+0x56/0x79
Dec 27 00:16:00 localhost kernel: Code: 00 c7 82 50 02 00 00 e5 32 af d0 a1 40 d0 30 c0 03 82 40 02 00 00 83 ba 44 02 00 00 00 89 82 4c 02 00 00 8d 82 44 02 00 00 74 08 <0f> 0b 52 00 25 d3 af d0 8b 50 08 e9 a6 21 63 ef c3 83 b8 e0 03
Dec 27 00:16:00 localhost kernel: EIP: [<d0af3276>]</d0af3276> hangcheck_add+0x6e/0x7f [ndiswrapper] SS:ESP 0068:cd60bdf8
Logged In: YES
user_id=918798
Originator: NO
You are supposed to test latest version.
Check if this happens with latest stable version (1.32).
Logged In: YES
user_id=1677484
Originator: YES
I built and tested 1.32 and it seems to be added to a bonding device without error. However now I can't get a link with my wireless card (tried purging the configuration files and reinstalling drivers).
Logged In: YES
user_id=1677484
Originator: YES
I will be happy to move this discussion to IRC if you prefer. I attached the buginfo from ndiswrapper-buginfo if it is of any use.
File Added: ndiswrapper-buginfo.gz
problem with 1.32
Logged In: YES
user_id=918798
Originator: NO
If not using 2.6.19 or later kernels, use latest svn. Otherwise (if using 2.6.19 or later kernels), you need to patch both kernel and ndiswrapper - see "patches" section.
Logged In: YES
user_id=1677484
Originator: YES
Using latest svn helped as there is no crash before, but the link is lost when the wireless interface is added to the bonding interface.
Logged In: YES
user_id=918798
Originator: NO
Both problems fixed in svn.