https://bugs.exim.org/show_bug.cgi?id=2443
Bug ID: 2443
Summary: exim 4.92.2 segfault with check_srv
Product: Exim
Version: 4.92
Hardware: x86
OS: Linux
Status: NEW
Severity: bug
Priority: medium
Component: Routing
Assignee: unallocated@???
Reporter: bertrand@???
CC: exim-dev@???
Hi,
It seems exim segfaults when a router is configured with check_srv and a
destination domain actually has SRV record:
..
begin routers
external:
driver = dnslookup
domains = !+local_domains
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
check_srv = smtp
transport = remote_smtp
cannot_route_message = No DNS records for $domain
no_more
..
## Domains with SRV record
$ host _smtp._tcp.octaforge.org
_smtp._tcp.octaforge.org is an alias for octaforge.org.
octaforge.org has address 37.205.10.126
octaforge.org has IPv6 address 2a01:430:17:1::ffff:488
octaforge.org mail is handled by 10 in1-smtp.messagingengine.com.
octaforge.org mail is handled by 20 in2-smtp.messagingengine.com.
$ exim -bt daniel@???
Segmentation fault
$ strace -fF -s 1024 exim -bt daniel@???
..
sendto(3, "6\244\1\0\0\1\0\0\0\0\0\0\5_smtp\4_tcp\toctaforge\3org\0\0!\0\1",
42, MSG_NOSIGNAL, NULL, 0) = 42
poll([{fd=3, events=POLLIN}], 1, 5000) = 1 ([{fd=3, revents=POLLIN}])
recvfrom(3,
"6\244\201\200\0\1\0\1\0\1\0\0\5_smtp\4_tcp\toctaforge\3org\0\0!\0\1\300\f\0\5\0\1\0\0\2*\0\2\300\27\300\27\0\6\0\1\0\0\2*\0=\4dns1\21registrar-servers\3com\0\nhostmaster\300Ix9\302C\0\0\250\300\0\0\16\20\0\t:\200\0\0\16\21",
65535, 0, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("10.18.1.254")}, [28->16]) = 129
close(3) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x55eeced5f000} ---
+++ killed by SIGSEGV +++
Segmentation fault
# Domain with no SRV
$ host _smtp._tcp.pants-off.xyz
Host _smtp._tcp.pants-off.xyz not found: 3(NXDOMAIN)
$ exim -bt daniel@???
daniel@???
router = external, transport = remote_smtp
host smtp.pants-off.xyz [163.172.168.49] MX=5
--
You are receiving this mail because:
You are on the CC list for the bug.