[libvirt] Segfault in libvirtd when run as a service

Emre Erenoglu erenoglu at gmail.com
Thu Jun 10 21:45:52 UTC 2010


On Thu, Jun 10, 2010 at 11:01 PM, Matthias Bolte <
matthias.bolte at googlemail.com> wrote:

> 2010/6/10 Matthias Bolte <matthias.bolte at googlemail.com>:
> > 2010/6/10 Emre Erenoglu <erenoglu at gmail.com>:
> >> On Thu, Jun 10, 2010 at 10:35 PM, Matthias Bolte
> ...
> >>
> >> OK. I guess it's used to find the dhcp daemon, iptables etc.  Other
> service
> >> scripts seem to work happily without this PATH, but I'll ask developers
> to
> >> add it to the python service environment to make sure it works fine.
> >>
> >> Thanks again Matthias, Daniel!  I'm a happy guy now :)
> >>
> >> Emre Erenoglu
> >>
> >
> > Yes, libvirt tries to discover that binaries via the PATH.
> >
> > The utility function virFindFileInPath used the result of
> > getenv("PATH") without checking it for NULL. I'll post a patch for
> > that in a bit.
> >
> > Matthias
> >
>
> As an additional note: you'll need to have PATH set even when this bug
> is fixed, because libvirtd discovers the QEMU binaries and the other
> relevant binaries via the PATH. So you should define PATH for libvirtd
> in a way that it can find those binaries.
>

OK, I'll make sure the PATH is there. I'm fixing the service script now.

-- 
Emre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100611/12b9b2b2/attachment-0001.htm>


More information about the libvir-list mailing list