/lib/systemd/systemd-journald:6:fsync:fsync_directory_of_file:journal_file_rotate:do_rotate:server_rotate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd |
New
|
Unknown
|
|||
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
High
|
Unassigned | ||
Cosmic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* systemd aborts journald, upon watchdog expiry and generates lots of crash reports
* it appears that journald is simply stuck in fsync
* it has been agreed to disable watchdog timer on journald
[Test Case]
* watch drop-off of errors w.r.t. watchdog timer
[Regression Potential]
* Potentially journald does get stuck, and thus is no longer automatically restarted with a sigabrt crash. However, so far, it is not known to do that.
[Other Info]
* Original bug report
The Ubuntu Error Tracker has been receiving reports about a problem regarding systemd. This problem was most recently seen with package version 237-3ubuntu10, the problem page at https:/
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://
Changed in systemd (Ubuntu Cosmic): | |
status: | New → Fix Committed |
Changed in systemd (Ubuntu Bionic): | |
status: | New → In Progress |
description: | updated |
Changed in systemd (Ubuntu Xenial): | |
status: | New → Confirmed |
Changed in systemd (Ubuntu Xenial): | |
status: | Confirmed → In Progress |
Changed in systemd: | |
status: | Unknown → New |
Changed in systemd (Ubuntu Bionic): | |
importance: | Undecided → High |
journald appears to sigabort upon rotating systemd journal file, in fsync... 😱
#0 0x00007f6d47f7c237 in fsync (fd=46) at ../sysdeps/ unix/sysv/ linux/fsync. c:27
sc_cancel_ oldtype = 0 _of_file. lto_priv. 56 (fd=<optimized out>) at ../src/ journal/ journal- file.c: 483 journal/ <valid uuid>/system@<valid uuid>-000000000 0<suffix> -000<another- suffix> .journal" journal/ <same uuid>" closes= 0x55c0f3cd2e00) at ../src/ journal/ journal- file.c: 3496 journal/ <valid uuid>/system@<valid uuid>-000000000 0<suffix> -000<another- suffix> .journal"
__PRETTY_ FUNCTION_ _ = "journal_ file_rotate" journal/ journald- server. c:466 journal/ journald- server. c:488 9a880, uid=0, s=0x7fffc919e020) at ../src/ journal/ journald- server. c:717 message_ real (s=0x7fffc919e020, iovec=0x7fffc91 9a880, n=21, m=<optimized out>, c=<optimized out>, tv=<optimized out>, priority=6, object_pid=0) at ../src/ journal/ journald- server. c:877 driver_ message (s=0x7fffc919e020, object_ pid=<optimized out>, message_ id=<optimized out>, format=<optimized out>) at ../src/ journal/ journald- server. c:911 journal/ journald- kmsg.c: 160 read_dev_ kmsg (s=<optimized out>, s=<optimized out>) at ../src/ journal/ journald- kmsg.c: 346 0x55c0f3cd44d0) at ../src/ libsystemd/ sd-event/ sd-event. c:2303 0x55c0f3cd3f10) at ../src/ libsystemd/ sd-event/ sd-event. c:2663 184467440737095 51615) at ../src/ libsystemd/ sd-event/ sd-event. c:2723 journal/ journald. c:110
resultvar = 0
sc_ret = <optimized out>
#1 0x00007f6d47abf6a0 in fsync_directory
path = 0x55c0f3ce1540 "/var/log/
dn = 0x55c0f3cda680 "/var/log/
dfd = 46
st = {st_dev = 64768, st_ino = 29360293, st_nlink = 1, st_mode = 33184, st_uid = 0, st_gid = 101, __pad0 = 0, st_rdev = 0, st_size = 134217728, st_blksize = 4096, st_blocks = 262152, st_atim = {tv_sec = 1523965107, tv_nsec = 217770755}, st_mtim = {tv_sec = 1523965108, tv_nsec = 564627151}, st_ctim = {tv_sec = 1523965108, tv_nsec = 564627151}, __glibc_reserved = {0, 0, 0}}
r = <optimized out>
#2 0x00007f6d47b347a7 in journal_file_rotate (f=0x7fffc919e0c0, compress=<optimized out>, seal=<optimized out>, deferred_
p = 0x55c0f3ce1470 "/var/log/
l = <optimized out>
old_file = 0x55c0f3d27760
new_file = 0x0
r = <optimized out>
#3 0x000055c0f2c80f71 in do_rotate (s=<optimized out>, f=0x7fffc919e0c0, name=0x55c0f2c8bae7 "system", seal=<optimized out>, uid=0) at ../src/
#4 0x000055c0f2c810ce in server_rotate (s=0x7fffc919e020) at ../src/
#5 0x000055c0f2c8372b in write_to_journal (priority=6, n=21, iovec=0x7fffc91
#6 dispatch_
#7 0x000055c0f2c83a78 in server_
#8 0x000055c0f2c88692 in dev_kmsg_record (l=163, p=<optimized out>, s=0x7fffc919e020) at ../src/
#9 server_
#10 0x00007f6d47abb160 in source_dispatch (s=s@entry=
#11 0x00007f6d47abb3fa in sd_event_dispatch (e=<optimized out>, e@entry=
#12 0x00007f6d47abb589 in sd_event_run (e=<optimized out>, timeout=
#13 0x000055c0f2c78b16 in main (argc=<optimized out>, argv=<optimized out>) at ../src/