bugs.html.in 6.6 KB
Newer Older
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE html>
3
<html xmlns="http://www.w3.org/1999/xhtml">
4 5 6 7
  <body>

    <h1>Bug reporting</h1>

8 9
    <ul id="toc"></ul>

10
    <h2><a id="security">Security Issues</a></h2>
11 12 13

    <p>
      If you think that an issue with libvirt may have security
M
Martin Kletzander 已提交
14
      implications, <strong>please do not</strong> publicly
15 16 17 18 19 20 21
      report it in the bug tracker, mailing lists, or irc. Libvirt
      has <a href="securityprocess.html">a dedicated process for handling (potential) security issues</a>
      that should be used instead. So if your issue has security
      implications, ignore the rest of this page and follow the
      <a href="securityprocess.html">security process</a> instead.
    </p>

22
    <h2><a id="bugtracking">Bug Tracking</a></h2>
23

24
    <p>
D
Dave Allan 已提交
25 26 27
      If you are using libvirt binaries from a Linux distribution
      check below for distribution specific bug reporting policies
      first.
28 29
    </p>

30
    <h2><a id="general">General libvirt bug reports</a></h2>
31 32

    <p>
33 34
      Bugs in upstream libvirt code should be reported as issues in the
      appropriate <a href="https://gitlab.com/libvirt">project on GitLab.</a>
D
Dave Allan 已提交
35 36
      Before submitting a ticket, check the existing tickets to see if
      the bug/feature is already tracked.
37
    </p>
D
Dave Allan 已提交
38 39 40 41
    <p>
      It's always a good idea to file bug reports, as the process of
      filing the report always makes it easier to describe the
      problem, and the bug number provides a quick way of referring to
42 43
      the problem.  However, not everybody in the community pays frequent
      attention to issues, so after you file a bug, asking questions
D
Dave Allan 已提交
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
      and submitting patches on <a href="contact.html">the libvirt
      mailing lists</a> will increase your bug's visibility and
      encourage people to think about your problem.  Don't hesitate to
      ask questions on the list, as others may know of existing
      solutions or be interested in collaborating with you on finding
      a solution.  Patches are always appreciated, and it's likely
      that someone else has the same problem you do!
    </p>
    <p>
      If you decide to write code, though, before you begin please
      read the <a href="hacking.html">contributor guidelines</a>,
      especially the first point: "Discuss any large changes on the
      mailing list first. Post patches early and listen to feedback."
      Few development experiences are more discouraging than spending
      a bunch of time writing a patch only to have someone point out a
      better approach on list.
    </p>
61 62

    <ul>
63 64
      <li><a href="https://gitlab.com/libvirt/libvirt/-/issues">View libvirt.git tickets</a></li>
      <li><a href="https://gitlab.com/libvirt/libvirt/-/issues/new">New libvirt.git ticket</a></li>
65 66
    </ul>

67 68 69 70 71 72
    <p>
      Note bugs in language bindings and other sub-projects should be
      reported to their corresponding git repository rather than the
      main libvirt.git linked above.
    </p>

73
    <h2><a id="distribution">Linux Distribution specific bug reports</a></h2>
74 75
    <ul>
      <li>
D
Dave Allan 已提交
76 77 78
        If you are using binaries from <strong>Fedora</strong>, enter
        tickets against the <code>Fedora</code> product and
        the <code>libvirt</code> component.
M
Matthew Booth 已提交
79 80 81 82
        <ul>
          <li><a href="http://bugzilla.redhat.com/buglist.cgi?component=libvirt&amp;product=Fedora">View Fedora libvirt tickets</a></li>
          <li><a href="http://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Fedora&amp;component=libvirt">New Fedora libvirt ticket</a></li>
        </ul>
83 84
      </li>
      <li>
D
Dave Allan 已提交
85 86 87 88 89 90 91 92
        <p>
          If you are using binaries from <strong>Red Hat Enterprise
          Linux</strong>, enter tickets against the Red Hat Enterprise
          Linux product that you're using (e.g., Red Hat Enterprise
          Linux 6) and the <code>libvirt</code> component.  Red Hat
          bugzilla has <a href="http://bugzilla.redhat.com">additional guidance</a> about getting support if
          you are a Red Hat customer.
        </p>
93 94
      </li>
      <li>
D
Dave Allan 已提交
95 96 97 98 99 100 101 102 103 104 105 106
        <p>
          If you are using binaries from another Linux distribution
          first follow their own bug reporting guidelines.
        </p>
      </li>
      <li>
        <p>
          Finally, if you are a contributor to another Linux
          distribution and would like to have your procedure for
          filing bugs mentioned here, please mail the libvirt
          development list.
        </p>
107 108 109 110
      </li>
    </ul>


111
    <h2><a id="quality">How to file high quality bug reports</a></h2>
112 113 114 115 116 117 118 119 120

    <p>
      To increase the likelihood of your bug report being addressed it is
      important to provide as much information as possible. When filing
      libvirt bugs use this checklist to see if you are providing enough
      information:
    </p>

    <ul>
121 122
      <li>The version number of the libvirt build, or SHA1 of the GIT
        commit</li>
123 124 125
      <li>The hardware architecture being used</li>
      <li>The name of the hypervisor (Xen, QEMU, KVM)</li>
      <li>The XML config of the guest domain if relevant</li>
126 127
      <li>For Xen hypervisor, the domain logfiles from /var/log/xen and
          /var/log/libvirt/libxl</li>
128 129 130
      <li>For QEMU/KVM, the domain logfile from /var/log/libvirt/qemu</li>
    </ul>

131 132 133 134
    <p>
      If the bug leads to a tool linked to libvirt crash, then the best
      is to provide a backtrace along with the scenario used to get the
      crash, the simplest is to run the program under gdb, reproduce the
D
Dave Allan 已提交
135
      steps leading to the crash and then issue a gdb "bt -a" command to
136
      get the stack trace, attach it to the bug. Note that for the
137
      data to be really useful libvirt debug information must be present
138 139 140 141
      for example by installing libvirt debuginfo package on Fedora or
      Red Hat Enterprise Linux (with debuginfo-install libvirt) prior
      to running gdb.</p>
    <p>
D
Dave Allan 已提交
142
      It may also happen that the libvirt daemon itself crashes or gets stuck,
143
      in the first case run it (as root) under gdb, and reproduce the sequence
144
      leading to the crash, similarly to a normal program provide the
145
      "bt" backtrace information to where gdb will have stopped.<br/>
D
Dave Allan 已提交
146
      But if libvirtd gets stuck, for example seems to stop processing
147 148 149 150 151
      commands, try to attach to the faulty daemon and issue a gdb command
      "thread apply all bt" to show all the threads backtraces, as in:</p>
      <pre> #  ps -o etime,pid `pgrep libvirt`
... note the process id from the output
# gdb /usr/sbin/libvirtd
152
.... some information about gdb and loading debug data
N
Nehal J Wani 已提交
153
(gdb) attach $the_daemon_process_id
154 155
....
(gdb) thread apply all bt
156
.... information to attach to the bug
157 158 159
(gdb)
</pre>

160 161
  </body>
</html>