Re: [libvirt-php] libvirt_connect not reading out credential info on 0.5.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05.09.2016 23:08, Fernando Casas Schössow wrote:
> Hi again Michal,
> 
> I have more information to share.
> I think I can confirm that the patches are actually fixing the
> credentials problem and they are passed along.
> This is the content of test.log with libvirt-php output:
> 
> [2016-09-05 22:06:05 libvirt-php/core ]: libvirt_connect: credentials
> index 2
> [2016-09-05 22:06:05 libvirt-php/core ]: libvirt_connect: credentials
> index 5
> [2016-09-05 22:06:05 libvirt-php/core ]: libvirt_connect: Found 2
> elements for credentials
> [2016-09-05 22:06:05 libvirt-php/core ]: libvirt_virConnectAuthCallback:
> cred 0, type 5, prompt Enter Administrator's password for 192.168.7.2
> challenge 192.168.7.2
> [2016-09-05 22:06:05 libvirt-php/core ]: libvirt_virConnectAuthCallback:
> result somepass (16)
> 
> Of course then the process is crashing and the connection is aborted so
> I believe that the patches work fine (they fix the connection
> credentials not passed along issue) but once this is fixed the other
> problem is uncovered.

Cool, so at least that's confirmed. Can you please attach a debugger to
your php (or run php straight from it). Also, the stack trace is the
result of 'backtrace' command in gdb, not strace (which is a system call
tracer).

$ gdb $(which php)
(gdb) run test.php
(gbd) backtrace

And while you're at it:
$ valgrind --leak-check=full $(which php) test.php

Thank you.

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]