VC顯示虛擬機器CPU被鎖定

wxbtsinghua發表於2015-08-20

RedHat Enterprise Linux 6.2 - kernel BUG at kernel/exit.c:1039!

Environment

SW:
RedHat Enterprise Linux 6.2
kernel 2.6.32-220.4.2.el6.i686(Guest OS)

HW:
HP ProLiant DL360p Gen8
Questions/Symptoms

On above environment, the below panic may happen.

kernel BUG at kernel/exit.c:1039! <==
invalid opcode: 0000 [#1] SMP
...
Pid: 32725, comm: java Tainted: P ---------------- 2.6.32-220.4.2.el6.i686 #1
HP ProLiant DL360p Gen8
EIP: 0060:[<c045908d>] EFLAGS: 00010286 CPU: 19 EIP is at do_exit+0x4cd/0x740
...
Stack:
...
Call Trace:
[<c043f952>] ? task_rq_lock+0x42/0x80
[<c082f931>] ? mutex_lock+0x11/0x40
[<c04593d1>] ? sys_exit+0x11/0x20
[<c0830c94>] ? syscall_call+0x7/0xb
[<c0830000>] ? __down+0x20/0x80

0897 NORET_TYPE void do_exit(long code)
0898 {
...
1035 exit_rcu();
1036 /* causes final put_task_struct in finish_task_switch(). */
1037 tsk->state = TASK_DEAD;
1038 schedule();
*1039 BUG(); <===
1040 /* Avoid "noreturn function does return". */
1041 for (;;)
1042 cpu_relax(); /* For when BUG is null */
1043 }

Cause
The root cause is a kernel bug.
// from kernel changelog
- [kernel] sched: Fix ancient race in do_exit() (Frantisek Hrbata) [805457 784758]

Answer/Solution
Upgrade to kernel 2.6.32-220.17.1 or higher

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8551823/viewspace-1777627/,如需轉載,請註明出處,否則將追究法律責任。

相關文章