help-cfengine
[Top][All Lists]
Advanced

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

Re: Solaris 2.6 cfexecd 2.1.13 problem


From: Adam M. Dunn
Subject: Re: Solaris 2.6 cfexecd 2.1.13 problem
Date: Wed, 23 Feb 2005 12:22:35 -0600 (CST)

I've been having a very similar problem throughout the last few versions
of cfengine.  I don't know if it's identical to yours, but I've been
getting segfaults non the less with 3.x compilers, and now 2.95 compilers 
also on some versions of Solaris.  It's becoming very annoying. 

Back when I was using 2.1.11, I couldn't get it to run in daemon mode
without seqfaulting when I compiled using gcc 3.x.  My solution then was
to use 2.95 which solved it.  When I upgraded to 2.1.13, I couldn't even
get it to compile at all on a Solaris 5.8 or above with gcc 3.x.  I get 
compile errors.  Gcc 2.95 compiled fine, but it started having that
seqfault problem on some machines too.  However, compiliations I did on
Solaris 2.6 with gcc 2.95 don't seem to have any problems, so I've been
using those binaries on all our versions of Solaris with no problems yet.

Doing work arounds always scares me.  The thing here that bothers me is
when we retire our 2.6 boxes I either have to keep one of these old 
machines around just for compiling new versions of cfengine, or I'm out of
luck!
                                                                                
Mark looked at this problem with me once before and we could never
pinpoint it, but I think it's a pretty serious issue that needs
investigating by someone.
                                                                                
                                                                                
~Adam



On Tue, 22 Feb 2005, Tod Oace wrote:

> Apparently nobody else had the same cfexecd problem as me but in case 
> someone does...
> Recompiling OpenSSL/BerkeleyDB/Cfengine with gcc 2.95.3 fixed the 
> problem.
> 
> The core dumping cfexecd's came from gcc 3.1 and then gcc 3.3 on a 
> fully patched Solaris 2.6 system. Maybe gcc 3.4 would help, but I don't 
> have that handy on Solaris so I didn't try it. I also didn't try  gcc 
> 3.x on Solaris 2.7 or 2.8 so I don't know if it's a gcc 3.x + Solaris 
> 2.6 problem or a gcc 3.x + Solaris 2.x problem.
> 
> Anyway, I hope this helps someone someday.  -Tod
> 
> 
> On Feb 14, 2005, at 17:01, Tod Oace wrote:
> 
> > Has anyone seen cfexecd (or anything) seg fault on _run_prefork?
> > Should I be compiling cfengine without threading somehow?
> > Running "/var/cfengine/bin/cfagent -z -D from_cfexecd" by hand works 
> > and produces a blank line.
> >
> > # /usr/intel/bin/gdb cfexecd core
> > GNU gdb 5.2.1
> > 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 "sparc-sun-solaris2.6"...
> > Core was generated by `/usr/local/sbin/cfexecd -F'.
> > Program terminated with signal 11, Segmentation fault.
> > Reading symbols from /usr/lib/libpthread.so.1...done.
> > Loaded symbols for /usr/lib/libpthread.so.1
> > Reading symbols from /usr/lib/libnsl.so.1...done.
> > Loaded symbols for /usr/lib/libnsl.so.1
> > Reading symbols from /usr/lib/libsocket.so.1...done.
> > Loaded symbols for /usr/lib/libsocket.so.1
> > Reading symbols from /usr/lib/libm.so.1...done.
> > Loaded symbols for /usr/lib/libm.so.1
> > Reading symbols from /usr/lib/libelf.so.1...done.
> > Loaded symbols for /usr/lib/libelf.so.1
> > Reading symbols from /usr/lib/libsec.so.1...done.
> > Loaded symbols for /usr/lib/libsec.so.1
> > Reading symbols from /usr/lib/libc.so.1...done.
> > Loaded symbols for /usr/lib/libc.so.1
> > Reading symbols from /usr/lib/libdl.so.1...done.
> > Loaded symbols for /usr/lib/libdl.so.1
> > Reading symbols from /usr/lib/libmp.so.2...done.
> > Loaded symbols for /usr/lib/libmp.so.2
> > Reading symbols from 
> > /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1...done.
> > Loaded symbols for /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
> > Reading symbols from /usr/lib/libthread.so.1...done.
> > Loaded symbols for /usr/lib/libthread.so.1
> > #0  0xef4d1728 in _run_prefork () from /usr/lib/libthread.so.1
> > (gdb) bt
> > #0  0xef4d1728 in _run_prefork () from /usr/lib/libthread.so.1
> > #1  0xef4d2fc8 in fork1 () from /usr/lib/libthread.so.1
> > #2  0x0002b26c in cfpopen (
> >     command=0xefffed70 "/var/cfengine/bin/cfagent -z -D from_cfexecd",
> >     type=0x113da8 "r") at popen.c:74
> > #3  0x000299fc in GetCfStuff () at cfexecd.c:492
> > #4  0x0002916c in StartServer (argc=2, argv=0xeffffecc) at 
> > cfexecd.c:297
> > #5  0x00028b6c in main (argc=2, argv=0xeffffecc) at cfexecd.c:124
> 
> -- 
> Tod Oace, Intel Corporation <address@hidden>
> 
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-cfengine
> 
> 





reply via email to

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