<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 --- - now(clockid_t clock_id) at src/shared/time-util.c fails"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=76782">76782</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>now(clockid_t clock_id) at src/shared/time-util.c fails
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>major
          </td>
        </tr>

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

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

        <tr>
          <th>Reporter</th>
          <td>davispuh@gmail.com
          </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>I upgraded systemd to latest 212-1 for Arch Linux which is inside OpenVZ
container and systemd doesn't start anymore.

It fails with error
`Assertion 'clock_gettime(clock_id, &ts) == 0' failed at
src/shared/time-util.c:32, function now(). Aborting.`


strace output

```
clock_gettime(CLOCK_MONOTONIC, {3262, 615930730}) = 0
clock_gettime(CLOCK_MONOTONIC, {3262, 615951010}) = 0
open("/proc/sys/kernel/random/boot_id", O_RDONLY|O_NOCTTY|O_CLOEXEC) = 15
read(15, "08d9a51a-64ac-4ee7-bd6d-237c493e"..., 36) = 36
close(15)                               = 0
timerfd_settime(10, TFD_TIMER_ABSTIME, {it_interval={0, 0}, it_value={3352,
679749000}}, NULL) = 0
epoll_wait(3, {{EPOLLIN, {u32=26823648, u64=26823648}}}, 7, 0) = 1
clock_gettime(CLOCK_MONOTONIC, {3262, 616078247}) = 0
clock_gettime(0x7 /* CLOCK_??? */, 0x7fff79f0e550) = -1 EINVAL (Invalid
argument)
writev(2, [{"\33[1;31m", 7}, {"Assertion 'clock_gettime(clock_i"..., 108},
{"\33[0m", 4}, {"\n", 1}], 4Assertion 'clock_gettime(clock_id, &ts) == 0'
failed at src/shared/time-util.c:32, function now(). Aborting.
) = 120
```

using OpenVZ kernel 2.6.32-042stab078.27</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>