[libvirt] Segfault in libvirtd when run as a service

Matthias Bolte matthias.bolte at googlemail.com
Thu Jun 10 20:01:07 UTC 2010


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.

Matthias




More information about the libvir-list mailing list