Giridhar Pemmasani escreveu:
--- Paulo da Silva <psdasilva@esoterica.pt> wrote:

  
I emerged the last version in the gentoo tree (1.33).
It successfully loaded the driver but it fails to communicate
with the router!
    

Most of the time the devices that fail with one version of ndiswrapper or the
other are the devices that I don't have. It is not possible for me to
guarantee such devices work. At the least, supply all the information as
suggested in wiki Bugs (e.g., kernel messages, what exactly do you mean
'fails to communicate' - does it associate or it doesn't exchange packets
after successful association, and so on). If I have the hardware, all I need
is steps to reproduce; otherwise, someone has to do the digging and give
debug trace that shows what the Windows driver is trying to do and where it
fails.

  
My current kernel: 2.6.19
    

There is an issue with 2.6.19 and later kernels with memory allocation. This
should be fixed in 1.34-rc2. Try that.

Giri
  

1.34-rc2: modprobe causes a seg fault!
Here is the kernel log:

Jan  5 16:07:59 HAL0002 kernel: ndiswrapper version 1.34rc2 loaded (preempt=yes,smp=no)
Jan  5 16:07:59 HAL0002 kernel: usb 1-3: reset high speed USB device using ehci_hcd and address 2
Jan  5 16:07:59 HAL0002 kernel: ndiswrapper: driver rt2500usb (Ralink,10/17/2005, 2.01.00.0000) loaded
Jan  5 16:08:00 HAL0002 kernel: BUG: unable to handle kernel NULL pointer dereference at virtual address 00000000
Jan  5 16:08:00 HAL0002 kernel:  printing eip:
Jan  5 16:08:00 HAL0002 kernel: c0226604
Jan  5 16:08:00 HAL0002 kernel: *pde = 00000000
Jan  5 16:08:00 HAL0002 kernel: Oops: 0000 [#1]
Jan  5 16:08:00 HAL0002 kernel: PREEMPT
Jan  5 16:08:00 HAL0002 kernel: Modules linked in: ndiswrapper snd_pcm_oss snd_mixer_oss snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device floppy fuse ipip tunnel4 usb_storage radeon drm cpufreq_performance cpufreq_conservative cpufreq_powersave cpufreq_ondemand video thermal processor fan button battery ac usbmouse usbhid eth1394 radeonfb joydev fb_ddc i2c_algo_bit snd_ali5451 snd_ac97_codec uhci_hcd ehci_hcd snd_ac97_bus snd_pcm snd_timer usbcore shpchp i2c_ali1535 i2c_ali15x3 8250_pci ohci1394 ieee1394 snd pci_hotplug i2c_core psmouse serio_raw natsemi pcspkr 8250 serial_core yenta_socket rsrc_nonstatic pcmcia_core ati_agp soundcore agpgart snd_page_alloc evdev
Jan  5 16:08:00 HAL0002 kernel: CPU:    0
Jan  5 16:08:00 HAL0002 kernel: EIP:    0060:[vsnprintf+1105/1155]    Tainted: P      VLI
Jan  5 16:08:00 HAL0002 kernel: EIP:    0060:[<c0226604>]    Tainted: P      VLI
Jan  5 16:08:00 HAL0002 kernel: EFLAGS: 00210202   (2.6.19 #3)
Jan  5 16:08:00 HAL0002 kernel: EIP is at vsnprintf+0x451/0x483
Jan  5 16:08:00 HAL0002 kernel: eax: 00000000   ebx: cd6ddb74   ecx: cd6dc000   edx: 00000000
Jan  5 16:08:00 HAL0002 kernel: esi: ccc13bfc   edi: cd6ddb70   ebp: cd6ddbb4   esp: cd6ddab4
Jan  5 16:08:00 HAL0002 kernel: ds: 007b   es: 007b   ss: 0068
Jan  5 16:08:00 HAL0002 kernel: Process modprobe (pid: 7864, ti=cd6dc000 task=ccc13550 task.ti=cd6dc000)
Jan  5 16:08:00 HAL0002 kernel: Stack: 00f42400 00000000 db425200 ffffffff ccc13550 cd6ddaec c0320378 c032018a
Jan  5 16:08:00 HAL0002 kernel:        ccc13c0c dbf063c0 cd6ddbb4 cd6ddb74 cf031654 cd6ddb04 cd6ddbb4 c012aa6f
Jan  5 16:08:00 HAL0002 kernel:        ccc13bfc 00000010 00000000 cd6ddb70 00000000 cd6ddb08 cd6ddb08 c012a925
Jan  5 16:08:00 HAL0002 kernel: Call Trace:
Jan  5 16:08:00 HAL0002 kernel:  [wait_for_completion+187/213] wait_for_completion+0xbb/0xd5
Jan  5 16:08:00 HAL0002 kernel:  [<c0320378>] wait_for_completion+0xbb/0xd5
Jan  5 16:08:00 HAL0002 kernel:  [preempt_schedule+65/83] preempt_schedule+0x41/0x53
Jan  5 16:08:00 HAL0002 kernel:  [<c032018a>] preempt_schedule+0x41/0x53
Jan  5 16:08:00 HAL0002 kernel:  [kthread_create+207/216] kthread_create+0xcf/0xd8
Jan  5 16:08:00 HAL0002 kernel:  [<c012aa6f>] kthread_create+0xcf/0xd8
Jan  5 16:08:00 HAL0002 kernel:  [keventd_create_kthread+0/123] keventd_create_kthread+0x0/0x7b
Jan  5 16:08:00 HAL0002 kernel:  [<c012a925>] keventd_create_kthread+0x0/0x7b
Jan  5 16:08:00 HAL0002 kernel:  [<dd6dadf0>] thread_trampoline+0x0/0xbb [ndiswrapper]
Jan  5 16:08:00 HAL0002 kernel:  [<dd6db4d4>] PsCreateSystemThread+0xc8/0x106 [ndiswrapper]
Jan  5 16:08:00 HAL0002 kernel:  [<dd6dadf0>] thread_trampoline+0x0/0xbb [ndiswrapper]
Jan  5 16:08:00 HAL0002 kernel:  [<dd6e20ab>] miniport_init+0x9d/0x128 [ndiswrapper]
Jan  5 16:08:00 HAL0002 kernel:  [<dd6e2236>] NdisDispatchPnp+0x71/0x8ca [ndiswrapper]
Jan  5 16:08:00 HAL0002 kernel:  [<dd6dcb86>] IoAllocateIrp+0x6c/0x79 [ndiswrapper]
Jan  5 16:08:00 HAL0002 kernel:  [local_bh_enable+125/151] local_bh_enable+0x7d/0x97
Jan  5 16:08:00 HAL0002 kernel:  [<c011dc2a>] local_bh_enable+0x7d/0x97
Jan  5 16:08:00 HAL0002 kernel:  [<dd6dd4d3>] IoBuildAsynchronousFsdRequest+0x2d/0x132 [ndiswrapper]
Jan  5 16:08:00 HAL0002 kernel:  [<dd6d8c89>] get_current_nt_thread+0x9b/0xb5 [ndiswrapper]
Jan  5 16:08:00 HAL0002 kernel:  [<dd6dd5e4>] IoQueueThreadIrp+0xc/0xcd [ndiswrapper]
Jan  5 16:08:00 HAL0002 kernel:  [<dd6dc8cb>] IofCallDriver+0x2e/0x5c [ndiswrapper]
Jan  5 16:08:00 HAL0002 kernel:  [<dd6deb43>] IoSendIrpTopDev+0xad/0xfb [ndiswrapper]
Jan  5 16:08:00 HAL0002 kernel:  [<dd6dee11>] pnp_start_device+0x46/0x8c [ndiswrapper]
Jan  5 16:08:00 HAL0002 kernel:  [<dd6df075>] wrap_pnp_start_device+0x21e/0x240 [ndiswrapper]
Jan  5 16:08:00 HAL0002 kernel:  [<dd6df333>] wrap_pnp_start_usb_device+0xb9/0xc2 [ndiswrapper]
Jan  5 16:08:00 HAL0002 kernel:  [<dd1d32e7>] resume_device+0x23/0x34 [usbcore]
Jan  5 16:08:00 HAL0002 kernel:  [<dd1d34ba>] usb_resume_both+0xb1/0xc7 [usbcore]
Jan  5 16:08:00 HAL0002 kernel:  [<dd1d3559>] usb_autoresume_device+0x44/0x4c [usbcore]
Jan  5 16:08:00 HAL0002 kernel:  [<dd1d3f41>] usb_probe_interface+0x94/0xd3 [usbcore]
Jan  5 16:08:00 HAL0002 kernel:  [really_probe+60/222] really_probe+0x3c/0xde
Jan  5 16:08:00 HAL0002 kernel:  [<c027ab1e>] really_probe+0x3c/0xde
Jan  5 16:08:00 HAL0002 kernel:  [klist_next+104/147] klist_next+0x68/0x93
Jan  5 16:08:00 HAL0002 kernel:  [<c031f813>] klist_next+0x68/0x93
Jan  5 16:08:00 HAL0002 kernel:  [__driver_attach+0/129] __driver_attach+0x0/0x81
Jan  5 16:08:00 HAL0002 kernel:  [<c027aceb>] __driver_attach+0x0/0x81
Jan  5 16:08:00 HAL0002 kernel:  [__driver_attach+78/129] __driver_attach+0x4e/0x81
Jan  5 16:08:00 HAL0002 kernel:  [<c027ad39>] __driver_attach+0x4e/0x81
Jan  5 16:08:00 HAL0002 kernel:  [bus_for_each_dev+80/119] bus_for_each_dev+0x50/0x77
Jan  5 16:08:00 HAL0002 kernel:  [<c027a105>] bus_for_each_dev+0x50/0x77
Jan  5 16:08:00 HAL0002 kernel:  [driver_attach+38/42] driver_attach+0x26/0x2a
Jan  5 16:08:00 HAL0002 kernel:  [<c027aa28>] driver_attach+0x26/0x2a
Jan  5 16:08:00 HAL0002 kernel:  [__driver_attach+0/129] __driver_attach+0x0/0x81
Jan  5 16:08:00 HAL0002 kernel:  [<c027aceb>] __driver_attach+0x0/0x81
Jan  5 16:08:00 HAL0002 kernel:  [bus_add_driver+102/397] bus_add_driver+0x66/0x18d
Jan  5 16:08:00 HAL0002 kernel:  [<c027a488>] bus_add_driver+0x66/0x18d
Jan  5 16:08:00 HAL0002 kernel:  [driver_register+128/141] driver_register+0x80/0x8d
Jan  5 16:08:00 HAL0002 kernel:  [<c027af4a>] driver_register+0x80/0x8d
Jan  5 16:08:00 HAL0002 kernel:  [<dd1d3a2a>] usb_register_driver+0x63/0xce [usbcore]
Jan  5 16:08:00 HAL0002 kernel:  [sysfs_create_file+65/70] sysfs_create_file+0x41/0x46
Jan  5 16:08:00 HAL0002 kernel:  [<c0196dcf>] sysfs_create_file+0x41/0x46
Jan  5 16:08:00 HAL0002 kernel:  [<dd6d442b>] loader_init+0x1d5/0x20d [ndiswrapper]
Jan  5 16:08:00 HAL0002 kernel:  [<dd6df449>] wrap_procfs_init+0x64/0xb1 [ndiswrapper]
Jan  5 16:08:00 HAL0002 kernel:  [<dce9a090>] wrapper_init+0x90/0xca [ndiswrapper]
Jan  5 16:08:00 HAL0002 kernel:  [sys_init_module+5264/5743] sys_init_module+0x1490/0x166f
Jan  5 16:08:00 HAL0002 kernel:  [<c0134056>] sys_init_module+0x1490/0x166f
Jan  5 16:08:00 HAL0002 kernel:  [sysenter_past_esp+86/121] sysenter_past_esp+0x56/0x79
Jan  5 16:08:00 HAL0002 kernel:  [<c0102ea1>] sysenter_past_esp+0x56/0x79
Jan  5 16:08:00 HAL0002 kernel:  [schedule+1195/1401] __sched_text_start+0x4ab/0x579
Jan  5 16:08:00 HAL0002 kernel:  [<c032007b>] __sched_text_start+0x4ab/0x579
Jan  5 16:08:00 HAL0002 kernel:  =======================
Jan  5 16:08:00 HAL0002 kernel: Code: 10 89 6c 24 0c 8b 44 24 1c 89 44 24 08 89 14 24 89 4c 24 04 8b 54 24 20 89 f0 e8 ca f4 ff ff 89 c6 89 df ff 44 24 48 8b 44 24 48 <8a> 00 84 c0 0f 85 2d fc ff ff 83 7c 24 44 00 74 13 3b 74 24 20
Jan  5 16:08:00 HAL0002 kernel: EIP: [vsnprintf+1105/1155] vsnprintf+0x451/0x483 SS:ESP 0068:cd6ddab4
Jan  5 16:08:00 HAL0002 kernel: EIP: [<c0226604>] vsnprintf+0x451/0x483 SS:ESP 0068:cd6ddab4