[Exim] Segfault with ignore_target_hosts

Top Page
Delete this message
Reply to this message
Author: Brian Candler
Date:  
To: exim-users
Subject: [Exim] Segfault with ignore_target_hosts
I am getting a segfault with ignore_target_hosts, exim-3.22 under both
FreeBSD-4.1.1 and FreeBSD-4.2.

"test@???" crashes exim, but "test@???" is OK (both point MX
records to A records which point at 127.0.0.1)

Can anybody else duplicate this? Or is it a problem with FreeBSD's resolver
library?

# exim -C configure.test -d9 -bt test@???
Exim version 3.22 debug level 9 uid=0 gid=0
probably Berkeley DB version 1.8x (native mode)
Caller is an admin user
Caller is a trusted user
originator: uid=0 gid=0 login=root name=Charlie Root
sender address = root@???
Address testing: uid=0 gid=0 euid=0 egid=0
>>>>>>>>>>>>>>>>>>>>>>>>

Testing test@???
home.ca in local_domains? no (end of list)
address test@???
local_part=test domain=home.ca
domain is not local
>>>>>>>>>>>>>>>>>>>>>>>>

routing test@???, domain home.ca
lookuphost router called for test@???
dns lookup: route_domain = home.ca
DNS lookup of home.ca (MX) succeeded
host in ? yes (127.0.0.0/8)
ignored host your.email.address.is.erroneous.home.ca [127.0.0.1]
host in ? yes (127.0.0.0/8)
ignored host your.email.address.is.erroneous.home.ca [127.0.0.1]
Segmentation fault
#

Regards,

Brian.

P.S. I just found "sysctl -w kern.sugid_coredump=1"

(gdb) bt
#0 0x8072b16 in host_find_bydns ()
#1 0x809838b in lookuphost_router_entry ()
#2 0x8080c83 in route_address ()
#3 0x808cc6d in verify_address ()
#4 0x8067fbf in main ()
#5 0x8053a89 in _start ()
end
remote_smtp:
  driver = smtp
end
end
lookuphost:
  driver = lookuphost
  transport = remote_smtp
  ignore_target_hosts = 127.0.0.0/8
end
*                      *           F,2h,15m; G,16h,1h,1.5; F,4d,8h
end
end