[Syslog-ng-maintainers] Bug#913754: syslog-ng hangs in getrandom(2) on boot

Eugene Berdnikov bd4 at protva.ru
Wed Nov 14 20:13:43 GMT 2018


Package: syslog-ng
Version: 3.13.2-5
Severity: minor

 On boot start of syslog-ng as daemon from /etc/init.d (SysV-init)
 leads to hangup of boot process for several minutes. Strace shows
 that delay caused by getrandom(2) syscall:
 
1501 22:44:00 getrandom("\x74\x78\x56\x35\x28\xad\x52\xd2\xcb\x51\xb1\x30\xc7\x67\x14\x26\x01\xa4\x2d\xa0\x30\x1d\xad\x09\x9e\xe3\x2c\x4e\x07\x55\x0d\x29", 32, 0) = 32 <322.583360>

 Got with "strace -Tt", means reading of 32 random bytes tooks 322 seconds.
 This is expectable: on boot system has no enоuph entropy, so this syscall
 blocks until entropy is collected by kernel from device drivers.
 
 Previous versions of syslog-ng do not hang.
-- 
 Eugene Berdnikov



More information about the Syslog-ng-maintainers mailing list