Evgeny Vereshchagin
3da48d7aa9
core: set all log fds to -1 when freezing (#3314)
Fixes:
-bash-4.3# echo core >/proc/sys/kernel/core_pattern
-bash-4.3# kill -ABRT 1
-bash-4.3# kill -ABRT 1
[ 61.373922] systemd[1]: segfault at 7fff1d0a8f48 ip 00007fc9ca91b1c3 sp 00007fff1d0a8f50 error 6 in libc-2.23.so[7fc9ca8ce000+1c0000]
[ 61.768017] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000008b
[ 61.768017]
...
Recursive ABRT and segfault:
PID 1 - core
TID 1:
...
#153905 0x00005575fc3f829d log_dispatch
#153906 0x00005575fc3f8aa3 log_assert
#153907 0x00005575fc3f8ae9 log_assert_failed
#153908 0x00005575fc3e7eb1 safe_close
#153909 0x00005575fc3f6d5e log_close_journal
#153910 0x00005575fc3f829d log_dispatch
#153911 0x00005575fc3f85a1 log_internalv
#153912 0x00005575fc3f86a1 log_internal
#153913 0x00005575fc31c4c1 crash
#153914 0x00007fb26f2cf3d0 __restore_rt
#153915 0x00007fb26f2ced00 pause
#153916 0x00005575fc403944 freeze
#153917 0x00005575fc31bf7b freeze_or_reboot
...
2016-05-21 12:40:34 -04:00
..
2016-02-10 13:41:57 +01:00
2016-02-16 19:55:51 -05:00
2016-02-10 13:41:57 +01:00
2016-02-19 01:36:46 +06:00
2016-05-16 21:25:36 +02:00
2016-05-16 21:25:36 +02:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-20 22:42:29 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-23 14:20:34 -08:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-05-18 13:50:56 -07:00
2016-05-18 13:50:56 -07:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-26 12:33:41 +01:00
2016-02-26 11:28:49 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-05-02 11:15:30 +02:00
2016-05-02 11:15:30 +02:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-04-12 13:43:32 +02:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-04-28 08:25:17 -04:00
2016-04-28 08:25:17 -04:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-13 11:15:41 +01:00
2016-02-13 11:15:41 +01:00
2016-05-17 16:55:20 -04:00
2016-05-17 16:55:20 -04:00
2016-02-11 22:12:04 +01:00
2016-02-11 22:12:04 +01:00
2016-02-22 20:32:04 -08:00
2016-02-10 13:41:57 +01:00
2016-04-29 12:23:34 +02:00
2016-04-25 12:50:13 +02:00
2016-04-28 08:25:17 -04:00
2016-02-13 12:28:04 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-05-04 11:26:17 +02:00
2016-04-22 16:16:53 +02:00
2016-03-02 10:42:28 -05:00
2016-04-25 12:00:03 +02:00
2016-04-25 12:00:03 +02:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2015-11-30 21:51:03 +01:00
2016-02-20 22:42:29 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-04-29 17:35:32 +02:00
2016-02-10 13:41:57 +01:00
2016-02-22 20:32:04 -08:00
2016-02-10 13:41:57 +01:00
2016-04-04 22:06:37 -04:00
2016-02-21 20:58:59 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-05-06 13:29:26 +02:00
2016-02-23 14:20:34 -08:00
2015-11-18 23:09:02 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-23 14:20:34 -08:00
2016-05-09 15:17:57 -04:00
2016-05-09 15:17:57 -04:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-05-05 22:24:36 +02:00
2016-03-15 19:40:33 -04:00
2016-02-10 13:41:57 +01:00
2016-02-20 22:42:29 +01:00
2016-03-17 16:41:20 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-13 12:28:28 +01:00
2016-03-17 13:34:34 -04:00
2016-05-16 10:58:46 -04:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-04-28 19:49:16 +02:00
2016-02-10 13:41:57 +01:00
2016-02-23 14:20:34 -08:00
2016-04-05 23:19:56 -04:00
2016-01-26 14:42:03 +01:00
2016-02-10 13:41:57 +01:00
2016-02-23 14:20:34 -08:00
2016-04-29 11:45:07 +02:00
2016-04-29 10:21:07 -04:00
2016-04-28 08:25:17 -04:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-05-21 12:40:34 -04:00
2016-05-02 11:15:30 +02:00
2016-01-28 17:00:38 +01:00
2015-11-30 21:51:03 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-04-29 16:27:49 +02:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-05-20 15:08:24 +02:00
2016-03-04 01:58:28 +00:00
2016-03-01 20:39:30 -05:00
2016-02-22 23:24:47 +01:00
2016-02-10 13:41:57 +01:00
2016-02-20 22:42:29 +01:00
2016-04-12 13:43:32 +02:00
2016-04-12 13:43:32 +02:00
2015-12-01 23:40:17 +01:00
2016-01-11 19:39:59 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-03-10 09:24:08 -05:00
2016-05-09 15:45:31 +02:00
2016-05-09 15:45:31 +02:00
2016-05-12 18:42:39 +02:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-23 14:20:34 -08:00
2016-05-03 22:35:27 +02:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-04-05 23:19:56 -04:00
2016-02-22 20:32:04 -08:00
2016-05-17 16:55:20 -04:00
2016-04-12 13:43:32 +02:00
2016-04-12 13:43:32 +02:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-04-20 08:58:53 -04:00
2016-01-20 10:12:41 +01:00
2016-04-22 16:06:20 +02:00
2016-04-22 16:06:20 +02:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-04-18 15:28:00 +02:00
2016-04-25 12:16:02 +02:00
2016-02-22 20:32:04 -08:00
2016-03-22 18:51:59 -04:00
2016-04-28 08:25:17 -04:00
2016-04-12 13:43:32 +02:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-05-02 12:08:02 +02:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-03-02 00:42:49 +06:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00
2016-02-10 13:41:57 +01:00