Re: [libvirt-php] libvirt_domain_interface_addresses causing segfault

2020-04-16 Thread Fernando Casas Schössow
Excellent and thanks again the rapid response. Fernando On jue, abr 16, 2020 at 1:22 PM, Michal Privoznik wrote: On 4/16/20 12:32 PM, Fernando Casas Schössow wrote: > Pushed fix for both problems. Michal

Re: [libvirt-php] libvirt_domain_interface_addresses causing segfault

2020-04-16 Thread Michal Privoznik
On 4/16/20 12:32 PM, Fernando Casas Schössow wrote: > Pushed fix for both problems. Michal

Re: [libvirt-php] libvirt_domain_interface_addresses causing segfault

2020-04-16 Thread Fernando Casas Schössow
That was fast! Thanks a lot Michal. Kind regards, Fernando On jue, abr 16, 2020 at 12:21 PM, Michal Privoznik wrote: On 4/16/20 12:08 AM, Fernando Casas Schössow wrote: I think I found the problem and it seems to affect only Windows guests. I'm not sure about the cause tough. Possible

Re: [libvirt-php] libvirt_domain_interface_addresses causing segfault

2020-04-16 Thread Michal Privoznik
On 4/16/20 12:08 AM, Fernando Casas Schössow wrote: I think I found the problem and it seems to affect only Windows guests. I'm not sure about the cause tough. Possible causes: 1- Network interface names containing white spaces. 2- One of the interfaces not reporting a MAC address.

[libvirt-php] libvirt_domain_interface_addresses causing segfault

2020-04-16 Thread Fernando Casas Schössow
Hi, While executing libvirt_domain_interface_addresses() with the qemu-agent running in the guest as the source, the function causes PHP to segfault. If I change the source to either dhcp or arp, the function executes correctly. Example: $netdetails =

Re: [libvirt-php] libvirt_domain_interface_addresses causing segfault

2020-04-16 Thread Fernando Casas Schössow
I think I found the problem and it seems to affect only Windows guests. I'm not sure about the cause tough. Possible causes: 1- Network interface names containing white spaces. 2- One of the interfaces not reporting a MAC address. As an example here is the output of the equivalent virsh