[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cfagent hangs and eats 100 % CPU during evaluate command classes
From: |
Thomas Glanzmann |
Subject: |
Re: cfagent hangs and eats 100 % CPU during evaluate command classes |
Date: |
Thu, 9 Oct 2003 13:14:33 +0200 |
User-agent: |
Mutt/1.5.4i |
same thing on other machine:
faui00l:~# ps axuwww | grep cfagent
Warning: /boot/System.map has an incorrect kernel version.
root 32731 0.0 0.1 4100 1656 ? S 09:00 0:00
/var/cfengine/bin/cfagent -z
root 32734 95.3 0.1 4096 1656 ? R 09:00 240:44
/var/cfengine/bin/cfagent -z
root 2979 0.0 0.0 1336 436 pts/0 S 13:12 0:00 grep cfagent
faui00l:~# gdb /var/cfengine/bin/cfagent
GNU gdb 2002-04-01-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-linux"...
(gdb) attach 32734
Attaching to program: /var/cfengine/bin/cfagent, process 32734
Reading symbols from /usr/lib/libdb3.so.3...done.
Loaded symbols for /usr/lib/libdb3.so.3
Reading symbols from /usr/lib/libcrypto.so.0.9.6...done.
Loaded symbols for /usr/lib/libcrypto.so.0.9.6
Reading symbols from /lib/libnss_nis.so.2...done.
Loaded symbols for /lib/libnss_nis.so.2
Reading symbols from /lib/libpthread.so.0...done.
[New Thread 1024 (LWP 32734)]
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
0x4019620c in _init () from /lib/libpthread.so.0
(gdb) bt
#0 0x4019620c in _init () from /lib/libpthread.so.0
#1 0x401996be in fork () from /lib/libpthread.so.0
#2 0x0808b83f in cfpopen (command=0xbfffd6ec "/bin/grep -q 'Permedia 2'
/proc/pci", type=0x809ec51 "r") at popen.c:76
#3 0x08065ad1 in SetClassesOnScript (execstr=0xbfffd6ec "/bin/grep -q
'Permedia 2' /proc/pci", classes=0x812d3a8 "permedia", elseclasses=0x0,
useshell=0) at misc.c:711
#4 0x08070e8e in InstallGroupRValue (item=0x8145cc8 "/bin/grep -q 'Permedia 2'
/proc/pci", type=classscript) at install.c:1728
#5 0x0806737f in HandleGroupRValue (rval=0x8145cc8 "/bin/grep -q 'Permedia 2'
/proc/pci") at parse.c:594
#6 0x0808911e in yylex () at cflex.l:373
#7 0x08083640 in yyparse () at /usr/share/bison/bison.simple:573
#8 0x08067d65 in ParseFile (filename=0xbfffecfc
"/var/cfengine/inputs/cfagent.conf", env=0xbfffecfc
"/var/cfengine/inputs/cfagent.conf") at parse.c:1012
#9 0x080664ba in ParseInputFile (file=0x81064a0 "cfagent.conf") at parse.c:75
#10 0x0804b13e in main (argc=2, argv=0xbffffd94) at cfagent.c:133
(gdb) detach
Detaching from program: /var/cfengine/bin/cfagent, process 32734
(gdb) faui00l:~# pkill -9 cfagent
Greetings,
Thomas