#113 system crashes when unplugging device (corega USB)

closed
nobody
None
5
2012-10-06
2005-03-27
nordpol
No

Hi,

I have corega CG-WLUSB2GTST WLAN USB stick (should be a
PRISM GT chip), which works fine on my notebook with
ndiswrapper up from 0.10; currently, I use 1.1. The
problem is the following:

when I unplug the USB stick, the system crashes
immediately, such that there is nothing at all in the
log files; when I switch to a text console, I get
messages reporting error -19 in usb_reset_pipe and
usb_submit_urb -- it is hard to say exactly, as the
messages appear over and over, and thus are almost
impossible to read as they scroll over the screen.

The system also rarely hangs, I guess this is when it
looses the connection.

The error messages vary for different versions of
ndiswrapper.

System is Debian w. Kernel 2.6.8.

When I do 'rmmod ndiswrapper', everything works fine,
and I can unplug the device.

This error is also described in the list working cards.

Thanks, Norbert

Discussion

<< < 1 2 (Page 2 of 2)
  • Bill Phipps
    Bill Phipps
    2005-08-31

    Logged In: YES
    user_id=103456

    Here's the buginfo. I did not do the module reload:
    utils:
    -rwxr-xr-x 1 root root 24975 Aug 31 12:00 /sbin/loadndisdriver
    -rwxr-xr-x 1 root root 20568 Aug 31 12:00 /usr/sbin/ndiswrapper


    kernel:
    Linux version 2.6.11-1.27_FC3
    (bhcompile@porky.build.redhat.com) (gcc version 3.4.3
    20050227 (Red Hat 3.4.3-22)) #1 Tue May 17 20:27:37 EDT 2005
    kernel sources are in /lib/modules/2.6.11-1.27_FC3/build


    gcc --version:
    gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
    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.


    installed drivers:
    /etc/ndiswrapper:
    total 12
    -rw-r--r-- 1 root root 268 Apr 28 08:47 modules.ndiswrapper
    drwxr-xr-x 2 root root 4096 Aug 31 14:29 wusb54gv2

    /etc/ndiswrapper/wusb54gv2:
    total 388
    lrwxrwxrwx 1 root root 16 Aug 31 14:29 0846:4240.0.conf
    -> 13B1:000A.0.conf
    -rw-r--r-- 1 root root 383 Aug 31 14:28 13B1:000A.0.conf
    -rwxr-xr-x 1 root root 9254 Aug 31 14:28 wusb54gv2.inf
    -rw-r--r-- 1 root root 374752 Aug 31 14:28 wusbgxp.sys
    Not reloading ndiswrapper...

    [<c01357e2>] worker_thread+0x1c4/0x415
    [<d085e6c2>] ndis_worker+0x0/0x347 [ndiswrapper]
    [<c011aac8>] default_wake_function+0x0/0xc
    [<c011aac8>] default_wake_function+0x0/0xc
    [<c013561e>] worker_thread+0x0/0x415
    [<c013b930>] kthread+0x7c/0xa4
    [<c013b8b4>] kthread+0x0/0xa4
    [<c0101291>] kernel_thread_helper+0x5/0xb
    Code: 00 66 c7 00 48 00 8b 09 8b 09 89 48 10 8b 4a 24 83 60
    20 00 89 48 18 8b 4a 28 83 60 24 00 89 48 1c c7 40 14 03 00
    00 00 8b 4e 60 <89> 41
    e0 83 e9 24 c7 41 0c 03 00 22 00 c6 01 0f 8b 46 60 83 e8

     
  • Logged In: YES
    user_id=918798

    I give up.

    I have asked you (multiple times) to use latest snapshot and you
    give information about 1.3rc1. I know 1.3rc1 has an issue with
    unplugging and the fix was made post-1.3rc1. And read wiki about
    how to supply useful information while filing bug reports.

    If you read my posts carefully and follow exactly as described
    and supply useful information, I will consider this issue pending.
    Otherwise, since I can't reproduce it, I will mark this as done.

     
  • Bill Phipps
    Bill Phipps
    2005-09-01

    Logged In: YES
    user_id=103456

    Sorry for the confusion. I thought that rc1 was the latest
    snapshop. I got the latest snapshot and I also downloaded
    the source from CVS. I compiled the both with -DDEBUG=3 and
    -DUSB_DEBUG as per the bugs wiki. It seems debug_timer is
    set as well so that was on too. The result is different
    from the rc1 in that disconnects immediately halt the
    system. The variations I've tried are snapshot without
    debug, snapshot with debug, cvs (about 11AM EST today)
    without debug, and cvs with debug. Module unloading doesn't
    crash or panic any more with the interface up, just actual
    usb disconnects.

    As for supplying useful information, netconsole shows
    nothing after the disconnect, and the actual console shows
    nothing (cursor actually stops blinking). I am using the
    latest WUSB54GV2 driver as per your recommendation. I'll
    include the bug-info output that was run just after the
    modprobe with the snapshot with debug. I can also do the
    cvs if it will help.

    Other data that may help: no preempt, no smp. Kernel has 4k
    stacks. This output is from is a snapshot grabbed from
    http://ndiswrapper.sourceforge.net/snapshots/ndiswrapper.tar.gz
    last night, although the version still says 1.3rc1. make
    clean. make install. cvs source also doesn't seem to update
    the version.

    I have plenty of debug logs but I don't see an efficient way
    to upload them. I can setup any sort of test you'd like,
    even recompile the kernel if you think that will help. I'll
    try some other variations in the mean time to see if
    interface up/down matters and other things.

    Here's the buginfo. It does not crash during module reload:
    utils:
    -rwxr-xr-x 1 root root 24975 Sep 1 11:28 /sbin/loadndisdriver
    -rwxr-xr-x 1 root root 21072 Sep 1 11:28 /usr/sbin/ndiswrapper


    kernel:
    Linux version 2.6.11-1.27_FC3
    (bhcompile@porky.build.redhat.com) (gcc version 3.4.3
    20050227 (Red Hat 3.4.3-22)) #1 Tue May 17 20:27:37 EDT 2005
    kernel sources are in /lib/modules/2.6.11-1.27_FC3/build


    gcc --version:
    gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
    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.


    installed drivers:
    /etc/ndiswrapper:
    total 12
    -rw-r--r-- 1 root root 268 Apr 28 08:47 modules.ndiswrapper
    drwxr-xr-x 2 root root 4096 Sep 1 11:32 wusb54gv2

    /etc/ndiswrapper/wusb54gv2:
    total 388
    lrwxrwxrwx 1 root root 16 Sep 1 11:32 0846:4240.0.conf
    -> 13B1:000A.0.conf
    -rw-r--r-- 1 root root 383 Sep 1 11:31 13B1:000A.0.conf
    -rwxr-xr-x 1 root root 9254 Sep 1 11:31 wusb54gv2.inf
    -rw-r--r-- 1 root root 374752 Sep 1 11:31 wusbgxp.sys
    Reloading ndiswrapper...
    ndiswrapper (usb_submit_nt_urb:549): irp: c2ee67c0, stack
    size: 1, cl: 1, sl: c2ee6860, dev_obj: ccde80a0, mj_fn: 15,
    minor_fn: 0, nt_urb: cd709064, event: 00000000
    ndiswrapper (usb_bulk_or_intr_trans:331): irp: c2ee67c0,
    stack size: 1, cl: 1, sl: c2ee6860, dev_obj: ccde80a0,
    mj_fn: 15, minor_fn: 0, nt_urb: cd709064, event: 00000000
    ndiswrapper (urb_tx_complete_worker:262): irp: c2ee67c0,
    stack size: 1, cl: 1, sl: c2ee6860, dev_obj: ccde80a0,
    mj_fn: 15, minor_fn: 0, nt_urb: cd709064, event: 00000000
    ndiswrapper (IofCompleteRequest:410): irp: c2ee67c0, stack
    size: 1, cl: 1, sl: c2ee6860, dev_obj: ccde80a0, mj_fn: 15,
    minor_fn: 0, nt_urb: cd709064, event: 00000000
    ndiswrapper (NdisFreeMemory:279): Enter addr = c3438740,
    flags = 00000000
    ndiswrapper (NdisScheduleWorkItem:2493): Enter
    ndiswrapper (NdisScheduleWorkItem:2507): Exit
    ndiswrapper (ndis_worker:2417): Enter
    ndiswrapper (ndis_worker:2438): Calling work at d08ba96e
    with parameter cc626e00
    ndiswrapper (ndis_worker:2484): Exit

    Thanks for the help. I'll send any of the debug logs that
    you may find useful or try any of the other windows drivers.
    BTW, the driver works great prior to disconnect. Don't
    know if I mentioned that!! :)

     
  • Logged In: YES
    user_id=918798

    I am not sure you are using latest snapshot; snapshots display the
    date it was created when module is loaded. For example, latest
    snapshot reports "1.3rc1@0901" for version. If you see anything
    other than that, you are not actually loading module compiled
    from latest snapshot.

    I really don't want to spend long times going through this; mail to
    mailing list and ask for help on how to get latest snapshot loaded.
    You may also want to try 8k stack patch. If I could reproduce this
    bug, I would spend more time trying to understand what is going
    on, but especially since I have spent long time fixing this bug, I
    don't have time to track down your configration/installation issues.

     
  • Logged In: YES
    user_id=918798

    This has been fixed in cvs; if problem persists, reopen or submit a
    new bug report with all details.

     
<< < 1 2 (Page 2 of 2)