Package: php-libvirt-php Version: 0.5.4-3 When I use libvirt_node_get_cpu_stats it results in a segmentation fault.:
$ tail /var/log/apache2/error.log [...] [Sun Feb 14 18:32:36.232927 2021] [core:notice] [pid 14362] AH00052: child pid 16391 exit signal Segmentation fault (11) [Sun Feb 14 18:32:36.233078 2021] [core:notice] [pid 14362] AH00052: child pid 16393 exit signal Segmentation fault (11) [Sun Feb 14 18:32:36.233112 2021] [core:notice] [pid 14362] AH00052: child pid 16394 exit signal Segmentation fault (11) [Sun Feb 14 18:32:37.235464 2021] [core:notice] [pid 14362] AH00052: child pid 16395 exit signal Segmentation fault (11) [Sun Feb 14 18:32:37.235580 2021] [core:notice] [pid 14362] AH00052: child pid 16396 exit signal Segmentation fault (11) [Sun Feb 14 18:32:37.235612 2021] [core:notice] [pid 14362] AH00052: child pid 16397 exit signal Segmentation fault (11) [Sun Feb 14 18:32:37.235642 2021] [core:notice] [pid 14362] AH00052: child pid 16398 exit signal Segmentation fault (11) [Sun Feb 14 18:32:37.235674 2021] [core:notice] [pid 14362] AH00052: child pid 16399 exit signal Segmentation fault (11) [Sun Feb 14 18:32:37.235704 2021] [core:notice] [pid 14362] AH00052: child pid 16400 exit signal Segmentation fault (11) [Sun Feb 14 18:32:37.235732 2021] [core:notice] [pid 14362] AH00052: child pid 16401 exit signal Segmentation fault (11) To recreate, insert the following line of code: <?php $conn = libvirt_connect("qemu:///system", false); if($conn) { $tmp = libvirt_node_get_cpu_stats($conn); //If I comment this line I don't have any segmentation fault. } ?> I also tried with libvirt_node_get_cpu_stats($conn, 1), but with the same result.