[syslog-ng]writing to /dev/log hungs system

=?iso-8859-1?Q?Elan_Ruusam=E4e?= Elan.Ruusamae@delfi.ee
Thu, 20 Feb 2003 13:49:55 +0200


hi


since time to time all applications hung that write to syslog, and i =
cannot ^C ^Z ^\ them ;(
i cannot su to root and kill syslog-ng too.

this has happened several times over several machines
i've turned off dns lookups, since i guessed dns downtime affects this, =
but that did not help

the problem, when it's arisen, gets solved by some 6 hours

i guess the hung arises on high flood to syslog

here's some strace too:

socket(PF_UNIX, SOCK_DGRAM, 0)          =3D 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         =3D 0
connect(3, {sin_family=3DAF_UNIX, path=3D"/dev/log"}, 16) =3D -1 =
EPROTOTYPE=20
(Protocol wrong type for socket)
close(3)                                =3D 0
socket(PF_UNIX, SOCK_STREAM, 0)         =3D 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         =3D 0
connect(3, {sin_family=3DAF_UNIX, path=3D"/dev/log"}, 16 <HUNGS HERE>

i'm using syslog-ng 1.4.17
os is linux, redhat based
kernel varies, but mostly 2.4.18 (redhat patches)

config options:

options {
        long_hostnames(off);
        sync(0);
        use_dns (no);
        use_fqdn (no);
};

source src { pipe("/proc/kmsg"); unix-stream("/dev/log"); internal(); };


--=20
glen=20