[Bug 395114] New: syslogd fails to start
https://bugzilla.novell.com/show_bug.cgi?id=395114 User bjh21@cam.ac.uk added comment https://bugzilla.novell.com/show_bug.cgi?id=395114#c394787 Summary: syslogd fails to start Product: openSUSE 10.3 Version: Final Platform: i686 OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: bjh21@cam.ac.uk QAContact: qa@suse.de Found By: --- This is kind of a followup to #394787, in that the underlying startup problem has now manifested on three different openSUSE 10.3 systems, so I don't think it's the fault of the oddities of the original system. Running the standard syslogd-1.4.1-632 package, when I try to start syslogd by running "/etc/init.d/syslog start, I end up with these processes and no working syslog: root 29725 1 0 16:16 pts/0 00:00:00 /sbin/syslogd root 29726 29725 0 16:16 ? 00:00:00 [syslogd] <defunct> Manually starting syslogd under strace reveals the following behaviour in the child: [pid 30475] open("/var/run/syslogd.pid", O_RDONLY) = 0 [pid 30475] fstat64(0, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 [pid 30475] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7eef000 [pid 30475] read(0, "", 4096) = 0 [pid 30475] close(0) = 0 [pid 30475] munmap(0xb7eef000, 4096) = 0 [pid 30475] open("/var/run/syslogd.pid", O_RDWR|O_CREAT, 0644) = 0 [pid 30475] fcntl64(0, F_GETFL) = 0x2 (flags O_RDWR) [pid 30475] fstat64(0, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 [pid 30475] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7eef000 [pid 30475] _llseek(0, 0, [0], SEEK_CUR) = 0 [pid 30475] flock(0, LOCK_EX|LOCK_NB) = -1 EACCES (Permission denied) [pid 30475] read(0, "", 4096) = 0 [pid 30475] close(0) = 0 [pid 30475] munmap(0xb7eef000, 4096) = 0 [pid 30475] fstat64(1, 0xbfef5da8) = -1 EBADF (Bad file descriptor) [pid 30475] mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7eee000 [pid 30475] write(1, "Can\'t lock, lock is held by pid 0.\n", 35) = -1 EBADF (Bad file descriptor) [pid 30475] exit_group(1) = ? If I delete syslogd.pid first, I instead get: [pid 31181] open("/var/run/syslogd.pid", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 31181] open("/var/run/syslogd.pid", O_RDWR|O_CREAT, 0644) = 0 [pid 31181] fcntl64(0, F_GETFL) = 0x2 (flags O_RDWR) [pid 31181] fstat64(0, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 [pid 31181] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7efd000 [pid 31181] _llseek(0, 0, [0], SEEK_CUR) = 0 [pid 31181] flock(0, LOCK_EX|LOCK_NB) = -1 EACCES (Permission denied) [pid 31181] read(0, "", 4096) = 0 [pid 31181] close(0) = 0 [pid 31181] munmap(0xb7efd000, 4096) = 0 [pid 31181] fstat64(1, 0xbf9a2048) = -1 EBADF (Bad file descriptor) [pid 31181] mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7efc000 [pid 31181] write(1, "Can\'t lock, lock is held by pid 0.\n", 35) = -1 EBADF (Bad file descriptor) [pid 31181] exit_group(1) = ? The point where it all goes wrong is the failure of the flock() call. The man page for flock() doesn't document EACCES as an error code for it, and since syslogd is running as root and has the file open read/write, I can't see any obvious cause. The problem occurs on systems with both ReiserFS and EXT3 root filesystems, and even occurs if I replace the syslogd package with the one from openSUSE 10.2. syslogd worked correctly in openSUSE 10.2. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=395114
Robert Vojcik
https://bugzilla.novell.com/show_bug.cgi?id=395114
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=395114#c1
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=395114
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=395114#c2
--- Comment #2 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=395114
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=395114
Petr Baudis
https://bugzilla.novell.com/show_bug.cgi?id=395114
User pbaudis@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=395114#c3
Petr Baudis
https://bugzilla.novell.com/show_bug.cgi?id=395114
User jeffm@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=395114#c4
Jeff Mahoney
participants (1)
-
bugzilla_noreply@novell.com