{"action":"created","issue":{"url":"https://api.github.com/repos/vstakhov/rmilter/issues/155","repository_url":"https://api.github.com/repos/vstakhov/rmilter","labels_url":"https://api.github.com/repos/vstakhov/rmilter/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/vstakhov/rmilter/issues/155/comments","events_url":"https://api.github.com/repos/vstakhov/rmilter/issues/155/events","html_url":"https://github.com/vstakhov/rmilter/issues/155","id":173959097,"number":155,"title":"Rmilter dies with empty spamd whitelist","user":{"login":"moisseev","id":2275981,"avatar_url":"https://avatars.githubusercontent.com/u/2275981?v=3","gravatar_id":"","url":"https://api.github.com/users/moisseev","html_url":"https://github.com/moisseev","followers_url":"https://api.github.com/users/moisseev/followers","following_url":"https://api.github.com/users/moisseev/following{/other_user}","gists_url":"https://api.github.com/users/moisseev/gists{/gist_id}","starred_url":"https://api.github.com/users/moisseev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moisseev/subscriptions","organizations_url":"https://api.github.com/users/moisseev/orgs","repos_url":"https://api.github.com/users/moisseev/repos","events_url":"https://api.github.com/users/moisseev/events{/privacy}","received_events_url":"https://api.github.com/users/moisseev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-30T08:28:57Z","updated_at":"2016-09-02T14:52:03Z","closed_at":null,"body":"Rmilter dies when message received by `smtpd` if empty whitelist is configured in `spamd` section of `rmilter.conf.local`:\r\n~~~nginx\r\nspamd {\r\n...\r\n    whitelist = '';\r\n...\r\n}\r\n~~~\r\nAll is fine if `whitelist = ...` is just commented out in `rmilter.conf`.\r\n~~~\r\nAug 30 11:10:00 mx rmilter[42242]: reload_thread: reloading, rmilter version 1.9.2\r\nAug 30 11:10:22 mx postfix/submission/smtpd[92594]: connect from unknown[192.168.255.10]\r\nAug 30 11:10:22 mx rmilter[42242]: <7ed668acd7>; accepted connection from mx.example.com; client: 192.168.255.10:53489 ([192.168.255.10])\r\nAug 30 11:10:23 mx postfix/submission/smtpd[92594]: Anonymous TLS connection established from unknown[192.168.255.10]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)\r\nAug 30 11:10:23 mx rmilter[42242]: <7ed668acd7>; mlfi_envfrom: client is authenticated as: user@example.com\r\nAug 30 11:10:23 mx postfix/submission/smtpd[92594]: 0DB5461FDE: client=unknown[192.168.255.10], sasl_method=CRAM-MD5, sasl_username=user@example.com\r\nAug 30 11:10:23 mx rmilter[42242]: <7ed668acd7>; mlfi_data: queue id: <0DB5461FDE>\r\nAug 30 11:10:23 mx postfix/cleanup[92662]: 0DB5461FDE: message-id=<e932c740-8a4f-c91c-be4f-b523c6496304@example.com>\r\nAug 30 11:10:23 mx rmilter[42242]: <7ed668acd7>; mlfi_eom: tempfile=/tmp/msg.RLDDho6Y, size=626\r\nAug 30 11:10:26 mx postfix/cleanup[92662]: warning: milter unix:/var/run/rmilter/rmilter.sock: can't read SMFIC_BODYEOB reply packet header: No error: 0\r\nAug 30 11:10:26 mx postfix/qmgr[46960]: 0DB5461FDE: from=<user@example.com>, size=781, nrcpt=1 (queue active)\r\nAug 30 11:10:26 mx postfix/submission/smtpd[92594]: disconnect from unknown[192.168.255.10] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8\r\n~~~\r\n~~~\r\n# gdb `which rmilter` -c /coreland/rmilter.core\r\nGNU gdb 6.1.1 [FreeBSD]\r\nCopyright 2004 Free Software Foundation, Inc.\r\nGDB is free software, covered by the GNU General Public License, and you are\r\nwelcome to change it and/or distribute copies of it under certain conditions.\r\nType \"show copying\" to see the conditions.\r\nThere is absolutely no warranty for GDB.  Type \"show warranty\" for details.\r\nThis GDB was configured as \"i386-marcel-freebsd\"...(no debugging symbols found)...\r\nCore was generated by `rmilter'.\r\nProgram terminated with signal 6, Aborted.\r\nReading symbols from /lib/libcrypto.so.7...(no debugging symbols found)...done.\r\nLoaded symbols for /lib/libcrypto.so.7\r\nReading symbols from /usr/lib/libmilter.so.5...(no debugging symbols found)...done.\r\nLoaded symbols for /usr/lib/libmilter.so.5\r\nReading symbols from /usr/local/lib/libpcre.so.1...(no debugging symbols found)...done.\r\nLoaded symbols for /usr/local/lib/libpcre.so.1\r\nReading symbols from /usr/local/lib/libglib-2.0.so.0...(no debugging symbols found)...done.\r\nLoaded symbols for /usr/local/lib/libglib-2.0.so.0\r\nReading symbols from /usr/local/lib/libintl.so.8...(no debugging symbols found)...done.\r\nLoaded symbols for /usr/local/lib/libintl.so.8\r\nReading symbols from /usr/local/lib/libopendkim.so.10...(no debugging symbols found)...done.\r\nLoaded symbols for /usr/local/lib/libopendkim.so.10\r\nReading symbols from /lib/libm.so.5...(no debugging symbols found)...done.\r\nLoaded symbols for /lib/libm.so.5\r\nReading symbols from /lib/libthr.so.3...(no debugging symbols found)...done.\r\nLoaded symbols for /lib/libthr.so.3\r\nReading symbols from /lib/libc.so.7...(no debugging symbols found)...done.\r\nLoaded symbols for /lib/libc.so.7\r\nReading symbols from /usr/local/lib/libiconv.so.2...(no debugging symbols found)...done.\r\nLoaded symbols for /usr/local/lib/libiconv.so.2\r\nReading symbols from /usr/lib/libssl.so.7...(no debugging symbols found)...done.\r\nLoaded symbols for /usr/lib/libssl.so.7\r\nReading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.\r\nLoaded symbols for /libexec/ld-elf.so.1\r\n#0  0x284ea237 in thr_kill () from /lib/libc.so.7\r\n[New Thread 28c03800 (LWP 101137/<unknown>)]\r\n[New Thread 28c03580 (LWP 100433/<unknown>)]\r\n[New Thread 28c03300 (LWP 100432/<unknown>)]\r\n[New Thread 28c03080 (LWP 100285/<unknown>)]\r\n(gdb) bt full\r\n#0  0x284ea237 in thr_kill () from /lib/libc.so.7\r\nNo symbol table info available.\r\n#1  0x284ea22a in raise () from /lib/libc.so.7\r\nNo symbol table info available.\r\n#2  0x284ea176 in abort () from /lib/libc.so.7\r\nNo symbol table info available.\r\n#3  0x2834ee3f in g_assertion_message () from /usr/local/lib/libglib-2.0.so.0\r\nNo symbol table info available.\r\n#4  0x2834eeb6 in g_assertion_message_expr () from /usr/local/lib/libglib-2.0.so.0\r\nNo symbol table info available.\r\n#5  0x08052c5f in ?? ()\r\nNo symbol table info available.\r\n#6  0x00000000 in ?? ()\r\nNo symbol table info available.\r\n(gdb)\r\n~~~\r\n"},"comment":{"url":"https://api.github.com/repos/vstakhov/rmilter/issues/comments/244397182","html_url":"https://github.com/vstakhov/rmilter/issues/155#issuecomment-244397182","issue_url":"https://api.github.com/repos/vstakhov/rmilter/issues/155","id":244397182,"user":{"login":"vstakhov","id":487344,"avatar_url":"https://avatars.githubusercontent.com/u/487344?v=3","gravatar_id":"","url":"https://api.github.com/users/vstakhov","html_url":"https://github.com/vstakhov","followers_url":"https://api.github.com/users/vstakhov/followers","following_url":"https://api.github.com/users/vstakhov/following{/other_user}","gists_url":"https://api.github.com/users/vstakhov/gists{/gist_id}","starred_url":"https://api.github.com/users/vstakhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vstakhov/subscriptions","organizations_url":"https://api.github.com/users/vstakhov/orgs","repos_url":"https://api.github.com/users/vstakhov/repos","events_url":"https://api.github.com/users/vstakhov/events{/privacy}","received_events_url":"https://api.github.com/users/vstakhov/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T14:52:02Z","updated_at":"2016-09-02T14:52:02Z","body":"It is `g_assert` in fact."}}
{"actor":{"display_login":"vstakhov"}}