{"action":"created","issue":{"url":"https://api.github.com/repos/rsyslog/rsyslog/issues/115","labels_url":"https://api.github.com/repos/rsyslog/rsyslog/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/rsyslog/rsyslog/issues/115/comments","events_url":"https://api.github.com/repos/rsyslog/rsyslog/issues/115/events","html_url":"https://github.com/rsyslog/rsyslog/issues/115","id":40983125,"number":115,"title":"Fast restarts of rsyslog causes crash/hang","user":{"login":"simmel","id":191100,"avatar_url":"https://avatars.githubusercontent.com/u/191100?v=3","gravatar_id":"","url":"https://api.github.com/users/simmel","html_url":"https://github.com/simmel","followers_url":"https://api.github.com/users/simmel/followers","following_url":"https://api.github.com/users/simmel/following{/other_user}","gists_url":"https://api.github.com/users/simmel/gists{/gist_id}","starred_url":"https://api.github.com/users/simmel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simmel/subscriptions","organizations_url":"https://api.github.com/users/simmel/orgs","repos_url":"https://api.github.com/users/simmel/repos","events_url":"https://api.github.com/users/simmel/events{/privacy}","received_events_url":"https://api.github.com/users/simmel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-08-23T19:40:58Z","updated_at":"2015-06-25T13:33:00Z","closed_at":null,"body":"I'm running 8.4.0 on Ubuntu 14.04.1 LTS from your apt repo and while restarting rsyslog quickly because I was testing new config I ran into this bug which can be reproduced like this:\r\n\r\n```\r\nroot@syslog:~# while true; do date; restart rsyslog; done\r\nSat Aug 23 21:03:14 CEST 2014\r\nrsyslog start/running, process 8944\r\nSat Aug 23 21:03:15 CEST 2014\r\nrsyslog start/running, process 8958\r\nSat Aug 23 21:03:15 CEST 2014\r\nrsyslog start/running, process 8972\r\nSat Aug 23 21:03:16 CEST 2014\r\nrsyslog start/running, process 8986\r\n[...]\r\nSat Aug 23 21:04:06 CEST 2014\r\nrsyslog start/running, process 9925\r\nSat Aug 23 21:04:06 CEST 2014\r\nrsyslog start/running, process 9939\r\nSat Aug 23 21:04:07 CEST 2014\r\nrsyslog start/running, process 9973\r\nSat Aug 23 21:07:00 CEST 2014\r\nrsyslog start/running, process 9987\r\nSat Aug 23 21:07:02 CEST 2014\r\nrsyslog start/running, process 10001\r\nSat Aug 23 21:07:03 CEST 2014\r\n^C\r\nroot@syslog:~#\r\n\r\nroot@syslog:~# ps auxwwf| grep rsyslog\r\nroot      9938  0.1  0.5  12068  5716 ?        Ss   21:04   0:00 rsyslogd\r\nsyslog    9939  0.0  0.0      0     0 ?        Zs   21:04   0:00  \\_ [rsyslogd] <defunct>\r\nroot@syslog:~# gdb --pid=9938\r\nGNU gdb (Ubuntu 7.7-0ubuntu3.1) 7.7\r\nCopyright (C) 2014 Free Software Foundation, Inc.\r\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\r\nThis is free software: you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\r\nand \"show warranty\" for details.\r\nThis GDB was configured as \"i686-linux-gnu\".\r\nType \"show configuration\" for configuration details.\r\nFor bug reporting instructions, please see:\r\n<http://www.gnu.org/software/gdb/bugs/>.\r\nFind the GDB manual and other documentation resources online at:\r\n<http://www.gnu.org/software/gdb/documentation/>.\r\nFor help, type \"help\".\r\nType \"apropos word\" to search for commands related to \"word\".\r\nAttaching to process 9938\r\nReading symbols from /usr/sbin/rsyslogd...(no debugging symbols found)...done.\r\nReading symbols from /lib/i386-linux-gnu/libz.so.1...(no debugging symbols found)...done.\r\nLoaded symbols for /lib/i386-linux-gnu/libz.so.1\r\nReading symbols from /lib/i386-linux-gnu/libpthread.so.0...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/libpthread-2.19.so...done.\r\ndone.\r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/lib/i386-linux-gnu/libthread_db.so.1\".\r\nLoaded symbols for /lib/i386-linux-gnu/libpthread.so.0\r\nReading symbols from /lib/i386-linux-gnu/libdl.so.2...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/libdl-2.19.so...done.\r\ndone.\r\nLoaded symbols for /lib/i386-linux-gnu/libdl.so.2\r\nReading symbols from /lib/i386-linux-gnu/librt.so.1...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/librt-2.19.so...done.\r\ndone.\r\nLoaded symbols for /lib/i386-linux-gnu/librt.so.1\r\nReading symbols from /usr/lib/i386-linux-gnu/libjemalloc.so.1...(no debugging symbols found)...done.\r\nLoaded symbols for /usr/lib/i386-linux-gnu/libjemalloc.so.1\r\nReading symbols from /usr/lib/i386-linux-gnu/libestr.so.0...(no debugging symbols found)...done.\r\nLoaded symbols for /usr/lib/i386-linux-gnu/libestr.so.0\r\nReading symbols from /lib/i386-linux-gnu/libuuid.so.1...(no debugging symbols found)...done.\r\nLoaded symbols for /lib/i386-linux-gnu/libuuid.so.1\r\nReading symbols from /lib/i386-linux-gnu/libjson-c.so.2...(no debugging symbols found)...done.\r\nLoaded symbols for /lib/i386-linux-gnu/libjson-c.so.2\r\nReading symbols from /lib/i386-linux-gnu/libc.so.6...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/libc-2.19.so...done.\r\ndone.\r\nLoaded symbols for /lib/i386-linux-gnu/libc.so.6\r\nReading symbols from /lib/ld-linux.so.2...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/ld-2.19.so...done.\r\ndone.\r\nLoaded symbols for /lib/ld-linux.so.2\r\nReading symbols from /usr/lib/rsyslog/lmnet.so...(no debugging symbols found)...done.\r\nLoaded symbols for /usr/lib/rsyslog/lmnet.so\r\nReading symbols from /usr/lib/rsyslog/imuxsock.so...(no debugging symbols found)...done.\r\nLoaded symbols for /usr/lib/rsyslog/imuxsock.so\r\nReading symbols from /usr/lib/rsyslog/imklog.so...(no debugging symbols found)...done.\r\nLoaded symbols for /usr/lib/rsyslog/imklog.so\r\nReading symbols from /lib/i386-linux-gnu/libnss_compat.so.2...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/libnss_compat-2.19.so...done.\r\ndone.\r\nLoaded symbols for /lib/i386-linux-gnu/libnss_compat.so.2\r\nReading symbols from /lib/i386-linux-gnu/libnsl.so.1...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/libnsl-2.19.so...done.\r\ndone.\r\nLoaded symbols for /lib/i386-linux-gnu/libnsl.so.1\r\nReading symbols from /lib/i386-linux-gnu/libnss_nis.so.2...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/libnss_nis-2.19.so...done.\r\ndone.\r\nLoaded symbols for /lib/i386-linux-gnu/libnss_nis.so.2\r\nReading symbols from /lib/i386-linux-gnu/libnss_files.so.2...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/libnss_files-2.19.so...done.\r\ndone.\r\nLoaded symbols for /lib/i386-linux-gnu/libnss_files.so.2\r\n0xb777f424 in __kernel_vsyscall ()\r\n(gdb) thread apply all bt full\r\n\r\nThread 1 (Thread 0xb7538740 (LWP 9938)):\r\n#0  0xb777f424 in __kernel_vsyscall ()\r\nNo symbol table info available.\r\n#1  0xb7634168 in __unregister_atfork (dso_handle=0xb77320b8) at ../nptl/sysdeps/unix/sysv/linux/unregister-atfork.c:117\r\n        _val = 1\r\n        val = 1\r\n        runp = <optimised out>\r\n        lastp = <optimised out>\r\n        deleted = 0xbfb2dac0\r\n#2  0xb7702bc3 in ?? () from /usr/lib/i386-linux-gnu/libjemalloc.so.1\r\nNo symbol table info available.\r\n#3  0xb778f35c in _dl_fini () at dl-fini.c:252\r\n        array = 0xb7731370\r\n        i = 0\r\n        nmaps = <optimised out>\r\n        nloaded = <optimised out>\r\n        i = <optimised out>\r\n        l = 0xb7741580\r\n        ns = <optimised out>\r\n        maps = <optimised out>\r\n        maps_size = <optimised out>\r\n        do_audit = <optimised out>\r\n        __PRETTY_FUNCTION__ = \"_dl_fini\"\r\n#4  0xb756d4e1 in __run_exit_handlers (status=status@entry=0, listp=0xb76e63c4 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true)\r\n    at exit.c:82\r\n        atfct = <optimised out>\r\n        onfct = <optimised out>\r\n        cxafct = <optimised out>\r\n        f = <optimised out>\r\n#5  0xb756d53d in __GI_exit (status=0) at exit.c:104\r\nNo locals.\r\n#6  0x080531ff in _start ()\r\nNo symbol table info available.\r\n(gdb) generate-core-file\r\nSaved corefile core.9938\r\n(gdb) detach\r\nDetaching from program: /usr/sbin/rsyslogd, process 9938\r\n(gdb) quit\r\nroot@syslog:~# strace -ttf -p 9938 -o 9938.out\r\nProcess 9938 attached\r\n^Z\r\n[1]+  Stopped                 strace -ttf -p 9938 -o 9938.out\r\nroot@syslog:~# bg\r\n[1]+ strace -ttf -p 9938 -o 9938.out &\r\nroot@syslog:~# pkill -9 rsyslogd\r\n[1]+  Done                    strace -ttf -p 9938 -o 9938.out\r\nroot@syslog:~# cat 9938.out\r\n9938  21:06:53.354104 futex(0xb76e8434, FUTEX_WAIT_PRIVATE, 1, NULL <unfinished ...>\r\n9938  21:07:00.063353 +++ killed by SIGKILL +++\r\nroot@syslog:~#\r\n```\r\n\r\nI hope any of this is useful. I have saved the core but it should easily be reproduced."},"comment":{"url":"https://api.github.com/repos/rsyslog/rsyslog/issues/comments/115259618","html_url":"https://github.com/rsyslog/rsyslog/issues/115#issuecomment-115259618","issue_url":"https://api.github.com/repos/rsyslog/rsyslog/issues/115","id":115259618,"user":{"login":"ipleten","id":6207156,"avatar_url":"https://avatars.githubusercontent.com/u/6207156?v=3","gravatar_id":"","url":"https://api.github.com/users/ipleten","html_url":"https://github.com/ipleten","followers_url":"https://api.github.com/users/ipleten/followers","following_url":"https://api.github.com/users/ipleten/following{/other_user}","gists_url":"https://api.github.com/users/ipleten/gists{/gist_id}","starred_url":"https://api.github.com/users/ipleten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipleten/subscriptions","organizations_url":"https://api.github.com/users/ipleten/orgs","repos_url":"https://api.github.com/users/ipleten/repos","events_url":"https://api.github.com/users/ipleten/events{/privacy}","received_events_url":"https://api.github.com/users/ipleten/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T13:33:00Z","updated_at":"2015-06-25T13:33:00Z","body":"Hi,\r\nI have the same problem with v8.8\r\nDo you use disk-based queues?\r\n"}}