[Spice-devel] [PATCH spice-server] tests: Test bug registering 2 vdagent devices

Christophe Fergeau cfergeau at redhat.com
Thu Feb 2 09:24:12 UTC 2017


On Tue, Jan 31, 2017 at 12:25:00PM -0500, Frediano Ziglio wrote:
> > 
> > On Tue, Jan 31, 2017 at 05:04:46PM +0000, Frediano Ziglio wrote:
> > > This reproduces https://bugzilla.redhat.com/show_bug.cgi?id=1411194
> > 
> > Maybe it does reproduce it, maybe not...
> > 
> > If you want a similar backtrace, this is enough:
> > 
> > int main(void)
> > {
> >     SpiceCoreInterface *core = basic_event_loop_init();
> >     Test *test = test_new(core);
> > 
> >     vmc_instances[0].base.sif = &vmc_interface.base;
> >     spice_server_add_interface(test->server, &vmc_instances[0].base);
> > 
> >     spice_server_remove_interface(&vmc_instances[0].base);
> >     spice_server_remove_interface(&vmc_instances[0].base);
> > 
> >     return 0;
> > }
> > 
> > Christophe
> > 
> 
> But this code surely don't reproduce the bug.
> And we don't know if the old reproduce the bug as the information
> provided in the bug are not enough so we can't technically reproduce
> the bug unless somebody provide more information.
> 
> Maybe a more reasonable:
> 
> "This attempts to reproduce https://bugzilla.redhat.com/show_bug.cgi?id=1411194
> and some other issues adding/removing vdagent device.
> The exact reproduction of the above bug is impossible as the information
> provided are not enough."

I'd just say that this gives a backtrace similar to https://bugzilla...
even though we haven't been able to reproduce it or figure out what's
causing it.

NB: this might have made more sense to squash this with "Add some NULL
checks to spice_server_remove_interface()", now this test case is no
longer crashing ;)

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20170202/422a5821/attachment.sig>


More information about the Spice-devel mailing list