[systemd-bugs] [Bug 80858] New: journalctl misbehaves when wall clock is changed

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jul 3 07:49:15 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=80858

          Priority: medium
            Bug ID: 80858
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: journalctl misbehaves when wall clock is changed
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: marius.vollmer at redhat.com
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

Created attachment 102202
  --> https://bugs.freedesktop.org/attachment.cgi?id=102202&action=edit
test program.

With a specific set of journal files, we are seeing some odd behavior.  The
journal files cover multiple boots and have walltime discontinuities in them.

I'll send the journal files on request.

$ journalctl -D XXX/var/log/journal/ --cursor
's=de164a5e12e64f03b334128e4542ec9a;i=edb36;b=88b9ffdd4d2c40c1836f4a4d11c7d2bc;m=145f5aa0ae;t=4fc1b3c1b82f7;x=cf69db9bc053ff06'
-u NetworkManager --show-cursor | tail -1
-- cursor:
s=a6243fe62e0d45939c17eb9cb76f8812;i=11c34e;b=3e5244c588534eb4b4f3645d56b011c1;m=260accecf9;t=4fd38316fe7ed;x=38925d7bd704ad1d
$ journalctl -D XXX/var/log/journal/ --cursor
's=a6243fe62e0d45939c17eb9cb76f8812;i=11c34e;b=3e5244c588534eb4b4f3645d56b011c1;m=260accecf9;t=4fd38316fe7ed;x=38925d7bd704ad1d'
-u NetworkManager --show-cursor | tail -1
-- cursor:
s=de164a5e12e64f03b334128e4542ec9a;i=edb36;b=88b9ffdd4d2c40c1836f4a4d11c7d2bc;m=145f5aa0ae;t=4fc1b3c1b82f7;x=cf69db9bc053ff06

Thus, there are two cursors, and starting from one ends up at the other.

Also, doing sd_journal_seek_tail(), sd_journal_skip_previous(10) and then
looping over sd_journal_next until it returns 0 will happily loop over
thousands of entries, instead of the expected 10.

I attach a small program that combines these effects to get into an endless
loop, although it works correctly for most journal files.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140703/d4458ed8/attachment.html>


More information about the systemd-bugs mailing list