Hi. I installed the 3.20.2 stable release of rsyslog so that the allowedsenders function would work properly (We were testing 3.18.3 previously. If no allowed senders are defined in the config file the "service rsyslog reload" command completes without error. However as soon as you add one or more allowed senders to the rsyslog.conf file, rsyslog goes down with a SEGV signal. debug run shows the config file being processed and then it fails as follows.
I also uploaded the rsyslog.conf that was used during the test. I manually changed the beginning of the allowed senders IP address so as not to expose it on the site. I can try the beta release to see if it also has the problem.
3998.198543506:main thread: template: 'DYNspooler' assigned
3998.198550913:main thread: action 26 queue: save on shutdown 1, max disk space allowed 0
3998.198558112:main thread: action 26 queue: type 3, enq-only 0, disk assisted 0, maxFileSz 1048576, qsize 0, child 0 starting
3998.198565255:main thread: Action 0x8466770: queue 0x84667e8 created
3998.198574866:main thread: selector line successfully processed
3998.198591280:main thread: main queue: is NOT disk-assisted
3998.198598518:main thread: main queue: type 0, enq-only 0, disk assisted 0, maxFileSz 1048576, qsize 0, child 0 starting
3998.198607703:main thread: main queue:Reg: finalizing construction of worker thread pool
3998.198615272:main thread: main queue:Reg/w0: finalizing construction of worker instance data
3998.198621115:main thread: main queue: queue starts up without (loading) any DA disk state (this is normal for the DA queue itself!)
3998.198627533:main thread: main queue:Reg: high activity - starting 1 additional worker thread(s).
3998.198633857:main thread: main queue:Reg/w0: receiving command 2
3998.198649215:main thread: main queue:Reg: started with state 0, num workers now 1
3998.198663551:main thread: Main processing queue is initialized and running
3998.198685682:main thread: Opened UNIX socket '/dev/log' (fd 3).
3998.198727670:main thread: main queue: entry added, size now 1 entries
3998.198736274:main thread: main queue: EnqueueMsg signaled condition (0)
3998.198742769:main thread: wtpAdviseMaxWorkers signals busy
3998.198754432:main thread: Allowed UDP Senders:
3998.198765417:main thread:
Signal 11 (SIGSEGV) occured, execution must be terminated.
3998.198773266:main thread:
3998.198778403:main thread: Recorded Call Order for Thread 'main thread (b7f2b6c0)':
3998.198784120:main thread: maximum number of nested calls for this thread: 0.
I put the process in gdb and did the reload. This is the output
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /usr/lib/rsyslog/imuxsock.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/rsyslog/imuxsock.so
Reading symbols from /usr/lib/rsyslog/imklog.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/rsyslog/imklog.so
Reading symbols from /usr/lib/rsyslog/imudp.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/rsyslog/imudp.so
(no debugging symbols found)
0x00591402 in __kernel_vsyscall ()
(gdb) cont
Continuing.
Program received signal SIGHUP, Hangup.
[Switching to Thread -1208080704 (LWP 1449)]
0x00591402 in __kernel_vsyscall ()
(gdb) cont
Continuing.
[Thread -1218573424 (LWP 1451) exited]
[Thread -1229063280 (LWP 1452) exited]
[Thread -1239553136 (LWP 1453) exited]
[Thread -1208083568 (LWP 1450) exited]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New Thread -1208083568 (LWP 1681)]
[New Thread -1239553136 (LWP 1682)]
[New Thread -1229063280 (LWP 1683)]
Program received signal SIGSEGV, Segmentation fault.
0x003211db in PrintAllowedSenders () from /usr/lib/rsyslog/lmnet.so
where
#0 0x003211db in PrintAllowedSenders () from /usr/lib/rsyslog/lmnet.so
#1 0x00dd4b1f in __cxa_finalize@plt () from /usr/lib/rsyslog/imudp.so
#2 0x0805108f in selectorAddList ()
#3 0x080531f9 in realMain ()
#4 0x080536cf in main ()
(gdb)


