Sysklogd daemon drops core (linux 2.2.4)

Richard B. Johnson (root@chaos.analogic.com)
Mon, 29 Mar 1999 16:15:42 -0500 (EST)


Hello syslog gurus,

My syslog daemon dumps core so I got the latest from the
site shown in /usr/src/linux/Documentation, i.e.,
metalab.unc.edu/pub/Linux/system/daemons/sysklogd-1.3-3.tar.gz

It, too, drops core. Seems I haven't had any logging since
version Linux 2.2.3.

Script started on Mon Mar 29 16:04:23 1999
# syslogd -d
Allocated parts table for 1024 file descriptors.
Starting.
Called init.
Called allocate_log, nlogs = -1.
cfline(*.info /var/log/info)
symbolic name: info ==> 6
leading char in action: /
filename: /var/log/info
Called allocate_log, nlogs = 0.
cfline(*.notice;*.alert /var/log/messages)
symbolic name: notice ==> 5
symbolic name: alert ==> 1
leading char in action: /
filename: /var/log/messages
Called allocate_log, nlogs = 1.
cfline(*.debug /var/log/debug)
symbolic name: debug ==> 7
leading char in action: /
filename: /var/log/debug
Called allocate_log, nlogs = 2.
cfline(*.err;*.emerg;*.crit /var/log/syslog)
symbolic name: err ==> 3
symbolic name: emerg ==> 0
symbolic name: crit ==> 2
leading char in action: /
filename: /var/log/syslog
Called allocate_log, nlogs = 3.
cfline(*.warn /var/log/warning)
symbolic name: warn ==> 4
leading char in action: /
filename: /var/log/warning
Opened UNIX socket `/dev/log'.
0: 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F FILE: /var/log/info
1: 3F 3F 3F 3F 3F 3F 3F 3F 3F 3F 3F 3F 3F 3F 3F 3F 3F 3F 3F 3F 3F 3F 3F 3F 3F FILE: /var/log/messages
2: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FILE: /var/log/debug
3: F F F F F F F F F F F F F F F F F F F F F F F F F FILE: /var/log/syslog
4: 1F 1F 1F 1F 1F 1F 1F 1F 1F 1F 1F 1F 1F 1F 1F 1F 1F 1F 1F 1F 1F 1F 1F 1F 1F FILE: /var/log/warning
logmsg: syslog.info<46>, flags 4, from chaos, msg syslogd 1.3-3: restart.
Called fprintlog, logging to FILE /var/log/info
Called fprintlog, logging to FILE /var/log/debug
syslogd: restarted.
Debugging disabled, SIGUSR1 to turn on debugging.
Segmentation fault (core dumped)
# exit
Script done on Mon Mar 29 16:05:07 1999

`strace`

[SNIPED libc init stuff]

munmap(0x400cc000, 4096) = 0
write(1, "Called init.\n", 13) = 13
open("/etc/syslog.conf", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=445, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|0x20, 4294967295, 0) = 0x400cc000
read(3, "# /etc/syslog.conf\n# For info a"..., 4096) = 445
write(1, "Called allocate_log, nlogs = -1."..., 33) = 33
write(1, "cfline(*.info\t\t\t\t\t\t/var/lo"..., 34) = 34
write(1, "symbolic name: info", 19) = 19
write(1, " ==> 6\n", 7) = 7
write(1, "leading char in action: /\n", 26) = 26
write(1, "filename: /var/log/info\n", 24) = 24
open("/var/log/info", O_WRONLY|O_APPEND|O_CREAT|O_NOCTTY, 0644) = 4
ioctl(4, TCGETS, 0xbfffcb54) = -1 ENOTTY (Not a typewriter)
write(1, "Called allocate_log, nlogs = 0.\n"..., 32) = 32
write(1, "cfline(*.notice;*.alert\t\t\t\t/"..., 46) = 46
write(1, "symbolic name: notice", 21) = 21
write(1, " ==> 5\n", 7) = 7
write(1, "symbolic name: alert", 20) = 20
write(1, " ==> 1\n", 7) = 7
write(1, "leading char in action: /\n", 26) = 26
write(1, "filename: /var/log/messages\n", 28) = 28
open("/var/log/messages", O_WRONLY|O_APPEND|O_CREAT|O_NOCTTY, 0644) = 5
ioctl(5, TCGETS, 0xbfffcb54) = -1 ENOTTY (Not a typewriter)
write(1, "Called allocate_log, nlogs = 1.\n"..., 32) = 32
write(1, "cfline(*.debug\t\t\t\t\t\t/var/l"..., 36) = 36
write(1, "symbolic name: debug", 20) = 20
write(1, " ==> 7\n", 7) = 7
write(1, "leading char in action: /\n", 26) = 26
write(1, "filename: /var/log/debug\n", 25) = 25
open("/var/log/debug", O_WRONLY|O_APPEND|O_CREAT|O_NOCTTY, 0644) = 6
ioctl(6, TCGETS, 0xbfffcb54) = -1 ENOTTY (Not a typewriter)
write(1, "Called allocate_log, nlogs = 2.\n"..., 32) = 32
write(1, "cfline(*.err;*.emerg;*.crit\t\t\t"..., 48) = 48
write(1, "symbolic name: err", 18) = 18
write(1, " ==> 3\n", 7) = 7
write(1, "symbolic name: emerg", 20) = 20
write(1, " ==> 0\n", 7) = 7
write(1, "symbolic name: crit", 19) = 19
write(1, " ==> 2\n", 7) = 7
write(1, "leading char in action: /\n", 26) = 26
write(1, "filename: /var/log/syslog\n", 26) = 26
open("/var/log/syslog", O_WRONLY|O_APPEND|O_CREAT|O_NOCTTY, 0644) = 7
ioctl(7, TCGETS, 0xbfffcb54) = -1 ENOTTY (Not a typewriter)
write(1, "Called allocate_log, nlogs = 3.\n"..., 32) = 32
brk(0x8056000) = 0x8056000
write(1, "cfline(*.warn\t\t\t\t\t\t/var/lo"..., 37) = 37
write(1, "symbolic name: warn", 19) = 19
write(1, " ==> 4\n", 7) = 7
write(1, "leading char in action: /\n", 26) = 26
write(1, "filename: /var/log/warning\n", 27) = 27
open("/var/log/warning", O_WRONLY|O_APPEND|O_CREAT|O_NOCTTY, 0644) = 8
ioctl(8, TCGETS, 0xbfffcb54) = -1 ENOTTY (Not a typewriter)
read(3, "", 4096) = 0
close(3) = 0
munmap(0x400cc000, 4096) = 0
unlink("/dev/log") = 0
socket(PF_UNIX, SOCK_STREAM, , 0) = 3
bind(3, {sun_family=AF_UNIX, sun_path="/dev/log"}, 10) = 0
chmod("/dev/log", 0666) = 0
listen(3, 5) = 0
write(1, "Opened UNIX socket `/dev/log\'.\n"..., 31) = 31
write(1, " 0: 7F 7F 7F 7F 7F 7F 7F 7F 7F 7"..., 99) = 99
write(1, " 1: 3F 3F 3F 3F 3F 3F 3F 3F 3F 3"..., 103) = 103
write(1, " 2: FF FF FF FF FF FF FF FF FF F"..., 100) = 100
write(1, " 3: F F F F F F F F F "..., 101) = 101
write(1, " 4: 1F 1F 1F 1F 1F 1F 1F 1F 1F 1"..., 102) = 102
write(1, "logmsg: syslog.info<46>, flags 4"..., 74) = 74
time([922741946]) = 922741946
open("/usr/local/share/zoneinfo/US/Eastern", O_RDONLY) = 9
fstat(9, {st_mode=S_IFREG|0644, st_size=1250, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|0x20, 4294967295, 0) = 0x400cc000
read(9, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 1250
close(9) = 0
munmap(0x400cc000, 4096) = 0
write(1, "Called fprintlog, ", 18) = 18
write(1, "logging to FILE", 15) = 15
write(1, " /var/log/info\n", 15) = 15
SYS_146(0x4, 0xbfffd0bc, 0x6, 0x4009f114, 0x6) = 46
fsync(4) = 0
write(1, "Called fprintlog, ", 18) = 18
write(1, "logging to FILE", 15) = 15
write(1, " /var/log/debug\n", 16) = 16
SYS_146(0x6, 0xbfffd0bc, 0x6, 0x4009f114, 0x6) = 46
fsync(6) = 0
sigaction(SIGHUP, {0x804ca94, [], SA_RESTART}, {SIG_DFL}) = 0
write(1, "syslogd: restarted.\n", 20) = 20
write(1, "Debugging disabled, SIGUSR1 to t"..., 50) = 50
getpid() = 166
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

Cheers,
Dick Johnson
***** FILE SYSTEM WAS MODIFIED *****
Penguin : Linux version 2.2.4 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/