Find the answer to your Linux question:
Results 1 to 4 of 4
I posted recently about a problem that I have been having with FC3 crashing often. Everything locks up, and the caps-lock and scroll-lock lights blink. The only thing I can ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Oct 2004
    Posts
    133

    FC3 repeated crash: kernel: bad: scheduling while atomic!


    I posted recently about a problem that I have been having with FC3 crashing often. Everything locks up, and the caps-lock and scroll-lock lights blink. The only thing I can do is turn off the computer, and restart.

    I thought that I fixed the problem by re-installing firefox, but I was wrong.

    My specs:

    Dell Inspiron 9100 Laptop
    Pentium 4 w/HT
    1.00 gb ram
    ATI 9700 mobility

    Fedora Core 3
    Kernel: 2.6.9-1.681 smp

    I have been watching the system logs, and this is what comes up before each freeze-up:

    Dec 13 00:17:38 localhost kernel: bad: scheduling while atomic!
    Dec 13 00:17:38 localhost kernel: [<022bade1>] schedule+0x2d/0x872
    Dec 13 00:17:38 localhost kernel: [<02264e41>] sys_send+0x19/0x1d
    Dec 13 00:17:38 localhost kernel: [<022654e6>] sys_socketcall+0xd2/0x179
    Dec 13 00:17:38 localhost kernel: Debug: sleeping function called from invalid context at net/core/sock.c:1203
    Dec 13 00:17:38 localhost kernel: in_atomic():1[expected: 0], irqs_disabled():0
    Dec 13 00:17:38 localhost kernel: [<0211df82>] __might_sleep+0x7d/0x87
    Dec 13 00:17:38 localhost kernel: [<02266a96>] lock_sock+0x18/0x41
    Dec 13 00:17:38 localhost kernel: [<022893b8>] tcp_recvmsg+0x2f/0x681
    Dec 13 00:17:38 localhost kernel: [<02266bed>] sock_common_recvmsg+0x30/0x46
    Dec 13 00:17:38 localhost kernel: [<02263cc2>] sock_recvmsg+0xef/0x10c
    Dec 13 00:17:38 localhost kernel: [<022bb5f0>] schedule+0x83c/0x872
    Dec 13 00:17:38 localhost kernel: [<0211e256>] autoremove_wake_function+0x0/0x2d
    Dec 13 00:17:38 localhost kernel: [<02154ecc>] fget+0x3b/0x42
    Dec 13 00:17:38 localhost kernel: [<02264eea>] sys_recvfrom+0xa5/0xf5
    Dec 13 00:17:38 localhost kernel: [<021fabfa>] vt_console_print+0x65/0x2a5
    Dec 13 00:17:38 localhost kernel: [<021fab95>] vt_console_print+0x0/0x2a5
    Dec 13 00:17:38 localhost kernel: [<0212031e>] __call_console_drivers+0x36/0x40
    Dec 13 00:17:38 localhost kernel: [<02120436>] call_console_drivers+0xb6/0xd8
    Dec 13 00:17:38 localhost kernel: [<02264f53>] sys_recv+0x19/0x1d
    Dec 13 00:17:38 localhost kernel: [<02265510>] sys_socketcall+0xfc/0x179
    Dec 13 00:17:38 localhost kernel: [<021162ce>] smp_apic_timer_interrupt+0xac/0xdd
    Dec 13 00:17:38 localhost kernel: [<021073b4>] math_state_restore+0x25/0x2c


    This occurs over and over again, several times second, and then the computer freezes, usually when I type something. The error also sometimes looks like this (note "ndiswrapper"):

    Dec 12 23:09:12 localhost kernel: Debug: sleeping function called from invalid context at include/asm/semaphore.h:130
    Dec 12 23:09:12 localhost kernel: in_atomic():1[expected: 0], irqs_disabled():0
    Dec 12 23:09:12 localhost kernel: [<0211df82>] __might_sleep+0x7d/0x87
    Dec 12 23:09:12 localhost kernel: [<428a3ca7>] xmit_bh+0x1c/0x2e2 [ndiswrapper]
    Dec 12 23:09:12 localhost kernel: [<0212d25b>] worker_thread+0x168/0x1d5
    Dec 12 23:09:12 localhost kernel: [<428a3c8b>] xmit_bh+0x0/0x2e2 [ndiswrapper]
    Dec 12 23:09:12 localhost kernel: [<0211cf21>] default_wake_function+0x0/0xc
    Dec 12 23:09:12 localhost kernel: [<0211cf21>] default_wake_function+0x0/0xc
    Dec 12 23:09:12 localhost kernel: [<0212d0f3>] worker_thread+0x0/0x1d5
    Dec 12 23:09:12 localhost kernel: [<02130599>] kthread+0x73/0x9b
    Dec 12 23:09:12 localhost kernel: [<02130526>] kthread+0x0/0x9b
    Dec 12 23:09:12 localhost kernel: [<021041f1>] kernel_thread_helper+0x5/0xb
    Dec 12 23:09:12 localhost kernel: bad: scheduling while atomic!
    Dec 12 23:09:12 localhost kernel: [<022bade1>] schedule+0x2d/0x872
    Dec 12 23:09:12 localhost kernel: [<0212e840>] __kernel_text_address+0x18/0x23
    Dec 12 23:09:12 localhost kernel: [<02105f84>] print_context_stack+0x1a/0x47
    Dec 12 23:09:12 localhost kernel: [<0210600a>] show_trace+0x59/0x72
    Dec 12 23:09:12 localhost kernel: [<021060ad>] dump_stack+0x11/0x13
    Dec 12 23:09:12 localhost kernel: [<0211df82>] __might_sleep+0x7d/0x87
    Dec 12 23:09:12 localhost kernel: [<428a3cac>] xmit_bh+0x21/0x2e2 [ndiswrapper]
    Dec 12 23:09:12 localhost kernel: [<0212d25b>] worker_thread+0x168/0x1d5
    Dec 12 23:09:12 localhost kernel: [<428a3c8b>] xmit_bh+0x0/0x2e2 [ndiswrapper]
    Dec 12 23:09:12 localhost kernel: [<0211cf21>] default_wake_function+0x0/0xc
    Dec 12 23:09:12 localhost kernel: [<0211cf21>] default_wake_function+0x0/0xc
    Dec 12 23:09:12 localhost kernel: [<0212d0f3>] worker_thread+0x0/0x1d5
    Dec 12 23:09:12 localhost kernel: [<02130599>] kthread+0x73/0x9b
    Dec 12 23:09:12 localhost kernel: [<02130526>] kthread+0x0/0x9b
    Dec 12 23:09:12 localhost kernel: [<021041f1>] kernel_thread_helper+0x5/0xb


    It seems to happen most often when I am using an application that uses my wireless card, such as firefox, or yum.
    It also seems to happen most when the system is working hard. This led me to think that perhaps it was occuring due to the cpu overheating. However, I ran cpuburn for a good ten minutes, and nothing bad happened.
    I can find several pages on this error with google, but nobody seems to be having the exact problem that I am. Does anyone know more information about this?

    Thanks,
    Mike

  2. #2
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    You are experiencing a kernel panic. This could very well be caused by your wireless driver and ndis wrapper. Is there no driver for your card natively under Linux?

    You can also try recompiling your kernel with a different source tree. It may just be issues with ndiswrapper and that kernel...
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  3. #3
    Linux Newbie
    Join Date
    Oct 2004
    Posts
    133
    Thanks for the advice. I am currently compiling a new kernel. I'll try it out when it is done. I played around with the kernel configuration, but I wasn't sure which settings might be good to change. Do you have any suggestions?

    oh, my card is a broadcom 1350. Thus, sadly, there are no linux drivers available.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie
    Join Date
    Oct 2004
    Posts
    133
    Well, the new kernel seems to work without flaw!

    Thanks guys,
    ~Mike

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •