This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Kernel Bug: scheduling while atomic

Hello,

I had a kernel bug reporting:

Kernel Bug: scheduling while atomic myProcessName/0x4/PID

After this message is raised my application stop working. Also my program is added to inittab as "respawn" but also it does not restart again.

Has anyone encountered with these bug?

Thanks in advance

  • Which SoC and which kernel version are you using? Can you migrate to a later version?

    It would be helpful to know what does your application try to do. Do you have a stack trace to go with it?

    Regards,

    Vaibhav

  • Sorry for the missing information

    I am working on dm6446 EVM with kernel 2.6.18. MontaVista 5 is running over the system.

    My code uses boost libraries to accomplish a webserver job to make livestream processed image. For webserver I'm using mongoose for webserver. I'm getting raw image from analog camera and using DSP for image processing. This bug does not raise all the time. There are over 20 cards running with the same program but only one of them raised it.

    Thanks in advance

  • The problem that you are having might have already been fixed in the later kernel versions. So it's hard to say what's going wrong. One scenario where this could happen is when a driver disables interrupts and then goes to idle.

    SInce your application uses the networking stack i would suggest looking at the ethernet driver to begin with.

    Regards,

    Vaibhav