<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Race condition involving module-x11-bell and socket activation"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93109">93109</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Race condition involving module-x11-bell and socket activation
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>PulseAudio
          </td>
        </tr>

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

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

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

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

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

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

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

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

        <tr>
          <th>Reporter</th>
          <td>ewtoombs@uwaterloo.ca
          </td>
        </tr>

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

        <tr>
          <th>CC</th>
          <td>lennart@poettering.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>To start with, this bug only happens when I load module-x11-bell.

I'm starting pulseaudio immediately so that it can handle X11 bell events
immediately. When socket activation is on, though, pulseaudio fails to start.
These are the first few error messages:

Nov 25 10:54:28 lazarus slim[433]: E: [pulseaudio] socket-server.c: bind():
Address already in use
Nov 25 10:54:28 lazarus slim[433]: E: [pulseaudio] module.c: Failed to load
module "module-native-protocol-unix" (argument: ""): initialization failed.
Nov 25 10:54:28 lazarus slim[433]: E: [pulseaudio] main.c: Module load failed.
Nov 25 10:54:28 lazarus systemd[471]: Starting Sound Service...
Nov 25 10:54:28 lazarus slim[433]: E: [pulseaudio] main.c: Failed to initialize
daemon.

This happens with slim and with startx. Delaying pulseaudio's start by about 2
seconds resolves the race condition for both. Disabling socket activation also
resolves the race condition:

mkdir -p ~/.config/systemd/user
systemctl --user mask pulseaudio.socket

I'll come back with the -vvvvv output.</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>