Giter Club home page Giter Club logo

Comments (11)

WanLinghao avatar WanLinghao commented on July 23, 2024 2

#98 fix this

from go-libvirt.

trapgate avatar trapgate commented on July 23, 2024

When this happens, is libvirt still responsive to virsh commands? Virsh uses the same rpc interface to talk to libvirt that go-libvirt uses, so if virsh also becomes unresponsive it would point to a problem in libvirt itself.

from go-libvirt.

dshemin avatar dshemin commented on July 23, 2024

Yes, it still responsive. I can call any virsh commands and they work correctly.

from go-libvirt.

vtolstov avatar vtolstov commented on July 23, 2024

when it fails again , can you try to dump all goroutines stack and share it with this issue?
Also can you try to compile you code (that sometimes fails like you say) with race detector?

from go-libvirt.

dshemin avatar dshemin commented on July 23, 2024

Yes, I compile my code with race detector and don't get any panics when it stuck, so it's not a race condition in my code (I hope 😄).
Attach archive with:

  • trace
  • cpu profile
  • mutex profile
  • goroutine profile

2020-01-14-02-17-35.zip

from go-libvirt.

vtolstov avatar vtolstov commented on July 23, 2024

i mean something different:
when you app if stuck and locks send to it SIGABRT so it prints to stderr all goroutine stack present on moment when you sent signal

from go-libvirt.

dshemin avatar dshemin commented on July 23, 2024

Ok, I will try to reproduce and dump goroutines.

from go-libvirt.

dshemin avatar dshemin commented on July 23, 2024

Goroutines dump in attached file.
goroutines.txt

from go-libvirt.

vtolstov avatar vtolstov commented on July 23, 2024

thanks, how much vm i can ran to may be reproduce this issue? 50 is enough?

from go-libvirt.

dshemin avatar dshemin commented on July 23, 2024

We reproduce this bug with 5 VMs. The main thing that all operations should perform in parallel.

from go-libvirt.

dshemin avatar dshemin commented on July 23, 2024

Looks like we found why we got a random hang on libvirt connection. We use the same connection for sending commands and for receiving events. And we got an idea that this is a key to the problem. So now we use two different connections. One is read-only for events and second for the commands and everything looks good.

from go-libvirt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.