Information: Forum is in read-only mode
For details and other support options see https://www.adiscon.com/news/support-forum-set-to-read-only-mode/

rsyslog crashed while use omhiredis!

This is the place for you, if you got rsyslog up and running but wonder how to make it do what you want.

Moderator: alorbach

Google Ads


rsyslog crashed while use omhiredis!

Postby coolloves » Thu Dec 14, 2017 1:53 am

i use centos 6.7 x64
download rsyslog 8.31 and compiled from source with ./configure --enable-imfile --enable-mmjsonparse --enable-omhiredis.everything works fine except omhiredis.
i can load omhiredis,but if i add the omhiredis configuration and then restart rsyslog ,rsyslog crashed.
anyone plz give me some suggestion,very appreciate it!

below is my conf:

Code: Select all
module(load="imfile")
module(load="mmjsonparse")
module(load="omhiredis")


main_queue(
  queue.workerthreads="1"     
  queue.dequeueBatchSize="100"
  queue.size="10000"           
)

template(name="testjson"
         type="list") {
         constant(value="{ ")
         constant(value="\"type\":\"")
         property(name="programname")
         constant(value="\", ")
         constant(value="\"host\":\"")
         property(name="hostname")
         constant(value="\", ")
         constant(value="\"@version\":\"1\", ")
         constant(value="\"path\":\"/home/logs/testlog\", ")
         property(name="$!all-json" position.from="2")
}


template(name="testlog"
         type="string"
         string="/tmp/testlog.%hostname%.log")


ruleset(name="testrule") {
        action(type="mmjsonparse" cookie="")
        action(type="omfile"
               queue.filename="testlog"
               queue.type="linkedlist"
               DynaFile="testlog"
               template="testjson"
               dynaFileCacheSize="50"
               DirCreateMode="0755"
               FileCreateMode="0644")
        action(type="omhiredis"
               server="127.0.0.1"
               serverport="6379"
               mode="queue"
               key="testlog")
stop
}

input(type="imfile"
      File="/home/logs/testlog"
      Tag="testlog"
      ruleset="testrule"
)


