On 11-18 20:18, Michael Biebl wrote:
> On 18.11.2011 20:08, Witold Baryluk wrote:
> > Package: rsyslog
> > Version: 5.8.6-1
> > Severity: important
> > 
> > Hi,
> > 
> > I just discovered that rsyslog on my machine is  not running.
> > 
> > I tried starting it, but ended with
> > 
> > Starting enhanced syslogd: rsyslogdError during class init for object 
> > 'rsyslog runtime' - failing...
> > rsyslogd initializiation failed - global classes could not be initialized.
> > Did you do a "make install"?
> > Suggested action: run rsyslogd with -d -n options to see what exactly fails.
> > rsyslogd run failed with error 22 (see rsyslog.h or try 
> > http://www.rsyslog.com/e/-22 to learn what that number means)
> > ..
> 
> Could you please install debsums and attach the output of
> debsums rsyslog
> I'd also be interested in the output of
> 
> ldd /usr/sbin/rsyslogd
> 
> A debug output would be helpful, too. run /usr/sbin/rsyslog -d -n -c5
> and attach the output.
> -- 
> Why is it that all of the instruments seeking intelligent life in the
> universe are pointed away from Earth?
> 

Hi,

I already said it is clear install and running rsyslogd ed with the same error 
message,
but here you have it all

movax-dev:~# debsums rsyslog  
/lib/systemd/system/rsyslog.service                                           OK
/usr/lib/rsyslog/imfile.so                                                    OK
/usr/lib/rsyslog/imklog.so                                                    OK
/usr/lib/rsyslog/immark.so                                                    OK
/usr/lib/rsyslog/impstats.so                                                  OK
/usr/lib/rsyslog/imtcp.so                                                     OK
/usr/lib/rsyslog/imudp.so                                                     OK
/usr/lib/rsyslog/imuxsock.so                                                  OK
/usr/lib/rsyslog/lmnet.so                                                     OK
/usr/lib/rsyslog/lmnetstrms.so                                                OK
/usr/lib/rsyslog/lmnsd_ptcp.so                                                OK
/usr/lib/rsyslog/lmregexp.so                                                  OK
/usr/lib/rsyslog/lmstrmsrv.so                                                 OK
/usr/lib/rsyslog/lmtcpclt.so                                                  OK
/usr/lib/rsyslog/lmtcpsrv.so                                                  OK
/usr/lib/rsyslog/lmzlibw.so                                                   OK
/usr/lib/rsyslog/ommail.so                                                    OK
/usr/lib/rsyslog/omprog.so                                                    OK
/usr/lib/rsyslog/omruleset.so                                                 OK
/usr/lib/rsyslog/pmaixforwardedfrom.so                                        OK
/usr/lib/rsyslog/pmcisconames.so                                              OK
/usr/lib/rsyslog/pmlastmsg.so                                                 OK
/usr/lib/rsyslog/pmrfc3164sd.so                                               OK
/usr/lib/rsyslog/pmsnare.so                                                   OK
/usr/sbin/rsyslogd                                                            OK
/usr/share/doc/rsyslog/AUTHORS                                                OK
/usr/share/doc/rsyslog/NEWS.Debian.gz                                         OK
/usr/share/doc/rsyslog/README.Debian                                          OK
/usr/share/doc/rsyslog/changelog.Debian.gz                                    OK
/usr/share/doc/rsyslog/changelog.gz                                           OK
/usr/share/doc/rsyslog/copyright                                              OK
/usr/share/lintian/overrides/rsyslog                                          OK
/usr/share/man/man5/rsyslog.conf.5.gz                                         OK
/usr/share/man/man8/rsyslogd.8.gz                                             OK

movax-dev:~# LC_ALL=C md5sum /etc/rsyslog.conf /etc/rsyslog.d/*
746f1e2beadaf5bc18a845ebf874c1b0  /etc/rsyslog.conf
md5sum: /etc/rsyslog.d/*: No such file or directory


movax-dev:~# ldd /usr/sbin/rsyslogd
        linux-gate.so.1 =>  (0xb7748000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7726000)
        libpthread.so.0 => /lib/i386-linux-gnu/i686/cmov/libpthread.so.0 
(0xb770d000)
        libdl.so.2 => /lib/i386-linux-gnu/i686/cmov/libdl.so.2 (0xb7708000)
        librt.so.1 => /lib/i386-linux-gnu/i686/cmov/librt.so.1 (0xb76ff000)
        libc.so.6 => /lib/i386-linux-gnu/i686/cmov/libc.so.6 (0xb75a5000)
        /lib/ld-linux.so.2 (0xb7749000)


movax-dev:~# /usr/sbin/rsyslogd -c5 -d -n

4655.407514956:b761eb40: rsyslogd 5.8.6 startup, compatibility mode 5, module 
path '', cwd:/root
Error during class init for object 'rsyslog runtime' - failing...
rsyslogd initializiation failed - global classes could not be initialized.
Did you do a "make install"?
Suggested action: run rsyslogd with -d -n options to see what exactly fails.
rsyslogd run failed with error 22 (see rsyslog.h or try 
http://www.rsyslog.com/e/-22 to learn what that number means)

movax-dev:~# env
TERM=xterm
SHELL=/bin/bash
HISTSIZE=5000
SSH_CLIENT=10.6.6.9 42947 22
SSH_TTY=/dev/pts/0
HISTFILESIZE=5000
USER=root
MAIL=/var/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/root
LANG=pl_PL.UTF-8
PS1=\h:\w\$ 
HISTCONTROL=ignoredups
SHLVL=1
HOME=/root
LOGNAME=root
SSH_CONNECTION=10.6.6.9 42947 10.6.6.200 22
_=/usr/bin/env
movax-dev:~# 

movax-dev:~# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 wrz 27 14:24 /bin/sh -> dash

movax-dev:~# LC_ALL=C strace rsyslogd -c5 -d -n 
execve("/usr/sbin/rsyslogd", ["rsyslogd", "-c5", "-d", "-n"], [/* 19 vars */]) 
= 0
brk(0)                                  = 0x8774000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7813000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=46523, ...}) = 0
mmap2(NULL, 46523, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7807000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/libz.so.1", O_RDONLY)    = 3
read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\31\0\0004\0\0\0"..., 512) 
= 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=79980, ...}) = 0
mmap2(NULL, 78560, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0xb77f3000
mmap2(0xb7806000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13) = 0xb7806000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i386-linux-gnu/i686/cmov/libpthread.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220L\0\0004\0\0\0"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=117009, ...}) = 0
mmap2(NULL, 98816, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0xb77da000
mmap2(0xb77ef000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14) = 0xb77ef000
mmap2(0xb77f1000, 4608, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb77f1000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i386-linux-gnu/i686/cmov/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\n\0\0004\0\0\0"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9844, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb77d9000
mmap2(NULL, 12408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0xb77d5000
mmap2(0xb77d7000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb77d7000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i386-linux-gnu/i686/cmov/librt.so.1", O_RDONLY) = 3
read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\30\0\0004\0\0\0"..., 512) 
= 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=30684, ...}) = 0
mmap2(NULL, 33360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0xb77cc000
mmap2(0xb77d3000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0xb77d3000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i386-linux-gnu/i686/cmov/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240o\1\0004\0\0\0"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1401000, ...}) = 0
mmap2(NULL, 1415544, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0xb7672000
mprotect(0xb77c5000, 4096, PROT_NONE)   = 0
mmap2(0xb77c6000, 12288, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x153) = 0xb77c6000
mmap2(0xb77c9000, 10616, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb77c9000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7671000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7670000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7671b40, limit:1048575, 
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, 
useable:1}) = 0
mprotect(0xb77c6000, 8192, PROT_READ)   = 0
mprotect(0xb77d3000, 4096, PROT_READ)   = 0
mprotect(0xb77d7000, 4096, PROT_READ)   = 0
mprotect(0xb77ef000, 4096, PROT_READ)   = 0
mprotect(0x80a4000, 4096, PROT_READ)    = 0
mprotect(0xb7831000, 4096, PROT_READ)   = 0
munmap(0xb7807000, 46523)               = 0
set_tid_address(0xb7671ba8)             = 26013
set_robust_list(0xb7671bb0, 0xc)        = 0
futex(0xbfd80780, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, 
bfd80790) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigaction(SIGRTMIN, {0xb77de6e0, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0xb77deb70, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
uname({sys="Linux", node="movax-dev", ...}) = 0
rt_sigaction(SIGUSR2, {0x806a550, [], 0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [USR2], NULL, 8) = 0
brk(0)                                  = 0x8774000
brk(0x8795000)                          = 0x8795000
getcwd("/root", 128)                    = 6
write(1, "\n", 1
)                       = 1
clock_gettime(CLOCK_REALTIME, {1321646815, 543530596}) = 0
write(1, "6815.543530596:", 156815.543530596:)         = 15
write(1, "b7671b40: ", 10b7671b40: )              = 10
write(1, "rsyslogd 5.8.6 startup, compatib"..., 72rsyslogd 5.8.6 startup, 
compatibility mode 5, module path '', cwd:/root
) = 72
sched_getparam(26013, { 0 })            = 0
sched_getscheduler(26013)               = 3
write(2, "Error during class init for obje"..., 66Error during class init for 
object 'rsyslog runtime' - failing...
) = 66
write(2, "rsyslogd initializiation failed "..., 181rsyslogd initializiation 
failed - global classes could not be initialized.
Did you do a "make install"?
Suggested action: run rsyslogd with -d -n options to see what exactly fails.
) = 181
write(2, "rsyslogd run failed with error 2"..., 118rsyslogd run failed with 
error 22 (see rsyslog.h or try http://www.rsyslog.com/e/-22 to learn what that 
number means)
) = 118
exit_group(0)                           = ?


movax-dev:~# LC_ALL=C ltrace rsyslogd -c5 -d -n 
__libc_start_main(0x8051a10, 4, 0xbfde5b74, 0x808c770, 0x808c760 <unfinished 
...>
pthread_key_create(0x80a8a44, 0x8068e80, 0x6f6e2800, 0x29656e, 0)               
                 = 0
pthread_mutex_init(0x80a8a94, 0, 0x6f6e2800, 0x29656e, 0)                       
                 = 0
pthread_mutex_init(0x80a8a50, 0, 0x6f6e2800, 0x29656e, 0)                       
                 = 0
pthread_mutex_init(0x80a8a2c, 0, 0x6f6e2800, 0x29656e, 0)                       
                 = 0
pthread_mutex_init(0x80a8a70, 0, 0x6f6e2800, 0x29656e, 0)                       
                 = 0
sigemptyset(0xbfde5988)                                                         
                 = 0
sigaction(12, 0xbfde5984, NULL)                                                 
                 = 0
sigemptyset(0xbfde5a10)                                                         
                 = 0
sigaddset(0xbfde5a10, 12)                                                       
                 = 0
pthread_sigmask(1, 0xbfde5a10, 0, 0x29656e, 0)                                  
                 = 0
getenv("RSYSLOG_DEBUG")                                                         
                 = NULL
getenv("RSYSLOG_DEBUGLOG")                                                      
                 = NULL
getopt(4, 0xbfde5b74, "46a:Ac:def:g:hi:l:m:M:nN:op:qQr:"...)                    
                 = 99
strtol(0xbfde6e70, 0, 10, 0xb76a8364, 0xb7806914)                               
                 = 5
getopt(4, 0xbfde5b74, "46a:Ac:def:g:hi:l:m:M:nN:op:qQr:"...)                    
                 = 100
getopt(4, 0xbfde5b74, "46a:Ac:def:g:hi:l:m:M:nN:op:qQr:"...)                    
                 = 110
malloc(12)                                                                      
                 = 0x08523008
getopt(4, 0xbfde5b74, "46a:Ac:def:g:hi:l:m:M:nN:op:qQr:"...)                    
                 = -1
getcwd(0xbfde59bc, 128)                                                         
                 = "/root"
__vsnprintf_chk(0xbfddd7cc, 32768, 1, 32768, 0x808dec0)                         
                 = 72
pthread_mutex_lock(0x80a8a70, 0, 0xb7850996, 0xb785fac0, 0xb7806970)            
                 = 0
__sigsetjmp(0xbfddd760, 0, 0xb7850996, 0xb785fac0, 0xb7806970)                  
                 = 0
__pthread_register_cancel(0xbfddd760, 0, 0xb7850996, 0xb785fac0, 0xb7806970)    
                 = 0xbfddd760
pthread_self(0, 0, 0, 0, 0)                                                     
                 = 0xb769eb40
write(1, "\n", 1
)                                                                               
 = 1
__snprintf_chk(0xbfddd6dc, 64, 1, -1, 0x809210c)                                
                 = 8
clock_gettime(0, 0xbfdd56d4, 1, 0, 0)                                           
                 = 0
__snprintf_chk(0xbfdd56dc, 32768, 1, 32768, 0x8092119)                          
                 = 15
write(1, "7179.447759518:", 157179.447759518:)                                  
                                = 15
__snprintf_chk(0xbfdd56dc, 32768, 1, 32768, 0x8092128)                          
                 = 10
write(1, "b769eb40: ", 10b769eb40: )                                            
                           = 10
write(1, "rsyslogd 5.8.6 startup, compatib"..., 72rsyslogd 5.8.6 startup, 
compatibility mode 5, module path '', cwd:/root
)                                              = 72
__pthread_unregister_cancel(72, 0, 0xb7850996, 0xb785fac0, 0xb7806970)          
                 = 0xbfde5b04
pthread_mutex_unlock(0x80a8a70, 0, 0xb7850996, 0xb785fac0, 0xb7806970)          
                 = 0
getpid()                                                                        
                 = 26395
pthread_self(0xb76a5234, 0, 4, 0xbfde5b74, 0xbfde5ac8)                          
                 = 0xb769eb40
pthread_getschedparam(0xb769eb40, 0x80a9268, 0x80a926c, 0xbfde5b74, 0xbfde5ac8) 
                 = 0
pthread_attr_init(0x80a9240, 0x80a9268, 0x80a926c, 0xbfde5b74, 0xbfde5ac8)      
                 = 0
pthread_attr_setschedpolicy(0x80a9240, 3, 0x80a926c, 0xbfde5b74, 0xbfde5ac8)    
                 = 22
__fprintf_chk(0xb77f5580, 1, 0x808df08, 0x808eb94, 0xbfde59bcError during class 
init for object 'rsyslog runtime' - failing...
)                                   = 66
fwrite("rsyslogd initializiation failed "..., 1, 181, 0xb77f5580rsyslogd 
initializiation failed - global classes could not be initialized.
Did you do a "make install"?
Suggested action: run rsyslogd with -d -n options to see what exactly fails.
)                                = 181
__fprintf_chk(0xb77f5580, 1, 0x808e8b0, 22, -22rsyslogd run failed with error 
22 (see rsyslog.h or try http://www.rsyslog.com/e/-22 to learn what that number 
means)
)                                                 = 118
+++ exited (status 0) +++


It looks that pthread_attr_setschedpolicy fails.

It should return 0 on success.
http://pubs.opengroup.org/onlinepubs/7908799/xsh/pthread_attr_setschedpolicy.html

value 22 in Linux looks to be a 
#define EINVAL          22      /* Invalid argument */
(acording to /usr/include/asm-generic/errno-base.h)

My versions of libc

movax-dev:~# dpkg -l | grep libc6
ii  libc6                                2.13-21                      Embedded 
GNU C Library: Shared libraries
ii  libc6-dbg                            2.13-21                      Embedded 
GNU C Library: detached debugging symbols
ii  libc6-dev                            2.13-21                      Embedded 
GNU C Library: Development Libraries and Header Files
ii  libc6-i686                           2.13-21                      Embedded 
GNU C Library: Shared libraries [i686 optimized]
ii  libc6-xen                            2.13-21                      Embedded 
GNU C Library: Shared libraries [Xen version]

movax-dev:~# debsums libc6 | grep -v OK
movax-dev:~# debsums libc6-i686 | grep -v OK
movax-dev:~# debsums libc6-xen | grep -v OK
movax-dev:~# debsums libc6-dbg | grep -v OK
movax-dev:~# debsums libc6-dev | grep -v OK
movax-dev:~# 

In /etc/security/limits.conf I have only this:
@users           hard    nproc           200

movax-dev:/etc# dmesg | grep -i selinux
[    0.012009] SELinux:  Disabled at boot.


Regards,
Witek


-- 
Witold Baryluk



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to