Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jan 2002 22:22:50 -0500
From:      "James F. Hranicky" <jfh@cise.ufl.edu>
To:        stable@freebsd.org
Subject:   stunnel fails to run after upgrade to 4.5-PRERELEASE #6
Message-ID:  <20020111032250.DA31A69A6@mail.cise.ufl.edu>

next in thread | raw e-mail | index | archive | help

After upgrading my master FreeBSD box to 4.5 PRE#6, I found that stunnel
(3.14) wouldn't accept connections on the daemon port. I had had no
problems running it before the upgrade. 

The make sure it wasn't simply an old version not running on the upgraded
OS, I compiled stunnel from source and from the ports collection, with
the same results. Here's a ktrace of a connection to stunnel:

 58589 stunnel  RET   poll 1
 58589 stunnel  CALL  gettimeofday(0x882076ac,0)
 58589 stunnel  RET   gettimeofday 0
 58589 stunnel  CALL  accept(0x9,0xbfbff8d8,0xbfbff8d4)
 58589 stunnel  RET   accept 10/0xa
 58589 stunnel  CALL  fcntl(0xa,0x3,0)
 58589 stunnel  RET   fcntl 6
 58589 stunnel  CALL  fcntl(0xa,0x4,0x6)
 58589 stunnel  RET   fcntl 0
 58589 stunnel  CALL  fcntl(0xa,0x2,0x1)
 58589 stunnel  RET   fcntl 0
 58589 stunnel  CALL  mmap(0xbfade000,0x10000,0x3,0x400,0xffffffff,0,0,0)
 58589 stunnel  RET   mmap -1 errno 12 Cannot allocate memory
 58589 stunnel  CALL  fstat(0xa,0xbfbff798)
 58589 stunnel  RET   fstat 0
 58589 stunnel  CALL  close(0xa)
 58589 stunnel  RET   close 0
 58589 stunnel  CALL  gettimeofday(0xbfbfeab0,0)
 58589 stunnel  RET   gettimeofday 0
 58589 stunnel  CALL  getpid
 58589 stunnel  RET   getpid 58589/0xe4dd
 58589 stunnel  CALL  sendto(0x8,0xbfbfef38,0x4d,0,0,0)
 58589 stunnel  GIO   fd 8 wrote 77 bytes
       "<27>Jan 10 22:16:51 stunnel[58589]: Connection rejected: create_client failed"
 58589 stunnel  RET   sendto 77/0x4d
 58589 stunnel  CALL  fcntl(0xa,0x3,0)
 58589 stunnel  RET   fcntl -1 errno 9 Bad file descriptor
 58589 stunnel  CALL  accept(0x9,0xbfbff8d8,0xbfbff8d4)
 58589 stunnel  RET   accept -1 errno 35 Resource temporarily unavailable
 58589 stunnel  CALL  poll(0x8077000,0x1,0)
 58589 stunnel  RET   poll 0
 58589 stunnel  CALL  poll(0x8077000,0x2,0xffffffff)

Apparently, mmap is failing for some reason.

Here's the command line for stunnel:

   ./work/stunnel-3.22/stunnel -P none -d palm.cise.ufl.edu:993 -r 
   palm.cise.ufl.edu:143 -s nofiles -g nofiles -p 
   /usr/local/lib/ssl/certs/imap.cise.ufl.edu.pem

Any ideas?

Jim



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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