<br><br><div class="gmail_quote">On Fri, Jul 11, 2008 at 12:30 AM, David Lutterkort <<a href="mailto:lutter@watzmann.net">lutter@watzmann.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Raphael,<br>
<br>
first off, could you send these things tothe augeas-devel mailing list<br>
(<a href="https://www.redhat.com/mailman/listinfo/augeas-devel" target="_blank">https://www.redhat.com/mailman/listinfo/augeas-devel</a>) - I am sure there<br>
are other people that are interested in what you are doing, and<br>
discussing it on the list is a good way to keep everybody informed.<br>
<br>
Second, I am taking tomorrow off, and unfortunately, won't have time to<br>
look at the other emails you sent today before then, but I will take a<br>
look on Monday.<br>
<br>
Finally, the segfault: if you are using the released 0.2.1, there's a<br>
bug that makes augeas segfault if you have a node in the tree that does<br>
not have a value when Augeas thinks it should (because store is used for<br>
that node in the lens). It looks to me that the 'ins dns ...' line below<br>
creates such a node (no value assigned to it, but 'host_test_cont "dns"'<br>
in your lens has a 'store')<br>
<br>
Try setting the value for that new dns node to something; I bet the<br>
segfault will go away (otherwise, it's a different bug, and I'll look<br>
into it on Monday) BTW, that bug is fixed in mercurial, with changeset<br>
532:ef0102907692, but I haven't made a new release yet.<br>
<font color="#888888"></font></blockquote><div><br><br>augtool> ins dns after /files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/probes/url[2]<br>augtool> set /files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/probes/dns " "<br>

augtool> print /files/etc/bb/bb-hosts/page[1]/group-compress[1]/<br>/files/etc/bb/bb-hosts/page[1]/group-compress[1] = "Master"<br>/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host<br>/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/ip = "<a href="http://0.0.0.0/" target="_blank">0.0.0.0</a>"<br>

/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/fqdn = "<a href="http://actu00.echo-net.net/" target="_blank">actu00.echo-net.net</a>"<br>/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/probes<br>/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/probes/url[1] = "<a href="http://actu00.echo-net.net/" target="_blank">http://actu00.echo-net.net/</a>"<br>

/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/probes/url[2] = "<a href="http://master-actu.echo-net.net/php/actu.php" target="_blank">http://master-actu.echo-net.net/php/actu.php</a>"<br>/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/probes/dns = " "<br>

augtool> save<br>Saving failed<br><br><br>It doesn't segfault, but it doesn't work either :(<br><br>Furthermore, if I try to put it before the url, it fails :<br><br>augtool> ins dns before /files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/probes/url[1]<br>

augtool> print /files/etc/bb/bb-hosts/page[1]/group-compress[1]/<br>/files/etc/bb/bb-hosts/page[1]/group-compress[1] = "Master"<br>/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host<br>/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/ip = "<a href="http://0.0.0.0/" target="_blank">0.0.0.0</a>"<br>

/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/fqdn = "<a href="http://actu00.echo-net.net/" target="_blank">actu00.echo-net.net</a>"<br>/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/probes<br>/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/probes/url[1] = "<a href="http://actu00.echo-net.net/" target="_blank">http://actu00.echo-net.net/</a>"<br>

/files/etc/bb/bb-hosts/page[1]/group-compress[1]/host/probes/url[2] = "<a href="http://master-actu.echo-net.net/php/actu.php" target="_blank">http://master-actu.echo-net.net/php/actu.php</a>"<br><br><br>Raphaël<br>
<br><br><br></div></div>