below is the crash info,
Shutting down system logger: [FAILED]
Starting system logger: *** glibc detected *** /sbin/rsyslogd: free(): invalid pointer: 0x00007f9108d64ac8 ***
======= Backtrace: =========
/lib64/libc.so.6[0x3d32a75dee]
/lib64/libc.so.6[0x3d32a78c3d]
/sbin/rsyslogd(OMSRdestruct+0x35)[0x439a75]
/sbin/rsyslogd(addAction+0x566)[0x457786]
/sbin/rsyslogd(actionNewInst+0x12d)[0x457a9d]
/sbin/rsyslogd(cnfstmtNewAct+0x37)[0x4232b7]
/sbin/rsyslogd(yyparse+0x9ea)[0x41c38a]
/sbin/rsyslogd[0x42f63b]
/sbin/rsyslogd[0x40fd17]
/sbin/rsyslogd(main+0x45)[0x4102e5]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x3d32a1ed1d]
/sbin/rsyslogd[0x40e179]
======= Memory map: ========
00400000-0048d000 r-xp 00000000 ca:01 667364 /sbin/rsyslogd
0068c000-00696000 rw-p 0008c000 ca:01 667364 /sbin/rsyslogd
00696000-00698000 rw-p 00000000 00:00 0
018f7000-01919000 rw-p 00000000 00:00 0 [heap]
3907600000-3907604000 r-xp 00000000 ca:01 267731 /lib64/libuuid.so.1.3.0
3907604000-3907803000 ---p 00004000 ca:01 267731 /lib64/libuuid.so.1.3.0
3907803000-3907804000 rw-p 00003000 ca:01 267731 /lib64/libuuid.so.1.3.0
3907a00000-3907a02000 r-xp 00000000 ca:01 1054331 /usr/lib64/libestr.so.0.0.0
3907a02000-3907c02000 ---p 00002000 ca:01 1054331 /usr/lib64/libestr.so.0.0.0
3907c02000-3907c03000 rw-p 00002000 ca:01 1054331 /usr/lib64/libestr.so.0.0.0
3907e00000-3907e0a000 r-xp 00000000 ca:01 1073027 /usr/lib64/libfastjson.so.4.2.0
3907e0a000-3908009000 ---p 0000a000 ca:01 1073027 /usr/lib64/libfastjson.so.4.2.0
3908009000-390800a000 rw-p 00009000 ca:01 1073027 /usr/lib64/libfastjson.so.4.2.0
3d32600000-3d32620000 r-xp 00000000 ca:01 262166 /lib64/ld-2.12.so
3d32820000-3d32821000 r--p 00020000 ca:01 262166 /lib64/ld-2.12.so
3d32821000-3d32822000 rw-p 00021000 ca:01 262166 /lib64/ld-2.12.so
3d32822000-3d32823000 rw-p 00000000 00:00 0
3d32a00000-3d32b8a000 r-xp 00000000 ca:01 262170 /lib64/libc-2.12.so
3d32b8a000-3d32d8a000 ---p 0018a000 ca:01 262170 /lib64/libc-2.12.so
3d32d8a000-3d32d8e000 r--p 0018a000 ca:01 262170 /lib64/libc-2.12.so
3d32d8e000-3d32d90000 rw-p 0018e000 ca:01 262170 /lib64/libc-2.12.so
3d32d90000-3d32d94000 rw-p 00000000 00:00 0
3d32e00000-3d32e17000 r-xp 00000000 ca:01 262271 /lib64/libpthread-2.12.so
3d32e17000-3d33017000 ---p 00017000 ca:01 262271 /lib64/libpthread-2.12.so
3d33017000-3d33018000 r--p 00017000 ca:01 262271 /lib64/libpthread-2.12.so
3d33018000-3d33019000 rw-p 00018000 ca:01 262271 /lib64/libpthread-2.12.so
3d33019000-3d3301d000 rw-p 00000000 00:00 0
3d33200000-3d33202000 r-xp 00000000 ca:01 262212 /lib64/libdl-2.12.so
3d33202000-3d33402000 ---p 00002000 ca:01 262212 /lib64/libdl-2.12.so
3d33402000-3d33403000 r--p 00002000 ca:01 262212 /lib64/libdl-2.12.so
3d33403000-3d33404000 rw-p 00003000 ca:01 262212 /lib64/libdl-2.12.so
3d33600000-3d33607000 r-xp 00000000 ca:01 267616 /lib64/librt-2.12.so
3d33607000-3d33806000 ---p 00007000 ca:01 267616 /lib64/librt-2.12.so
3d33806000-3d33807000 r--p 00006000 ca:01 267616 /lib64/librt-2.12.so
3d33807000-3d33808000 rw-p 00007000 ca:01 267616 /lib64/librt-2.12.so
3d33e00000-3d33e15000 r-xp 00000000 ca:01 262272 /lib64/libz.so.1.2.3
3d33e15000-3d34014000 ---p 00015000 ca:01 262272 /lib64/libz.so.1.2.3
3d34014000-3d34015000 r--p 00014000 ca:01 262272 /lib64/libz.so.1.2.3
3d34015000-3d34016000 rw-p 00015000 ca:01 262272 /lib64/libz.so.1.2.3
3d34a00000-3d34a16000 r-xp 00000000 ca:01 267629 /lib64/libgcc_s-4.4.7-20120601.so.1
3d34a16000-3d34c15000 ---p 00016000 ca:01 267629 /lib64/libgcc_s-4.4.7-20120601.so.1
3d34c15000-3d34c16000 rw-p 00015000 ca:01 267629 /lib64/libgcc_s-4.4.7-20120601.so.1
7f9104000000-7f9104021000 rw-p 00000000 00:00 0
7f9104021000-7f9108000000 ---p 00000000 00:00 0
7f9108d63000-7f9108d66000 r-xp 00000000 ca:01 262210 /lib64/rsyslog/omhiredis.so
7f9108d66000-7f9108f65000 ---p 00003000 ca:01 262210 /lib64/rsyslog/omhiredis.so
7f9108f65000-7f9108f66000 rw-p 00002000 ca:01 262210 /lib64/rsyslog/omhiredis.so
7f9108f66000-7f9108f69000 r-xp 00000000 ca:01 267727 /lib64/rsyslog/mmjsonparse.so
7f9108f69000-7f9109168000 ---p 00003000 ca:01 267727 /lib64/rsyslog/mmjsonparse.so
7f9109168000-7f9109169000 rw-p 00002000 ca:01 267727 /lib64/rsyslog/mmjsonparse.so
7f9109169000-7f9109173000 r-xp 00000000 ca:01 267725 /lib64/rsyslog/imfile.so
7f9109173000-7f9109373000 ---p 0000a000 ca:01 267725 /lib64/rsyslog/imfile.so
7f9109373000-7f9109374000 rw-p 0000a000 ca:01 267725 /lib64/rsyslog/imfile.so
7f9109374000-7f9109378000 r-xp 00000000 ca:01 267722 /lib64/rsyslog/imklog.so
7f9109378000-7f9109577000 ---p 00004000 ca:01 267722 /lib64/rsyslog/imklog.so
7f9109577000-7f9109578000 rw-p 00003000 ca:01 267722 /lib64/rsyslog/imklog.so
7f9109578000-7f910957f000 r-xp 00000000 ca:01 267716 /lib64/rsyslog/imuxsock.so
7f910957f000-7f910977f000 ---p 00007000 ca:01 267716 /lib64/rsyslog/imuxsock.so
7f910977f000-7f9109780000 rw-p 00007000 ca:01 267716 /lib64/rsyslog/imuxsock.so
7f9109780000-7f91097b5000 r--s 00000000 ca:01 786460 /var/db/nscd/hosts
7f91097b5000-7f91097ba000 r-xp 00000000 ca:01 267690 /lib64/rsyslog/lmnet.so
7f91097ba000-7f91099b9000 ---p 00005000 ca:01 267690 /lib64/rsyslog/lmnet.so
7f91099b9000-7f91099ba000 rw-p 00004000 ca:01 267690 /lib64/rsyslog/lmnet.so/bin/bash: line 1: 18788 Aborted /sbin/rsyslogd -i /var/run/syslogd.pid
[FAILED]
Last edited by coolloves on Thu Dec 14, 2017 2:04 am, edited 1 time in total.
coolloves
New
 
