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

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Crash on shutdown, Assertion 'a >= 0 && a < _JOB_TYPE_MAX_MERGING' failed"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=67427">67427</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>Crash on shutdown, Assertion 'a >= 0 && a < _JOB_TYPE_MAX_MERGING' failed
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>critical
          </td>
        </tr>

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

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

        <tr>
          <th>Reporter</th>
          <td>ivan@ludios.org
          </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>general
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=83113" name="attach_83113" title="journals with Assertion 'a >= 0 && a < _JOB_TYPE_MAX_MERGING' failed">attachment 83113</a> <a href="attachment.cgi?id=83113&action=edit" title="journals with Assertion 'a >= 0 && a < _JOB_TYPE_MAX_MERGING' failed">[details]</a></span>
journals with Assertion 'a >= 0 && a < _JOB_TYPE_MAX_MERGING' failed

When I shut down or reboot NixOS (unstable channel, systemd 203 or 206), the
system never finishes shutting down.  After I forcefully reboot it, I see this
in the journal:

Jul 28 06:55:05 nixos systemd[1]: Assertion 'a >= 0 && a <
_JOB_TYPE_MAX_MERGING' failed at src/core/job.c:338, function
job_type_lookup_merge(). Aborting.
Jul 28 06:55:05 nixos systemd[1]: Caught <ABRT>, dumped core as pid 2017.
Jul 28 06:55:05 nixos systemd[1]: Freezing execution.

Full journals are attached, including one where I tried systemd 206.

# uname -a
Linux nixos 3.4.54 #1 SMP Tue Jul 23 21:48:39 UTC 2013 x86_64 GNU/Linux

My NixOS install is running as a guest in VMWare Workstation 9.0.2 on a CentOS
6.4 host.  The guest has the default VMWare guest hardware.


NixOS builds systemd with these options:

<a href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/systemd/default.nix">https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/systemd/default.nix</a>

and these patches:

<a href="https://github.com/NixOS/nixpkgs/tree/master/pkgs/os-specific/linux/systemd">https://github.com/NixOS/nixpkgs/tree/master/pkgs/os-specific/linux/systemd</a>

and uses these units:

<a href="https://github.com/NixOS/nixos/blob/master/modules/system/boot/systemd.nix">https://github.com/NixOS/nixos/blob/master/modules/system/boot/systemd.nix</a>

(I had to change these slightly for 206)</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>