Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 May 2012 16:49:32 +0100
From:      Alan Hicks <alan@p-o.co.uk>
To:        freebsd-ports@freebsd.org
Subject:   exim-1.77 barfs on 9.0 when using base openssl
Message-ID:  <4FA54C0C.8000901@p-o.co.uk>

next in thread | raw e-mail | index | archive | help
I'm having an issue with exim-1.77 on 9.0-RELEASE where on connecting 
via ssl the thread barfs with 'kernel: pid 1702 (exim-4.77-1), uid 26: 
exited on signal 11', alas there are no core dumps and I've been unable 
to debug threads.

There doesn't appear to be an issue with 8.1, the only other version I 
have access to.  This only came to light after I rebuilt all ports after 
upgrading to 9.0.  I've tried another box by deleting all ports and 
installing just exim with the default options, this gives the same 
error, also tried after the recent ssl patches with no difference.

Openssl is from base, certificates are self signed and working ok in 
other apps such as openldap and apache.

It appears to be barfing after line 387 in 
/usr/ports/mail/exim/work/exim-4.77/src/tls_openssl.c

Alas my c foo is somewhat lacking, so any help appreciated.

Thanks,
Alan

Both sides of the conversation using swaks and exim follow.

Using swaks to debug the session gives
Script started on Fri May  4 17:01:25 2012
swaks --to alan@p-o.co.uk --from alan@p-o.co.uk --server localhost 
--protocol smtps
=== Trying localhost:465...
=== Connected to localhost.
*** TLS startup failed (error:00000000:lib(0):func(0):reason(0))

Script done on Fri May  4 17:01:26 2012
Script started on Fri May  4 17:01:55 2012
swaks --to alan@p-o.co.uk --from alan@p-o.co.uk --server localhost 
--protocol esmtps
=== Trying localhost:25...
=== Connected to localhost.
<-  220 p-o.co.uk ESMTP Exim 4.77 Fri, 04 May 2012 17:01:56 +0100
  -> EHLO tippett.p-o.co.uk
<-  250-p-o.co.uk Hello localhost [127.0.0.1]
<-  250-SIZE 15728640
<-  250-PIPELINING
<-  250-AUTH CRAM-MD5 LOGIN
<-  250-STARTTLS
<-  250 HELP
  -> STARTTLS
*** Remote host closed connection unexpectedly.

Script done on Fri May  4 17:01:56 2012

Script started on Fri May  4 17:02:26 2012
swaks --to alan@p-o.co.uk --from alan@p-o.co.uk --server localhost 
--protocol esmtps
=== Trying localhost:25...
=== Connected to localhost.
<-  220 p-o.co.uk ESMTP Exim 4.77 Fri, 04 May 2012 17:02:27 +0100
  -> EHLO tippett.p-o.co.uk
<-  250-p-o.co.uk Hello localhost [127.0.0.1]
<-  250-SIZE 15728640
<-  250-PIPELINING
<-  250-AUTH CRAM-MD5 LOGIN
<-  250-STARTTLS
<-  250 HELP
  -> STARTTLS
*** Remote host closed connection unexpectedly.

Script done on Fri May  4 17:02:27 2012
Script started on Fri May  4 17:02:44 2012
swaks --to alan@p-o.co.uk --from alan@p-o.co.uk --server localhost 
--protocol smtps
=== Trying localhost:465...
=== Connected to localhost.
*** TLS startup failed (error:00000000:lib(0):func(0):reason(0))

Script done on Fri May  4 17:02:45 2012

The exim side gives the following

Script started on Fri May  4 17:02:13 2012
exim -bdf -d+tls
Exim version 4.77 (FreeBSD 9.0) uid=0 gid=0 pid=1699 D=fbb95cfd
Berkeley DB: Berkeley DB 4.8.30: (April  9, 2010)
Support for: crypteq iconv() IPv6 use_setclassresources PAM Perl 
Expand_dlfunc OpenSSL Content_Scanning DKIM Old_Demime Experimental_SPF
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm 
dbmnz dnsdb dsearch mysql nis nis0 passwd
Authenticators: cram_md5 plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 8
Compiler: GCC [4.2.1 20070831 patched [FreeBSD]]
Library version: OpenSSL: Compile: OpenSSL 0.9.8q 2 Dec 2010
                           Runtime: OpenSSL 0.9.8q 2 Dec 2010
Library version: PCRE: Compile: 8.30
                        Runtime: 8.30 2012-02-04
Total 14 lookups
Library version: MySQL: Compile: 5.1.62 [FreeBSD port: mysql-client-5.1.62]
                         Runtime: 5.1.62
WHITELIST_D_MACROS unset
TRUSTED_CONFIG_LIST unset
changed uid/gid: forcing real = effective
   uid=0 gid=0 pid=1699
   auxiliary group list: 0
seeking password data for user "root": cache not available
getpwnam() succeeded uid=0 gid=0
configuration file is /usr/local/etc/exim/configure
log selectors = 00000ffc 00212001
cwd=/root 3 args: exim -bdf -d+tls
trusted user
admin user
seeking password data for user "nobody": cache not available
getpwnam() succeeded uid=65534 gid=65534
seeking password data for user "mailnull": cache not available
getpwnam() succeeded uid=26 gid=26
seeking password data for user "mailnull": using cached result
getpwnam() succeeded uid=26 gid=26
originator: uid=0 gid=0 login=root name=Charlie Root
  1699 listening on 127.0.0.1 port 25
  1699 listening on 127.0.0.1 port 465
  1699 listening on 127.0.0.1 port 587
  1699 listening on ::1 port 25
  1699 listening on ::1 port 465
  1699 listening on ::1 port 587
  1699 listening on 192.168.202.6 port 25
  1699 listening on 192.168.202.6 port 465
  1699 listening on 192.168.202.6 port 587
  1699 pid written to /var/run/exim.pid
  1699 changed uid/gid: running as a daemon
  1699   uid=26 gid=6 pid=1699
  1699   auxiliary group list: 6
  1699 LOG: MAIN
  1699   exim 4.77 daemon started: pid=1699, no queue runs, listening 