Posts: 5
Joined: Wed Dec 13, 2017 1:07 pm

Urgent Question?

  • Pulling out your Hair?
  • Wasting Time and Money?
  • Deadline Approaching?

Re: rsyslog crashed while use omhiredis!

Postby coolloves » Thu Dec 14, 2017 1:55 am

if i remove omhiredis configuration but keep load omhiredis module,rsyslog could start correctly

action(type="omhiredis"
server="127.0.0.1"
serverport="6379"
mode="queue"
key="testlog")
coolloves
New
 
Posts: 5
Joined: Wed Dec 13, 2017 1:07 pm

Re: rsyslog crashed while use omhiredis!

Postby rgerhards » Thu Dec 14, 2017 8:22 am

Please post an issue at https://github.com/rsyslog/rsyslog/issues. As it seems to be an actual bug, it needs to be handled there.

Thx!
Rainer
rgerhards
Site Admin
 
Posts: 3807
Joined: Thu Feb 13, 2003 11:57 am

Re: rsyslog crashed while use omhiredis!

Postby coolloves » Thu Dec 14, 2017 8:39 am

rgerhards wrote:Please post an issue at https://github.com/rsyslog/rsyslog/issues. As it seems to be an actual bug, it needs to be handled there.

Thx!
Rainer

thanks for reply.already transfer to github.
coolloves
New
 
Posts: 5
Joined: Wed Dec 13, 2017 1:07 pm

Google Ads



Return to Configuration

Who is online

Users browsing this forum: No registered users and 3 guests

cron