Hi,

This simple config generate a segfault (version 8.20). Impstats is just here to auto create input-data.

####### rsyslog-mmexternal.conf ########
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat

module(load="mmexternal")
module(load="impstats" interval="10" resetcounters="on")

action(type="mmexternal" binary="sample-external.sh"
       interface.input="msg" output="msg.external")

action(type="omfile" file="msg.log")


####### sample-external.sh #######
#!/bin/bash

while read ; do
    echo "[DEBUG] $REPLY" >> ${0##*/}.debug
    echo '{ "$!": { "data": "test" }, "syslogtag": "test" }'
done

###### command line ######
$ rsyslogd -C -nd -i rsyslog-mmexternal.pid -f rsyslog-mmexternal.conf
(...)
5645.206063340:main Q:Reg/w0 : actionCommit, action 1, in retry loop, iRet 0 5645.206065989:main Q:Reg/w0 : processBATCH: batch of 1 elements has been processed 5645.206069834:main Q:Reg/w0 : regular consumer finished, iret=0, szlog 0 sz phys 1
Segmentation fault (core dumped)

###### backtrace (no thread bt) ######
#0  0x00007fb979dbe205 in lh_table_free ()
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.192.el6.x86_64 libgcc-4.4.7-17.el6.x86_64 libuuid-2.17.2-12.24.el6.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) info thread
3 Thread 0x7fb979fc2740 (LWP 16726) 0x00007fb978c1d523 in select () from /lib64/libc.so.6 2 Thread 0x7fb97852b700 (LWP 16727) 0x00007fb978c1d523 in select () from /lib64/libc.so.6 * 1 Thread 0x7fb973fff700 (LWP 16728) 0x00007fb979dbe205 in lh_table_free ()


Is someone have an idea ?

Regards

Benoit

--
Benoit DOLEZ, POM Monitoring, www.pom-monitoring.com

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to