# gdb /usr/sbin/milter-greylist GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/sbin/milter-greylist...done. (gdb) run -D Starting program: /usr/sbin/milter-greylist -D [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". load list item 127.0.0.0/255.0.0.0 load list item 10.0.0.0/255.0.0.0 load list item 192.0.2.0/255.255.255.0 load list type net_list, stage ANY load list name "my network" load list item 70.103.162.0/255.255.255.0 load list item 140.211.166.0/255.255.255.0 load list item 192.25.206.0/255.255.255.0 load list item 194.109.137.218/255.255.255.255 load list type net_list, stage ANY load list name "my friends" load list item 12.5.136.141/255.255.255.255 load list item 12.5.136.142/255.255.255.255 load list item 12.5.136.143/255.255.255.255 load list item 12.5.136.144/255.255.255.255 load list item 12.107.209.244/255.255.255.255 load list item 12.107.209.250/255.255.255.255 load list item 63.82.37.110/255.255.255.255 load list item 63.169.44.143/255.255.255.255 load list item 63.169.44.144/255.255.255.255 load list item 64.7.153.18/255.255.255.255 load list item 64.12.136.0/255.255.255.0 load list item 64.12.137.0/255.255.255.0 load list item 64.12.138.0/255.255.255.0 load list item 64.124.204.39/255.255.255.255 load list item 64.125.132.254/255.255.255.255 load list item 64.233.160.0/255.255.224.0 load list item 66.94.237.16/255.255.255.240 load list item 66.94.237.32/255.255.255.240 load list item 66.94.237.48/255.255.255.252 load list item 66.100.210.82/255.255.255.255 load list item 66.135.192.0/255.255.224.0 load list item 66.162.216.166/255.255.255.255 load list item 66.206.22.82/255.255.255.255 load list item 66.206.22.83/255.255.255.255 load list item 66.206.22.84/255.255.255.255 load list item 66.206.22.85/255.255.255.255 load list item 66.218.66.0/255.255.254.0 load list item 66.218.66.0/255.255.254.0 load list item 66.218.68.0/255.255.254.0 load list item 66.218.68.0/255.255.254.0 load list item 66.27.51.218/255.255.255.255 load list item 66.102.0.0/255.255.240.0 load list item 66.249.80.0/255.255.240.0 load list item 72.14.192.0/255.255.192.0 load list item 74.125.0.0/255.255.0.0 load list item 152.163.225.0/255.255.255.0 load list item 194.245.101.88/255.255.255.255 load list item 195.235.39.19/255.255.255.255 load list item 195.238.2.0/255.255.255.0 load list item 195.238.3.0/255.255.255.0 load list item 195.46.220.208/255.255.255.255 load list item 195.46.220.209/255.255.255.255 load list item 195.46.220.210/255.255.255.255 load list item 195.46.220.211/255.255.255.255 load list item 195.46.220.221/255.255.255.255 load list item 195.46.220.222/255.255.255.255 load list item 195.238.2.0/255.255.255.0 load list item 195.238.3.0/255.255.255.0 load list item 204.107.120.10/255.255.255.255 load list item 205.188.0.0/255.255.0.0 load list item 205.206.231.0/255.255.255.0 load list item 207.115.63.0/255.255.255.0 load list item 207.171.168.0/255.255.255.0 load list item 207.171.180.0/255.255.255.0 load list item 207.171.187.0/255.255.255.0 load list item 207.171.188.0/255.255.255.0 load list item 207.171.190.0/255.255.255.0 load list item 209.132.176.174/255.255.255.255 load list item 209.85.128.0/255.255.128.0 load list item 211.29.132.0/255.255.255.0 load list item 213.136.52.31/255.255.255.255 load list item 216.33.244.0/255.255.255.0 load list item 216.239.32.0/255.255.224.0 load list item 217.158.50.178/255.255.255.255 load list type net_list, stage ANY load list name "broken mta" load list item "user1@example.com" load list item "user2@example.com" load list item "user3@example.com" item "user1@example.com" changing type from email to rcpt item "user2@example.com" changing type from email to rcpt item "user3@example.com" changing type from email to rcpt load list type rcpt_list, stage ANY load list name "grey users" load list item 192.168.100.100/255.255.255.255 load list type net_list, stage ANY load list name "my_bl_1" load list item 192.168.100.100/255.255.255.255 load list type net_list, stage ANY load list name "my_bl_2" load list item 192.168.100.100/255.255.255.255 load list type net_list, stage ANY load list name "my_bl_3" load acl rset $bl_score "0" register acl last CONTINUE load acl rset $bl_listname " " register acl last CONTINUE switching ACL clause "my_bl_1" from type list to net_list load acl list "my_bl_1" load acl incset $bl_score "3" load acl set $bl_listname "%P{bl_listname}my_bl_1 " register acl last CONTINUE switching ACL clause "my_bl_2" from type list to net_list load acl list "my_bl_2" load acl incset $bl_score "5" load acl set $bl_listname "%P{bl_listname}my_bl_2 " register acl last CONTINUE switching ACL clause "my_bl_3" from type list to net_list load acl list "my_bl_3" load acl incset $bl_score "3" load acl set $bl_listname "%P{bl_listname}my_bl_3 " register acl last CONTINUE load acl id "BL_DNSBL" load acl prop_num $bl_score >= 3 load acl msg "Bad reputation - %d [%i] listed on too many DNS blacklists:%P{bl_listname}(hit %P{bl_score})" register acl last BLACKLIST switching ACL clause "my network" from type list to net_list load acl list "my network" register acl last WHITELIST switching ACL clause "my friends" from type list to net_list load acl list "my friends" register acl last WHITELIST switching ACL clause "broken mta" from type list to net_list load acl list "broken mta" register acl last WHITELIST switching ACL clause "grey users" from type list to rcpt_list load acl list "grey users" load acl delay 6120 load acl autowhite 5961600 register acl last GREYLIST register acl last WHITELIST loaded config file "/etc/milter-greylist/greylist.conf" in 0.011352s Access list dump: racl 155 continue rset $bl_score "0" racl 156 continue rset $bl_listname " " [maxpeek -1] racl 157 continue net_list "my_bl_1" incset $bl_score "3" set $bl_listname "%P{bl_listname}my_bl_1 " [maxpeek -1] racl 158 continue net_list "my_bl_2" incset $bl_score "5" set $bl_listname "%P{bl_listname}my_bl_2 " [maxpeek -1] racl 159 continue net_list "my_bl_3" incset $bl_score "3" set $bl_listname "%P{bl_listname}my_bl_3 " [maxpeek -1] racl 160 blacklist "BL_DNSBL" prop_num $bl_score >= 3 [flushaddr] [msg "Bad reputation - %d [%i] listed on too many DNS blacklists:%P{bl_listname}(hit %P{bl_score})"] [maxpeek -1] racl 163 whitelist net_list "my network" [maxpeek -1] racl 164 whitelist net_list "my friends" [maxpeek -1] racl 165 whitelist net_list "broken mta" [maxpeek -1] racl 174 greylist rcpt_list "grey users" [delay 6120] [aw 5961600] [maxpeek -1] racl 175 whitelist [maxpeek -1] default [New Thread 0x7ffff13cb700 (LWP 26323)] [New Thread 0x7ffff0bca700 (LWP 26324)] [New Thread 0x7ffff03c9700 (LWP 26325)] [New Thread 0x7fffefbc8700 (LWP 26326)] [New Thread 0x7fffef3c7700 (LWP 26327)] [New Thread 0x7fffeebc6700 (LWP 26328)] [New Thread 0x7fffee3c5700 (LWP 26333)] [Thread 0x7fffee3c5700 (LWP 26333) exited] [New Thread 0x7fffee3c5700 (LWP 26337)] [Thread 0x7fffee3c5700 (LWP 26337) exited] [New Thread 0x7fffee3c5700 (LWP 26341)] *** Error in `/usr/sbin/milter-greylist': double free or corruption (fasttop): 0x000000000067ef40 *** Program received signal SIGABRT, Aborted. [Switching to Thread 0x7fffee3c5700 (LWP 26341)] 0x00007ffff6b2dc37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 56 ../nptl/sysdeps/unix/sysv/linux/raise.c: Datei oder Verzeichnis nicht gefunden. (gdb) (gdb) (gdb) bt full #0 0x00007ffff6b2dc37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 resultvar = 0 pid = 26319 selftid = 26341 #1 0x00007ffff6b31028 in __GI_abort () at abort.c:89 save_stage = 2 act = {__sigaction_handler = {sa_handler = 0x0, sa_sigaction = 0x0}, sa_mask = {__val = {0 }}, sa_flags = 0, sa_restorer = 0x0} sigs = {__val = {32, 0 }} #2 0x00007ffff6b6a2a4 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x7ffff6c786b0 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175 ap = {{gp_offset = 40, fp_offset = 0, overflow_arg_area = 0x7fffee2f8860, reg_save_area = 0x7fffee2f87f0}} fd = 9 on_2 = list = nlist = cp = written = #3 0x00007ffff6b7655e in malloc_printerr (ptr=, str=0x7ffff6c78878 "double free or corruption (fasttop)", action=1) at malloc.c:4996 buf = "000000000067ef40" cp = #4 _int_free (av=, p=, have_lock=0) at malloc.c:3840 size = fb = nextchunk = nextsize = nextinuse = prevsize = bck = fwd = errstr = locked = #5 0x0000000000418b37 in mg_stat_def (output=0x7fffee3c1e20 ">>/var/log/greylist.log", fstring=fstring@entry=0x7fffee3c2e30 "%T{%Y/%m/%d %T} %d [%i] %f -> %r %S (ACL %A) %Xc %Xe %Xm %Xh\\n") at stat.c:81 No locals. #6 0x00000000004202ae in conf_parse () at conf_yacc.y:813 output = ">>/var/log/greylist.log", '\000' format = "%T{%Y/%m/%d %T} %d [%i] %f -> %r %S (ACL %A) %Xc %Xe %Xm %Xh\\n", '\000' yystate = yyssa = {0, 1, 45, 176, 421, 0 } yyss = 0x7fffee2f8960 yyssp = 0x7fffee2f8968 yyvsa = {{ipaddr = {sin_family = 0, sin_port = 0, sin_addr = {s_addr = 0}, sin_zero = "\000\000\000\000\000\000\000"}, ip6addr = {sin6_family = 0, sin6_port = 0, sin6_flowinfo = 0, ---Type to continue, or q to quit--- sin6_addr = {__in6_u = {__u6_addr8 = '\000' , __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}, cidr = 0, email = '\000' , domainname = '\000' , qstring = '\000' , delay = '\000' , regex = '\000' , op = OP_EQ, prop = '\000' , spf_status = MGSPF_PASS, dkim_status = MGSPF_PASS, spamdsockt = '\000' , ratelimit_type = 0}, {ipaddr = {sin_family = 0, sin_port = 0, sin_addr = {s_addr = 0}, sin_zero = "\000\000\000\000\000\000\000"}, ip6addr = {sin6_family = 0, sin6_port = 0, sin6_flowinfo = 0, sin6_addr = {__in6_u = {__u6_addr8 = '\000' , __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}, cidr = 0, email = '\000' , domainname = '\000' , qstring = '\000' , delay = '\000' , regex = '\000' , op = OP_EQ, prop = '\000' , spf_status = MGSPF_PASS, dkim_status = MGSPF_PASS, spamdsockt = '\000' , ratelimit_type = 0}, {ipaddr = {sin_family = 29474, sin_port = 28013, sin_addr = {s_addr = 2257011}, sin_zero = "\000\000\000\000\000\000\000"}, ip6addr = {sin6_family = 29474, sin6_port = 28013, sin6_flowinfo = 2257011, sin6_addr = {__in6_u = {__u6_addr8 = '\000' , __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}, cidr = 1835889442, email = "\"smmsp\"", '\000' , domainname = "\"smmsp\"", '\000' , qstring = "\"smmsp\"", '\000' , delay = "\"smmsp\"", '\000' , regex = "\"smmsp\"", '\000' , op = 1835889442, prop = "\"smmsp\"", '\000' , spf_status = 1835889442, dkim_status = 1835889442, spamdsockt = "\"smmsp\"", '\000' , ratelimit_type = 1835889442}, { ipaddr = {sin_family = 15906, sin_port = 12094, sin_addr = {s_addr = 796025206}, sin_zero = "log/grey"}, ip6addr = {sin6_family = 15906, sin6_port = 12094, sin6_flowinfo = 796025206, sin6_addr = {__in6_u = { __u6_addr8 = "log/greylist.log", __u6_addr16 = {28524, 12135, 29287, 31077, 26988, 29811, 27694, 26479}, __u6_addr32 = {795307884, 2036691559, 1953720684, 1735355438}}}, sin6_scope_id = 34}, cidr = 792608290, email = "\">>/var/log/greylist.log\"", '\000' , domainname = "\">>/var/log/greylist.log\"", '\000' , qstring = "\">>/var/log/greylist.log\"", '\000' , delay = "\">>/var/log/greylist.", regex = "\">>/var/log/greylist.log\"", '\000' , op = 792608290, prop = "\">>/var/log/greylist.log\"", '\000' , spf_status = 792608290, dkim_status = 792608290, spamdsockt = "\">>/var/log/greylist.log\"", '\000' , ratelimit_type = 792608290}, {ipaddr = {sin_family = 9506, sin_port = 31572, sin_addr = {s_addr = 623860005}, sin_zero = "m/%d %T}"}, ip6addr = {sin6_family = 9506, sin6_port = 31572, sin6_flowinfo = 623860005, sin6_addr = {__in6_u = {__u6_addr8 = "m/%d %T} %d [%i]", __u6_addr16 = {12141, 25637, 9504, 32084, 9504, 8292, 9563, 23913}, __u6_addr32 = {1680158573, 2102666528, 543434016, 1567171931}}}, sin6_scope_id = 543565088}, cidr = 2069112098, email = "\"%T{%Y/%m/%d %T} %d [%i] %f -> %r %S (ACL %A) %Xc %Xe %Xm %Xh\\n\"", '\000' , domainname = "\"%T{%Y/%m/%d %T} %d [%i] %f -> %r %S (ACL %A) %Xc %Xe %Xm %Xh\\n\"", '\000' , qstring = "\"%T{%Y/%m/%d %T} %d [%i] %f -> %r %S (ACL %A) %Xc %Xe %Xm %Xh\\n\"", '\000' , delay = "\"%T{%Y/%m/%d %T} %d [", regex = "\"%T{%Y/%m/%d %T} %d [%i] %f -> %r %S (ACL %A) %Xc %Xe %Xm %Xh\\n\"", '\000' , op = 2069112098, prop = "\"%T{%Y/%m/%d %T} %d [%i] %f -> %r %S (ACL %A) %Xc %Xe %Xm %Xh\\n\"", '\000' , spf_status = 2069112098, dkim_status = 2069112098, spamdsockt = "\"%T{%Y/%m/%d %T} %d [%i] %f -> %r %S (ACL %A) %Xc %Xe %Xm %Xh\\n\"", '\000' , ---Type to continue, or q to quit--- ratelimit_type = 2069112098}, {ipaddr = {sin_family = 0, sin_port = 0, sin_addr = {s_addr = 0}, sin_zero = "\000\000\000\000\000\000\000"}, ip6addr = {sin6_family = 0, sin6_port = 0, sin6_flowinfo = 0, sin6_addr = {__in6_u = {__u6_addr8 = '\000' , __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}, cidr = 0, email = '\000' , domainname = '\000' , qstring = '\000' , delay = '\000' , regex = '\000' , op = OP_EQ, prop = '\000' , spf_status = MGSPF_PASS, dkim_status = MGSPF_PASS, spamdsockt = '\000' , ratelimit_type = 0} } yyvs = 0x7fffee2f8af0 yyvsp = yystacksize = 200 yyn = 160 yyresult = yytoken = yyval = {ipaddr = {sin_family = 29474, sin_port = 28013, sin_addr = {s_addr = 2257011}, sin_zero = "\000\000\000\000\000\000\000"}, ip6addr = {sin6_family = 29474, sin6_port = 28013, sin6_flowinfo = 2257011, sin6_addr = {__in6_u = {__u6_addr8 = '\000' , __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}, cidr = 1835889442, email = "\"smmsp\"", '\000' , domainname = "\"smmsp\"", '\000' , qstring = "\"smmsp\"", '\000' , delay = "\"smmsp\"", '\000' , regex = "\"smmsp\"", '\000' , op = 1835889442, prop = "\"smmsp\"", '\000' , spf_status = 1835889442, dkim_status = 1835889442, spamdsockt = "\"smmsp\"", '\000' , ratelimit_type = 1835889442} yylen = 3 #7 0x000000000041054e in conf_load_internal (timestamp=) at conf.c:216 stream = 0x7fffd8006690 tv1 = {tv_sec = 1479593555, tv_usec = 598635} tv2 = {tv_sec = 140737335990376, tv_usec = 140737335990368} tv3 = currconf = 0x7fffd80008c0 threadconf = 0x0 newconf = 0x7fffd8031060 __PRETTY_FUNCTION__ = "conf_load_internal" #8 0x00007ffff772e184 in start_thread (arg=0x7fffee3c5700) at pthread_create.c:312 __res = pd = 0x7fffee3c5700 now = unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737190319872, 4784869023058438567, 1, 140736951489120, 140737190320576, 140737190319872, -4784905833644611161, -4784885609637271129}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}} not_first_call = pagesize_m1 = sp = freesize = __PRETTY_FUNCTION__ = "start_thread" ---Type to continue, or q to quit--- #9 0x00007ffff6bf137d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 No locals. (gdb)