for SMTP on [127.0.0.1]:25 [127.0.0.1]:587 [::1]:25 [::1]:587 
[192.168.202.6]:25 [192.168.202.6]:587 and for SMTPS on [127.0.0.1]:465 
[::1]:465 [192.168.202.6]:465
  1699 set_process_info:  1699 daemon: no queue runs, listening for SMTP 
on [127.0.0.1]:25 [127.0.0.1]:587 [::1]:25 [::1]:587 [192.168.202.6]:25 
[192.168.202.6]:587 and for SMTPS on [127.0.0.1]:465 [::1]:465 
[192.168.202.6]:465
  1699 daemon running with uid=26 gid=6 euid=26 egid=6
  1699 Listening...
  1699 Connection request from 127.0.0.1 port 52754
  1699 search_tidyup called
  1699 1 SMTP accept process running
  1699 Listening...
  1702 host in rfc1413_hosts? yes (matched "*")
  1702 doing ident callback
  1702 ident connection to 127.0.0.1 failed: Connection refused
  1702 sender_fullhost = [127.0.0.1]
  1702 sender_rcvhost = [127.0.0.1]
  1702 Process 1702 is handling incoming connection from [127.0.0.1]
  1702 host in host_lookup? yes (matched "*")
  1702 looking up host name for 127.0.0.1
  1702 DNS lookup of 1.0.0.127.in-addr.arpa (PTR) succeeded
  1702 IP address lookup yielded localhost
  1702 gethostbyname2 looked up these IP addresses:
  1702   name=localhost address=::1
  1702   name=localhost address=127.0.0.1
  1702 checking addresses for localhost
  1702   ::1
  1702   127.0.0.1 OK
  1702 sender_fullhost = localhost [127.0.0.1]
  1702 sender_rcvhost = localhost ([127.0.0.1])
  1702 set_process_info:  1702 handling incoming connection from 
localhost [127.0.0.1]
  1702 host in host_reject_connection? no (option unset)
  1702 host in sender_unqualified_hosts? no (option unset)
  1702 host in recipient_unqualified_hosts? no (option unset)
  1702 host in helo_verify_hosts? no (option unset)
  1702 host in helo_try_verify_hosts? no (option unset)
  1702 host in helo_accept_junk_hosts? no (option unset)
  1702 SMTP>> 220 p-o.co.uk ESMTP Exim 4.77 Fri, 04 May 2012 17:02:27 +0100
  1702 Process 1702 is ready for new message
  1702 smtp_setup_msg entered
  1702 SMTP<< EHLO tippett.p-o.co.uk
  1702 sender_fullhost = localhost (tippett.p-o.co.uk) [127.0.0.1]
  1702 sender_rcvhost = localhost ([127.0.0.1] helo=tippett.p-o.co.uk)
  1702 set_process_info:  1702 handling incoming connection from 
localhost (tippett.p-o.co.uk) [127.0.0.1]
  1702 host in pipelining_advertise_hosts? yes (matched "*")
  1702 host in auth_advertise_hosts? yes (matched "*")
  1702 host in tls_advertise_hosts? yes (matched "*")
  1702 SMTP>> 250-p-o.co.uk Hello localhost [127.0.0.1]
  1702 250-SIZE 15728640
  1702 250-PIPELINING
  1702 250-AUTH CRAM-MD5 LOGIN
  1702 250-STARTTLS
  1702 250 HELP
  1702 SMTP<< STARTTLS
  1702 setting SSL CTX options: 0x800
  1702 tls_certificate file /usr/local/var/openssl/certs/star.p-o.co.uk.crt
  1699 child 1702 ended: status=0xb
  1699 0 SMTP accept processes now running
  1699 Listening...
  1699 Connection request from 127.0.0.1 port 10107
  1699 search_tidyup called
  1699 1 SMTP accept process running
  1699 Listening...
  1713 host in rfc1413_hosts? yes (matched "*")
  1713 doing ident callback
  1713 ident connection to 127.0.0.1 failed: Connection refused
  1713 sender_fullhost = [127.0.0.1]
  1713 sender_rcvhost = [127.0.0.1]
  1713 Process 1713 is handling incoming connection from [127.0.0.1]
  1713 host in host_lookup? yes (matched "*")
  1713 looking up host name for 127.0.0.1
  1713 DNS lookup of 1.0.0.127.in-addr.arpa (PTR) succeeded
  1713 IP address lookup yielded localhost
  1713 gethostbyname2 looked up these IP addresses:
  1713   name=localhost address=::1
  1713   name=localhost address=127.0.0.1
  1713 checking addresses for localhost
  1713   ::1
  1713   127.0.0.1 OK
  1713 sender_fullhost = localhost [127.0.0.1]
  1713 sender_rcvhost = localhost ([127.0.0.1])
  1713 set_process_info:  1713 handling incoming connection from 
localhost [127.0.0.1]
  1713 setting SSL CTX options: 0x800
  1713 tls_certificate file /usr/local/var/openssl/certs/star.p-o.co.uk.crt
  1699 child 1713 ended: status=0xb
  1699 0 SMTP accept processes now running
  1699 Listening...
^C
Script done on Fri May  4 17:02:50 2012



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FA54C0C.8000901>