help-cfengine@gnu.org
[Top] [All Lists]

Re: another mysterious segfault

Subject: Re: another mysterious segfault
From: Jeff Sheltren
Date: Sun, 28 Aug 2005 04:53:20 -0700 PDT
> Hi folks,
>
> I'm trying to track down another mysterious segfault in cfagent. It
> doesn't
> happen every time I run cfagent, which makes it very frustrating. Here's
> the
> backtrace:
>
>     #0  0x00002aaaab3f04c8 in _int_malloc () from /lib64/libc.so.6
>     #1  0x00002aaaab3f1d6b in malloc () from /lib64/libc.so.6
>     #2  0x000000000041d99e in AppendItem (liststart=0x7fffffd8dbe8,
> itemstring=0x5ece80 "# To use this server type you should add -query
> host or -indirect host", classes=0x0)
>         at item.c:316
>     #3  0x000000000042274e in LoadItemList (liststart=0x7fffffd8dbe8,
> file=0x671a30 "/etc/X11/gdm/gdm.conf") at item-file.c:80
>     #4  0x000000000042ed14 in DoEditFile (ptr=0x6719b0, filename=0x671a30
> "/etc/X11/gdm/gdm.conf") at edittools.c:393
>     #5  0x0000000000430bf8 in WrapDoEditFile (ptr=0x6719b0,
> filename=0x671a30 "/etc/X11/gdm/gdm.conf") at edittools.c:330
>     #6  0x000000000040f75f in EditFiles () at do.c:2257
>     #7  0x0000000000407805 in DoTree (passes=2, info=0x45f5a7 "Main Tree")
> at cfagent.c:1268
>     #8  0x0000000000408110 in main (argc=4, argv=0x0) at cfagent.c:182
>     #9  0x00002aaaab3a14cc in __libc_start_main () from /lib64/libc.so.6
>     #10 0x00000000004044c9 in _start ()
>     #11 0x00007fffffd8ff58 in ?? ()
>     #12 0x0000000000000000 in ?? ()
>
> I'm puzzled as to why it's segfaulting during a malloc while reading in
> that
> file; the only thing of note for the particular line it's reading is that
> the
> line appears twice in the file.
>
> Does this sound familiar to anyone?
>
> thanks,
> lars
>
Hi Lars, could you post the editfiles command(s) you are running and
perhaps the contents of the file you are editing?  Perhaps that could help
figure out the problem.  Is there any type of pattern at all with when it
fails and when it succeeds?

-Jeff


_______________________________________________
Help-cfengine mailing list
Help-cfengine@xxxxxxx
http://lists.gnu.org/mailman/listinfo/help-cfengine

<Prev in Thread] Current Thread [Next in Thread>