[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: another mysterious segfault
From: |
Mark Burgess |
Subject: |
Re: another mysterious segfault |
Date: |
Tue, 30 Aug 2005 07:44:16 +0200 |
Speed has nothing to do with it. Cfengine was written in C bcause there
was no alternative when I started cfengine. But even a scripting
language will not help avoid a seg fault, if it is caused by a pathology
of the system. I know people have this irrational belief in perl as
language for everything, but you just can't do serious programming in
perl. It's too primitive as a language.
I don't know what is causing these segfaults in kickstart, but clearly
it must be something in that environment and not specifically cfengine
if it only occurs there. Cfengine does a lot of memory allocation
compared to other progams, so any bug will be easy to trip over.
My money is on th C library.
M
On Mon, 2005-08-29 at 16:20 -0700, Lars Damerow wrote:
> >From Ed Brown <ebrown@lanl.gov>, Mon, Aug 29, 2005 at 05:10:11PM -0600:
> > On Mon, 2005-08-29 at 15:49, Lars Damerow wrote:
> > > I really wish there were a better way to debug cfengine during kickstart.
> >
> > To make a kickstart script more robust and versatile, you can
> > error-check every significant step, and if failure is detected, start a
> > sub-shell. This gives you the opportunity to debug and work around
> > one-time problems, probably resulting in a successful install without
> > starting all over. Here's some excerpts by way of suggestion. (A
> > subroutine could make the error-checking
> > routine easier, I just haven't got around to re-writing this...)
>
> Thanks for the tip! I'll try it out to see if it'll help with this particular
> problem, but sadly it won't help me in the long term; the number of machines
> we
> have precludes any interactive steps in our machine buildouts.
>
> I have a very naive question--is there any reason aside from speed that
> cfengine is written in C? The sysadmin in me can't help but think that a
> scripting language would have better error reporting than
> "Segmentation fault." ;)
>
> cheers,
> lars
>
> --
> lars damerow
> button pusher
> pixar animation studios
> lars@pixar.com
>
> Share and Enjoy!
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine
- another mysterious segfault, Lars Damerow, 2005/08/26
- Re: another mysterious segfault, Mark Burgess, 2005/08/27
- Re: another mysterious segfault, Lars Damerow, 2005/08/28
- Re: another mysterious segfault, Mark Burgess, 2005/08/28
- Re: another mysterious segfault, Lars Damerow, 2005/08/29
- Re: another mysterious segfault, Ed Brown, 2005/08/29
- Re: another mysterious segfault, Lars Damerow, 2005/08/29
- Re: another mysterious segfault, Frank Smith, 2005/08/29
- Re: another mysterious segfault, Chris Babcock, 2005/08/29
- Re: another mysterious segfault, Lars Damerow, 2005/08/30
- Re: another mysterious segfault,
Mark Burgess <=
- Language functionality (was: Re: another mysterious segfault), Tim Nelson, 2005/08/30
- Re: Language functionality (was: Re: another mysterious segfault), Mark Burgess, 2005/08/31
- Re: Language functionality (was: Re: another mysterious segfault), Tim Nelson, 2005/08/31
- Re: another mysterious segfault, Ed Brown, 2005/08/30
- Re: another mysterious segfault, Frank Smith, 2005/08/29
- Re: another mysterious segfault, Mark Burgess, 2005/08/30
Re: another mysterious segfault, Jeff Sheltren, 2005/08/28