2.5.7 process accounting bombs out
Whenever I try to start the init script for process accounting I get the following error:
Mar 27 00:02:02 ccs kernel: kernel BUG at acct.c:169! Mar 27 00:02:02 ccs kernel: invalid operand: 0000 Mar 27 00:02:02 ccs kernel: CPU: 0 Mar 27 00:02:02 ccs kernel: EIP: 0010:[acct_file_reopen+8/208] Not tainted Mar 27 00:02:02 ccs kernel: EFLAGS: 00010246
The system doesn't go down, but is there any way to fix this?
Thanks.
Signature · 2 lines
John Covici
[email protected]Quoted 10 lines · John Covici
Whenever I try to start the init script for process accounting I get the following error:
Mar 27 00:02:02 ccs kernel: kernel BUG at acct.c:169! Mar 27 00:02:02 ccs kernel: invalid operand: 0000 Mar 27 00:02:02 ccs kernel: CPU: 0 Mar 27 00:02:02 ccs kernel: EIP: 0010:[acct_file_reopen+8/208] Not tainted Mar 27 00:02:02 ccs kernel: EFLAGS: 00010246
Quoted 7 lines
The system doesn't go down, but is there any way to fix this?
Thanks.
Signature · 2 lines
John Covici [email protected]
Apply the patch below.
Signature · 30 lines
Bob Miller Email: [email protected] Open Source Development Lab Phone: 503.626.2455 Ext. 17 # This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.537 -> 1.538 # kernel/acct.c 1.8 -> 1.9 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 02/03/21 [email protected] 1.538 # Fixed acct.c code by removing the BUG_ON code because it doesn't work # on UP systems. # -------------------------------------------- # diff -Nru a/kernel/acct.c b/kernel/acct.c --- a/kernel/acct.c Thu Mar 21 11:32:05 2002 +++ b/kernel/acct.c Thu Mar 21 11:32:05 2002 @@ -166,8 +166,6 @@ { struct file *old_acct = NULL; - BUG_ON(!spin_is_locked(&acct_globals.lock)); - if (acct_globals.file) { old_acct = acct_globals.file; del_timer(&acct_globals.timer);
Thanks much, that did it.
Quoted 22 lines · Bob Miller
Quoted 10 lines · John Covici
Whenever I try to start the init script for process accounting I get the following error:
Mar 27 00:02:02 ccs kernel: kernel BUG at acct.c:169! Mar 27 00:02:02 ccs kernel: invalid operand: 0000 Mar 27 00:02:02 ccs kernel: CPU: 0 Mar 27 00:02:02 ccs kernel: EIP: 0010:[acct_file_reopen+8/208] Not tainted Mar 27 00:02:02 ccs kernel: EFLAGS: 00010246Quoted 7 lines
The system doesn't go down, but is there any way to fix this?
Thanks.
--
John Covici
[email protected]Apply the patch below.
Signature · 2 lines
John Covici
[email protected]