Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: eos.vss.fsi.com: ford owned process doing -bs Date: Wed, 12 Nov 2003 11:55:51 -0600 (CST) From: Brian Ford X-X-Sender: ford AT eos To: =?ISO-8859-1?Q?Fr=E9d=E9ric_L=2E_W=2E_Meunier?= <1 AT pervalidus DOT net> cc: cygwin AT cygwin DOT com Subject: Re: OpenSSL problem ? (Was Re: Pine 4.58 for Cygwin takes a very long time to close a certain IMAP INBOX) In-Reply-To: Message-ID: References: <20031111152943 DOT GA2396 AT cygbert DOT vinschen DOT de> <20031112093525 DOT GC7542 AT cygbert DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by delorie.com id hACHuEwe032622 Corinna, Did you get a chance to look at the strace output he posted here: http://pervalidus.port5.com/tmp/imap.txt.gz A glance there by trained eyes might save him some time. I don't have the time or the training for mine :). It appears to be stuck in close on the socket after is has shutdown? On Wed, 12 Nov 2003, Frédéric L. W. Meunier wrote: > On Wed, 12 Nov 2003, Corinna Vinschen wrote: > > On Wed, Nov 12, 2003 at 12:20:57AM -0200, Fr?d?ric L. W. Meunier wrote: > > > Now I'm trying with gdb, but don't know if the following is right. > > > > > > $ openssl s_client -connect mail.postaccesslite.com:993 > > > $ gdb > > > (gdb) attach PPID of openssl > > > (gdb) where > > > #0 0x77f75a59 in ntdll!DbgUiConnectToDbg () from /c/WINDOWS/System32/ntdll.dll > > > #1 0x77f5f31f in ntdll!KiUserCallbackDispatcher () > > > from /c/WINDOWS/System32/ntdll.dll > > > #2 0x00000005 in ?? () > > > #3 0x00000004 in ?? () > > > #4 0x00000001 in ?? () > > > #5 0x00e3ffd0 in ?? () > > > #6 0x81f2eda8 in ?? () > > > #7 0xffffffff in ?? () > > > #8 0x77fa88f0 in wcstombs () from /c/WINDOWS/System32/ntdll.dll > > > > > > Does that help ? What are #2 to #7 ? cygwin1.dll ? The OpenSSL > > > DLLs ? > > > > Nobody can say that. You should rebuild openssl for Cygwin and > > use CFLAGS=-g for the make. After unpacking the source package, > > it's as easy as this: > > > > $ cd openssl-0.9.7c-1 > > $ ./config --prefix=/usr shared no-idea no-rc5 no-mdc2 > > $ make depend CFLAGS=--g > > $ make CFLAGS=-g > > If the above gdb commands were right, using > > 2896329 Nov 12 11:56 cygcrypto-0.9.7.dll > 618518 Nov 12 11:56 cygssl-0.9.7.dll > 929614 Nov 12 11:56 openssl.exe > > didn't change anything. > From the strace output, I'd say you're stuck in the cygwin1.dll. Try a debug build of that instead. -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International Phone: 314-551-8460 Fax: 314-551-8444 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/