bug-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cfexecd -d1: segmentation fault


From: Andrew Stribblehill
Subject: cfexecd -d1: segmentation fault
Date: Mon, 17 Feb 2003 17:54:29 +0000
User-agent: Mutt/1.4i

When I run cfexecd with the argument, '-d1' on its own, I get the
following:

# cfexecd -d1
cfexecd Debug mode: running in foreground
Directory for /var/lib/cfengine2/inputs/update.conf exists. Okay
Directory for /usr/sbin/cfagent exists. Okay
Directory for /var/lib/cfengine2/outputs/spooled_reports exists. Okay
GetNameInfo()
WildMatch(-,linux)
WildMatch(-,linux)
WildMatch(sunos,linux)
WildMatch(ultrix,linux)
WildMatch(hp-ux,linux)
WildMatch(aix,linux)
WildMatch(linux,linux)
WildMatch(*,i686)
WildMatch(*,2.4.19-686)
AddClassToHeap(linux)
AddClassToHeap(wompom)
AddClassToHeap(wompom)
AddClassToHeap()
AddClassToHeap(wompom)
AddClassToHeap(32_bit)
AddClassToHeap(linux_2_4_19_686)
AddClassToHeap(i686)
AddClassToHeap(linux_i686)
AddClassToHeap(linux_i686_2_4_19_686)
AddClassToHeap(linux_i686_2_4_19_686__1_Mon_Nov_18_23_59_03_EST_2002)
AddClassToHeap(compiled_on_linux_gnu)
Adding alias localhost..
AddClassToHeap(localhost)
GetLock(cfexecd,execd,time=1045504161), ExpireAfter=0, IfElapsed=0
GetLastLock()
CheckOldLock(lock..wompom.cfexecd.execd)
Lock lock..wompom.cfexecd.execd last ran at Mon Feb 17 17:40:02 2003

LockLog(Lock expired, process killed)
SetLock(lock..wompom.cfexecd.execd)
PutLock(lock..wompom.cfexecd.execd)
cfpopen(/usr/sbin/cfagent -z)
Got cfengine SMTP server as (localhost)
Got cfengine sysadm variable (address@hidden)
Got full qualified name (wompom.dur.ac.uk)
Got IP (127.0.0.1)
cfpclose(pp)
cfpopen - Waiting for process 16603
                                        <---- (it sleeps for a minute)
AddClassToHeap(Monday)
AddClassToHeap(Hr17)
AddClassToHeap(Min50)
AddClassToHeap(Min50_55)
AddClassToHeap(Q4)
AddClassToHeap(Hr17_Q4)
AddClassToHeap(Day17)
AddClassToHeap(February)
AddClassToHeap(Yr2003)
GetNameInfo()
WildMatch(-,linux)
WildMatch(-,linux)
WildMatch(sunos,linux)
WildMatch(ultrix,linux)
WildMatch(hp-ux,linux)
WildMatch(aix,linux)
WildMatch(linux,linux)
WildMatch(*,i686)
WildMatch(*,2.4.19-686)
AddClassToHeap(linux)
AddClassToHeap(wompom)
AddClassToHeap(wompom)
AddClassToHeap()
Segmentation fault (core dumped)

The backtrace looks like this:

(gdb) bt
#0  0x4029a31a in mallopt () from /lib/libc.so.6
#1  0x40299d28 in mallopt () from /lib/libc.so.6
#2  0x40299787 in calloc () from /lib/libc.so.6
#3  0x402dbacc in re_exec () from /lib/libc.so.6
#4  0x402da4ce in re_exec () from /lib/libc.so.6
#5  0x402d8b93 in re_exec () from /lib/libc.so.6
#6  0x402d8699 in re_exec () from /lib/libc.so.6
#7  0x402d7ce1 in regexec () from /lib/libc.so.6
#8  0x0805169e in DeleteItemMatching (list=0x805b1fc,
    string=0x8057e72 "undefined_domain") at item-ext.c:627
#9  0x0805004f in DeleteClassFromHeap (class=0x8057e72 "undefined_domain")
    at eval.c:324
#10 0x0804d04b in SetDomainName (sp=0x80b6e90 "wompom") at nameinfo.c:472
#11 0x0804c275 in GetNameInfo () at nameinfo.c:123
#12 0x0804a6fb in ScheduleRun () at cfexecd.c:493
#13 0x0804a0f1 in StartServer (argc=2, argv=0xbffffcf4) at cfexecd.c:293
#14 0x08049cb1 in main (argc=2, argv=0xbffffcf4) at cfexecd.c:128

Something fishy is going on, since SetDomainName() on its own works
fine. (It doesn't set the domain name -- just adds "wompom" to
VHEAP.)

-- 
NORTH FITZROY SOLE
SOUTHEASTERLY 7 TO SEVERE GALE 9, VEERING WESTERLY 6 IN WEST LATER.
RAIN OR SHOWERS. MODERATE OR GOOD




reply via email to

[Prev in Thread] Current Thread [Next in Thread]