I just upgraded to 25.12 with a working RSyslog configurationin 24.10, which is now segfaulting.
Note: I use rsyslog as a replacement for the log facility in OpenWRT. To be honest, I dont remember the reason why I did this (this is a centralized log server for various devices)
root@OpenWrt-filogic:~# service | grep log
/etc/init.d/log disabled stopped
/etc/init.d/rsyslog enabled stopped
root@OpenWrt-filogic:~# grep -v ^# /etc/rsyslog.conf
global(net.ipprotocol="ipv4-only")
template(
name="UTCTraditionalForwardFormat"
type="string"
string="<%PRI%>%TIMESTAMP:::date-utc% %HOSTNAME% %syslogtag:1:32%%msg:::sp-if-no-1st-sp%%msg%"
)
root@OpenWrt-filogic:~# cat /etc/config/rsyslog
config syslog 'syslog'
option tcp_input_port '514'
option udp_input '1'
option tcp_input '1'
option udp_input_port '514'
option default_template 'RSYSLOG_TraditionalFileFormat'
list modules 'imuxsock'
list modules 'imklog'
config selector
option source '*.info;mail.none;authpriv.none;cron.none'
option destination '/mnt/sda2/var/log/messages'
config selector
option source 'authpriv.*'
option destination '/mnt/sda2/var/log/secure'
config selector
option source 'mail.*'
option destination '/mnt/sda2/var/log/maillog'
config selector
option source 'cron.*'
option destination '/mnt/sda2/var/log/cron'
config selector
option source 'local7.*'
option destination '/mnt/sda2/var/log/boot.log'
root@OpenWrt-filogic:~# strace /usr/sbin/rsyslogd -f /var/etc/rsyslog.conf -n
execve("/usr/sbin/rsyslogd", ["/usr/sbin/rsyslogd", "-f", "/var/etc/rsyslog.conf", "-n"], 0x7fe0b47668 /* 14 vars */) = 0
<snip>
--- SIGTTOU {si_signo=SIGTTOU, si_code=SI_USER, si_pid=14032, si_uid=0} ---
rt_sigreturn({mask=[]}) = 0
openat(AT_FDCWD, "/var/run/rsyslogd.pid.tmp", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 10
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f86051000
ioctl(10, TIOCGWINSZ, 0x7fc46179c8) = -1 ENOTTY (Not a tty)
writev(10, [{iov_base="14032", iov_len=5}, {iov_base=NULL, iov_len=0}], 2) = 5
close(10) = 0
munmap(0x7f86051000, 4096) = 0
renameat(AT_FDCWD, "/var/run/rsyslogd.pid.tmp", AT_FDCWD, "/var/run/rsyslogd.pid") = 0
kill(14032, SIGTTOU) = 0
--- SIGTTOU {si_signo=SIGTTOU, si_code=SI_USER, si_pid=14032, si_uid=0} ---
rt_sigreturn({mask=[]}) = 0
rt_sigprocmask(SIG_BLOCK, [HUP TERM CHLD], [], 8) = 0
socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 10
connect(10, {sa_family=AF_UNIX, sun_path="/dev/log"}, 12) = 0
sendto(10, "<46>Dec 26 15:58:06 : [origin so"..., 125, 0, NULL, 0) = 125
futex(0x7f8743c338, FUTEX_WAIT_PRIVATE, 2147483650, NULL) = -1 EAGAIN (Resource temporarily unavailable)
pselect6(0, NULL, NULL, NULL, {tv_sec=600, tv_nsec=0}, {sigmask=[], sigsetsize=8} <unfinished ...>) = ?
+++ killed by SIGSEGV +++
Segmentation fault