<div dir="ltr"><div>Try this one. It should output some more information:</div><div><br></div><a href="https://github.com/bkil-syslogng/syslog-ng/tree/f/disabled-ipv6">https://github.com/bkil-syslogng/syslog-ng/tree/f/disabled-ipv6</a><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 21, 2016 at 12:50 PM, Claus Albøge <span dir="ltr"><<a href="mailto:ca@tdchosting.dk" target="_blank">ca@tdchosting.dk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have noticed that syslog-ng exits from time to time, with the following error:<br>
<br>
ERROR:lib/dnscache.c:112:dns_<wbr>cache_key_hash: code should not be reached<br>
<br>
Trying to run syslog-ng from gdb show the following:<br>
<br>
# gdb --args /usr/sbin/syslog-ng -F -p /var/run/syslogd.pid<br>
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-80.el7<br>
Copyright (C) 2013 Free Software Foundation, Inc.<br>
License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html" rel="noreferrer" target="_blank">http://gnu.org/licenses/gpl.<wbr>html</a>><br>
This is free software: you are free to change and redistribute it.<br>
There is NO WARRANTY, to the extent permitted by law. Type "show copying"<br>
and "show warranty" for details.<br>
This GDB was configured as "x86_64-redhat-linux-gnu".<br>
For bug reporting instructions, please see:<br>
<<a href="http://www.gnu.org/software/gdb/bugs/" rel="noreferrer" target="_blank">http://www.gnu.org/software/<wbr>gdb/bugs/</a>>...<br>
Reading symbols from /usr/sbin/syslog-ng...Reading symbols from /usr/lib/debug/usr/sbin/<wbr>syslog-ng.debug...done.<br>
done.<br>
(gdb) run<br>
Starting program: /usr/sbin/syslog-ng -F -p /var/run/syslogd.pid<br>
[Thread debugging using libthread_db enabled]<br>
Using host libthread_db library "/lib64/libthread_db.so.1".<br>
[New Thread 0x7ffff1e8a700 (LWP 18743)]<br>
[New Thread 0x7ffff1689700 (LWP 18748)]<br>
[New Thread 0x7ffff0e88700 (LWP 18893)]<br>
[New Thread 0x7fffe3fff700 (LWP 18956)]<br>
[New Thread 0x7fffe37fe700 (LWP 18959)]<br>
[New Thread 0x7fffe2ffd700 (LWP 18960)]<br>
[New Thread 0x7fffe27fc700 (LWP 18961)]<br>
[New Thread 0x7fffe1ffb700 (LWP 18962)]<br>
[Thread 0x7ffff1689700 (LWP 18748) exited]<br>
[Thread 0x7fffe27fc700 (LWP 18961) exited]<br>
[Thread 0x7fffe3fff700 (LWP 18956) exited]<br>
[New Thread 0x7fffe3fff700 (LWP 19114)]<br>
[New Thread 0x7fffe27fc700 (LWP 19136)]<br>
[New Thread 0x7ffff1689700 (LWP 19137)]<br>
[Thread 0x7fffe27fc700 (LWP 19136) exited]<br>
[Thread 0x7ffff1e8a700 (LWP 18743) exited]<br>
[New Thread 0x7ffff1e8a700 (LWP 19338)]<br>
[New Thread 0x7fffe27fc700 (LWP 19339)]<br>
[Thread 0x7fffe27fc700 (LWP 19339) exited]<br>
[Thread 0x7ffff1e8a700 (LWP 19338) exited]<br>
[New Thread 0x7ffff1e8a700 (LWP 19566)]<br>
[New Thread 0x7fffe27fc700 (LWP 19567)]<br>
[Thread 0x7ffff1e8a700 (LWP 19566) exited]<br>
[Thread 0x7fffe37fe700 (LWP 18959) exited]<br>
[New Thread 0x7ffff1e8a700 (LWP 19731)]<br>
[New Thread 0x7fffe37fe700 (LWP 19732)]<br>
[Thread 0x7fffe27fc700 (LWP 19567) exited]<br>
[Thread 0x7fffe1ffb700 (LWP 18962) exited]<br>
[New Thread 0x7fffe1ffb700 (LWP 19984)]<br>
[New Thread 0x7fffe27fc700 (LWP 19985)]<br>
**<br>
ERROR:lib/dnscache.c:112:dns_<wbr>cache_key_hash: code should not be reached<br>
<br>
Program received signal SIGABRT, Aborted.<br>
[Switching to Thread 0x7ffff1689700 (LWP 19137)]<br>
0x00007ffff5fb05f7 in raise () from /lib64/libc.so.6<br>
Missing separate debuginfos, use: debuginfo-install bzip2-libs-1.0.6-13.el7.x86_64 elfutils-libelf-0.163-3.el7.<wbr>x86_64 elfutils-libs-0.163-3.el7.x86_<wbr>64 eventlog-0.2.13-4.el7.x86_64 glib2-2.42.2-5.el7.x86_64 glibc-2.17-106.el7_2.8.x86_64 ivykis-0.36.2-2.el7.x86_64 json-c-0.11-4.el7_0.x86_64 keyutils-libs-1.5.8-3.el7.x86_<wbr>64 krb5-libs-1.13.2-12.el7_2.x86_<wbr>64 libattr-2.4.46-12.el7.x86_64 libcap-2.22-8.el7.x86_64 libcom_err-1.42.9-7.el7.x86_64 libgcc-4.8.5-4.el7.x86_64 libgcrypt-1.5.3-12.el7_1.1.<wbr>x86_64 libgpg-error-1.12-3.el7.x86_64 libnet-1.1.6-7.el7.x86_64 libselinux-2.2.2-6.el7.x86_64 libuuid-2.23.2-26.el7_2.3.x86_<wbr>64 openssl-libs-1.0.1e-51.el7_2.<wbr>5.x86_64 pcre-8.32-15.el7_2.1.x86_64 systemd-libs-219-19.el7_2.13.<wbr>x86_64 tcp_wrappers-libs-7.6-77.el7.<wbr>x86_64 xz-libs-5.1.2-12alpha.el7.x86_<wbr>64 zlib-1.2.7-15.el7.x86_64<br>
(gdb)<br>
(gdb) bt<br>
#0 0x00007ffff5fb05f7 in raise () from /lib64/libc.so.6<br>
#1 0x00007ffff5fb1ce8 in abort () from /lib64/libc.so.6<br>
#2 0x00007ffff70426d5 in g_assertion_message () from /lib64/libglib-2.0.so.0<br>
#3 0x00007ffff704276a in g_assertion_message_expr () from /lib64/libglib-2.0.so.0<br>
#4 0x00007ffff7b62cc4 in dns_cache_key_hash (e=<optimized out>) at lib/dnscache.c:112<br>
#5 0x00007ffff700c4fc in g_hash_table_remove_internal () from /lib64/libglib-2.0.so.0<br>
#6 0x00007ffff7b67584 in resolve_sockaddr_to_inet_or_<wbr>inet6_hostname (host_resolve_options=<wbr>0x651754, saddr=0x7fffec3840d0, result_len=0x7ffff1686370) at lib/host-resolve.c:332<br>
#7 resolve_sockaddr_to_hostname (result_len=result_len@entry=<wbr>0x7ffff1686370, saddr=0x7fffec3840d0, host_resolve_options=0x651754) at lib/host-resolve.c:343<br>
#8 0x00007ffff7b6c03a in log_source_mangle_hostname (self=self@entry=0x1cdf400, msg=msg@entry=0x7fffe4ec6da0) at lib/logsource.c:156<br>
#9 0x00007ffff7b6c280 in log_source_queue (s=0x1cdf400, msg=0x7fffe4ec6da0, path_options=0x7ffff1686550, user_data=<optimized out>) at lib/logsource.c:266<br>
#10 0x00007ffff7b6ca0a in log_pipe_queue (path_options=<optimized out>, msg=<optimized out>, s=<optimized out>) at lib/logpipe.h:339<br>
#11 log_pipe_forward_msg (self=<optimized out>, path_options=<optimized out>, msg=<optimized out>) at lib/logpipe.h:302<br>
#12 log_pipe_queue (path_options=<optimized out>, msg=<optimized out>, s=<optimized out>) at lib/logpipe.h:343<br>
#13 log_pipe_forward_msg (self=<optimized out>, path_options=<optimized out>, msg=<optimized out>) at lib/logpipe.h:302<br>
#14 log_pipe_queue (path_options=<optimized out>, msg=0x7fffe4ec6da0, s=0x7fffe4ec6da0) at lib/logpipe.h:343<br>
#15 log_source_post (self=self@entry=0x1cdf400, msg=msg@entry=0x7fffe4ec6da0) at lib/logsource.c:249<br>
#16 0x00007ffff7b6b179 in log_reader_handle_line (aux=0x7ffff1686600, length=<optimized out>, line=<optimized out>, self=0x1cdf400) at lib/logreader.c:320<br>
#17 log_reader_fetch_log (self=self@entry=0x1cdf400) at lib/logreader.c:381<br>
#18 0x00007ffff7b6b299 in log_reader_work_perform (s=0x1cdf400) at lib/logreader.c:88<br>
#19 0x00007ffff7b7307d in _work (self=<optimized out>) at lib/mainloop-io-worker.c:52<br>
#20 0x00007ffff655dc67 in iv_work_thread_do_work () from /lib64/libivykis.so.0<br>
#21 0x00007ffff655cfc3 in iv_run_tasks () from /lib64/libivykis.so.0<br>
#22 0x00007ffff655f7dc in iv_main () from /lib64/libivykis.so.0<br>
#23 0x00007ffff655dab4 in iv_work_thread () from /lib64/libivykis.so.0<br>
#24 0x00007ffff6560270 in iv_thread_handler () from /lib64/libivykis.so.0<br>
#25 0x00007ffff6344dc5 in start_thread () from /lib64/libpthread.so.0<br>
#26 0x00007ffff6071ced in clone () from /lib64/libc.so.6<br>
<br>
# grep dns /etc/syslog-ng/syslog-ng.conf<br>
use_dns (no);<br>
<br>
Not sure what its trying to resolve.<br>
<br>
# syslog-ng -V<br>
syslog-ng 3.8.1<br>
Installer-Version: 3.8.1<br>
Revision:<br>
Module-Directory: //usr/lib64/syslog-ng<br>
Module-Path: //usr/lib64/syslog-ng<br>
Available-Modules: disk-buffer,sdjournal,afstomp,<wbr>json-plugin,cryptofuncs,<wbr>graphite,cef,kvformat,add-<wbr>contextual-data,dbparser,<wbr>pseudofile,csvparser,<wbr>syslogformat,confgen,afsocket,<wbr>afuser,date,linux-kmsg-format,<wbr>system-source,basicfuncs,<wbr>afamqp,affile,afprog<br>
Enable-Debug: off<br>
Enable-GProf: off<br>
Enable-Memtrace: off<br>
Enable-IPv6: on<br>
Enable-Spoof-Source: on<br>
Enable-TCP-Wrapper: on<br>
Enable-Linux-Caps: off<br>
<br>
Please let me know, if more info is needed.<br>
<br>
<br>
/Claus A<br>
<br>
______________________________<wbr>______________________________<wbr>__________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/<wbr>mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/<wbr>support/documentation/?<wbr>product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/<wbr>syslog-ng-faq</a><br>
<br>
</blockquote></div><br></div></div>