| Summary: | journalctl misbehaves with --lines | ||
|---|---|---|---|
| Product: | systemd | Reporter: | Marius Vollmer <marius.vollmer> |
| Component: | general | Assignee: | systemd-bugs |
| Status: | RESOLVED FIXED | QA Contact: | systemd-bugs |
| Severity: | critical | ||
| Priority: | medium | CC: | amanduch |
| Version: | unspecified | ||
| Hardware: | Other | ||
| OS: | All | ||
| URL: | http://files.cockpit-project.org/files/journal-bug.tar.xz | ||
| See Also: | https://bugs.freedesktop.org/show_bug.cgi?id=83912 | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
Can reproduce here. fix for this is alredy in mailing list and it's waiting to be merged. https://www.mail-archive.com/systemd-devel@lists.freedesktop.org/msg25682.html "Although the basic idea of binary search is comparatively straightforward, the details can be surprisingly tricky…" — Donald Knuth. :-) Thanks for the fix! Fix applied! |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.
systemd-215-14.fc21.x86_64 With this set of journal files files.cockpit-project.org/files/journal-bug.tar.xz I can see this behavior: $ journalctl -D ./journal.bug/ _SYSTEMD_UNIT=accounts-daemon.service | tail -5 Oct 10 09:44:07 f21.cockpit.lan accounts-daemon[1178]: started daemon version 0.6.38 Oct 10 09:57:47 f21.cockpit.lan accounts-daemon[1178]: request by system-bus-name::1.12 [/usr/libexec/cockpitd pid:1169 uid:1000]: delete user 'junior' (1001) Oct 10 09:57:47 f21.cockpit.lan userdel[4245]: delete user 'junior' Oct 10 09:57:47 f21.cockpit.lan userdel[4245]: removed group 'junior' owned by 'junior' Oct 10 09:57:47 f21.cockpit.lan userdel[4245]: removed shadow group 'junior' owned by 'junior' $ journalctl -D ./journal.bug/ _SYSTEMD_UNIT=accounts-daemon.service --lines=100 | tail -5 Oct 08 10:35:52 f21.cockpit.lan accounts-daemon[1255]: started daemon version 0.6.38 -- Reboot -- Oct 08 14:08:00 f21.cockpit.lan accounts-daemon[1937]: started daemon version 0.6.38 -- Reboot -- Oct 10 09:44:07 f21.cockpit.lan accounts-daemon[1178]: started daemon version 0.6.38 That is, when using --lines, journalctl omits some lines at the end. Erroneously omitting journal lines is critical, I think. (The journal files might be corruped since they come from a machine that is being mistreated quite badly, but journalctl doesn't give any sign of that.)