<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Pulseaudio dies when using mmkbd-evdev and the input device is unplugged"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=80867">80867</a>
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>lennart@poettering.net
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Pulseaudio dies when using mmkbd-evdev and the input device is unplugged
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sb-fdbugs@enotty.net
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>modules
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>PulseAudio
          </td>
        </tr></table>
      <p>
        <div>
        <pre>With the mmkbd-evdev module enabled e.g. like so in ~/.pulse/default:

  load-module module-mmkbd-evdev
device=/dev/input/by-id/usb-0430_Sun_USB_Keyboard-event-kbd

pulseaudio crashes when that keyboard is unplugged.  The following messages
are logged to syslog:

  Jul 3 19:21:17 hostname pulseaudio[11515]: [pulseaudio] module-mmkbd-evdev.c:
  Lost connection to evdev device.
  Jul 3 19:21:17 hostname pulseaudio[11515]: [pulseaudio] module-mmkbd-evdev.c:
  Assertion 'pa_close(u->fd) == 0' failed at modules/module-mmkbd-evdev.c:260,
  function module_mmkbd_evdev_LTX_pa__done(). Aborting.

I would guess that the fd has already been closed and close(2) returns EBADF
to pa_close().</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>