<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 --- - journalctl does not terminate, keeps printing in a loop"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=64566">64566</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>journalctl does not terminate, keeps printing in a loop
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-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>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>lekensteyn@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </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=79274" name="attach_79274" title="used for git bisect run">attachment 79274</a> <a href="attachment.cgi?id=79274&action=edit" title="used for git bisect run">[details]</a></span>
used for git bisect run

I have recently noticed issues with the use of `journalctl -a` (Arch Linux on
Raspberry Pi) and `journalctl --since today` (Arch Linux x86_64). Where the
command should stop (on end of log file), it continues printing older entries
and repeats that until the journalctl is killed.

I suspect it is related to corrupted logs or to the timestamps, the Raspberry
Pi boots with a timestamp in 1970, my laptop's RTC somehow jumped back 7 hours.

results of bisect:
a3e6f050de81a9830e52af09d5d38dad9a356e3b is the first bad commit
commit a3e6f050de81a9830e52af09d5d38dad9a356e3b
Author: Marius Vollmer <<a href="mailto:marius.vollmer@redhat.com">marius.vollmer@redhat.com</a>>
Date:   Thu Apr 18 22:34:36 2013 +0200

    journal: when iterating through a file we might lose messages when changing
direction.

    <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - journalctl skips first entry after reboot in certain scenario"
   href="show_bug.cgi?id=63672">https://bugs.freedesktop.org/show_bug.cgi?id=63672</a>

:100644 100644 1221b39cd419325010e331d66068c1fd44039816
cd66914b5c6da29db002723e4eb7487f1070b35c M      TODO
:040000 040000 a0196f64399d332d2fd43455f3bc0575146d3806
a0bf7285eddc892d51642be205983bc11f85ac9c M      src

Reverting this commit on master (v204-25-g32821c7) fixes the wrap-around issue.

I prefer not to share the logs in public, if you need them please send me a
email. Attached is a quick-n-dirty bisect script which I used to isolate the
faulty commit.</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>