[augeas-devel] Re: [Augeas] Segfault with bbhosts.aug

Raphaël Pinson raphink at gmail.com
Fri Jul 11 09:40:50 UTC 2008


On Fri, Jul 11, 2008 at 12:30 AM, David Lutterkort <lutter at watzmann.net>
wrote:

> Hi Raphael,
>
> first off, could you send these things tothe augeas-devel mailing list
> (https://www.redhat.com/mailman/listinfo/augeas-devel) - I am sure there
> are other people that are interested in what you are doing, and
> discussing it on the list is a good way to keep everybody informed.
>
> Second, I am taking tomorrow off, and unfortunately, won't have time to
> look at the other emails you sent today before then, but I will take a
> look on Monday.
>
> Finally, the segfault: if you are using the released 0.2.1, there's a
> bug that makes augeas segfault if you have a node in the tree that does
> not have a value when Augeas thinks it should (because store is used for
> that node in the lens). It looks to me that the 'ins dns ...' line below
> creates such a node (no value assigned to it, but 'host_test_cont "dns"'
> in your lens has a 'store')
>
> Try setting the value for that new dns node to something; I bet the
> segfault will go away (otherwise, it's a different bug, and I'll look
> into it on Monday) BTW, that bug is fixed in mercurial, with changeset
> 532:ef0102907692, but I haven't made a new release yet.
>


augtool> ins dns after
/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/probes/url[2]
augtool> set
/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/probes/dns " "
augtool> print /files/etc/bb/bb-hosts/page[1]/group-compress[1]/
/files/etc/bb/bb-hosts/page[1]/group-compress[1] = "Master"
/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host
/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/ip = "0.0.0.0"
/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/fqdn = "
actu00.echo-net.net"
/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/probes
/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/probes/url[1] = "
http://actu00.echo-net.net/"
/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/probes/url[2] = "
http://master-actu.echo-net.net/php/actu.php"
/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/probes/dns = " "
augtool> save
Saving failed


It doesn't segfault, but it doesn't work either :(

Furthermore, if I try to put it before the url, it fails :

augtool> ins dns before
/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/probes/url[1]
augtool> print /files/etc/bb/bb-hosts/page[1]/group-compress[1]/
/files/etc/bb/bb-hosts/page[1]/group-compress[1] = "Master"
/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host
/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/ip = "0.0.0.0"
/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/fqdn = "
actu00.echo-net.net"
/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/probes
/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/probes/url[1] = "
http://actu00.echo-net.net/"
/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/probes/url[2] = "
http://master-actu.echo-net.net/php/actu.php"


Raphaël
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20080711/2e49a2af/attachment.htm>


More information about the augeas-devel mailing list