Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Sep 2019 10:27:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 240936] sysutils/rsyslog8 dumps core on 11.3-RELEASE-p3
Message-ID:  <bug-240936-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240936

            Bug ID: 240936
           Summary: sysutils/rsyslog8 dumps core on 11.3-RELEASE-p3
           Product: Ports & Packages
           Version: Latest
          Hardware: i386
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: matthew@FreeBSD.org
          Reporter: luciano@vespaperitivo.it
          Assignee: matthew@FreeBSD.org
             Flags: maintainer-feedback?(matthew@FreeBSD.org)

>From time to time, rsyslog dumps core with no apparent reason.

The version is the latest one from the pkg collection:

/usr/local/sbin/rsyslogd -v
rsyslogd  8.1905.0 (aka 2019.05) compiled with:
        PLATFORM:                               i386-portbld-freebsd11.2
        PLATFORM (lsb_release -d):=20=20=20=20=20=20=20=20=20=20=20=20=20=20
        FEATURE_REGEXP:                         Yes
        GSSAPI Kerberos 5 support:              No
        FEATURE_DEBUG (debug build, slow code): No
        32bit Atomic operations supported:      Yes
        64bit Atomic operations supported:      Yes
        memory allocator:                       system default
        Runtime Instrumentation (slow code):    No
        uuid support:                           Yes
        systemd support:                        No
        Config file:                            /usr/local/etc/rsyslog.conf
        PID file:                               /var/run/rsyslogd.pid
        Number of Bits in RainerScript integers: 64

gdb says:

root@magnolia:/ # gdb /usr/local/sbin/rsyslogd
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain condition=
s.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols
found)...
(gdb) core /rsyslogd.core
Core was generated by `/usr/local/sbin/rsyslogd -i /var/run/syslog.pid -f
/usr/local/etc/rsyslog.conf'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libz.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.6
Reading symbols from /usr/lib/librt.so.1...(no debugging symbols found)...d=
one.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /usr/local/lib/libestr.so.0...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libestr.so.0
Reading symbols from /usr/local/lib/libfastjson.so.4...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libfastjson.so.4
Reading symbols from /usr/local/lib/libuuid.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libuuid.so.1
Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/local/lib/rsyslog/lmnet.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/rsyslog/lmnet.so
Reading symbols from /usr/local/lib/rsyslog/immark.so...(no debugging symbo=
ls
found)...done.
Loaded symbols for /usr/local/lib/rsyslog/immark.so
Reading symbols from /usr/local/lib/rsyslog/imuxsock.so...(no debugging sym=
bols
found)...done.
Loaded symbols for /usr/local/lib/rsyslog/imuxsock.so
Reading symbols from /usr/local/lib/rsyslog/imklog.so...(no debugging symbo=
ls
found)...done.
Loaded symbols for /usr/local/lib/rsyslog/imklog.so
Reading symbols from /usr/local/lib/rsyslog/imudp.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/rsyslog/imudp.so
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols
found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x28132e2b in pthread_mutex_destroy () from /lib/libthr.so.3
(gdb) bt
#0  0x28132e2b in pthread_mutex_destroy () from /lib/libthr.so.3
#1  0x28131f34 in pthread_mutex_lock () from /lib/libthr.so.3
#2  0x0809420a in strmQueryInterface ()
#3  0x0805bbdd in modInitFile ()
#4  0x080a65c6 in actionClassInit ()
#5  0x080a4a69 in actionCommitAllDirect ()
#6  0x080a4951 in actionCommitAllDirect ()
#7  0x0809eb78 in rulesetQueryInterface ()
#8  0x08054ca3 in createMainQueue ()
#9  0x0809ae69 in qqueueStart ()
#10 0x08097a5b in wtiWorker ()
#11 0x08096fa3 in wtpClassInit ()
#12 0x2812b28b in pthread_create () from /lib/libthr.so.3
#13 0x00000000 in ?? ()

The configuration is nothing to write home about:

/usr/local/etc/rsyslog.conf
$ModLoad immark
$ModLoad imuxsock
$ModLoad imklog
$ModLoad imudp
$UDPServeraddress       212.45.146.14
$UDPServerRun 514

template(name=3D"DynAmiX" type=3D"string"
string=3D"/var/log/logretention/%$year%%$month%%$day%%$hour%%$minute%/%host=
name%/logretention.log"
        )
:source, !contains, "magnolia" ?DynAmiX
:source, !contains, "magnolia" stop

*.err;kern.warning;auth.notice;mail.crit                /dev/console
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err=20=20
/var/log/messages
security.*                                      /var/log/security
auth.info;authpriv.info                         ?DynAmiX
auth.info;authpriv.info                         /var/log/auth.log
mail.info                                       /var/log/maillog
lpr.info                                        /var/log/lpd-errs
ftp.info                                        /var/log/xferlog
cron.*                                          /var/log/cron
*.debug                                         /var/log/debug.log
*.emerg                                         :omusrmsg:root

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240936-7788>