Re: [libvirt] [OpenVZ]

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

 



On Tue, Dec 16, 2008 at 03:02:29PM +0300, Anton Protopopov wrote:
> >
> > > If it is, then here is a result of command
> > > [root@snow tmp]# LIBVIRT_DEBUG=yes virsh create ju >ham 2>&1
> > > Segmentation fault
> >
> Now I have a patch (see next message), that fixes that problem.
> 
> Nevertheless, the other problem is still here and its name is 'pthread
> usage':

After a quick look at the code, most likely suspect is the src/openvz_conf.c
file, the openvzLoadDomains method.

Where it does

        if (VIR_ALLOC(dom) < 0 ||
            VIR_ALLOC(dom->def) < 0)
            goto no_memory;

There is a missing called to

        pthread_mutex_init(&dom->lock, NULL);

So we're likely trying to lock an un-initialized mutex which is results in
'undefined' behaviour.


Can you add that init call and let me know if that helps..

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

--
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]