delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/01/23/08:15:42

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: fetchmail problem with latest cygwin-1.5.6-1
References: <20040122142301 DOT GE29228 AT redhat DOT com>
From: "Dr. Volker Zell" <Dr DOT Volker DOT Zell AT oracle DOT com>
Date: Fri, 23 Jan 2004 14:16:39 +0100
In-Reply-To: <20040122142301.GE29228@redhat.com> (Christopher Faylor's message of "Thu, 22 Jan 2004 09:23:01 -0500")
Message-ID: <87isj2erew.fsf@vzell-de.de.oracle.com>
User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Reasonable Discussion, cygwin32)
MIME-Version: 1.0
X-Brightmail-Tracker: AAAAAQAAAAI=
X-White-List-Member: TRUE

>>>>> "Christopher" == Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com> writes:

    Christopher> Yes.  And, building with --enable-debugging might be useful since there is
    Christopher> a chance that it will detect handle corruption which, I suspect is what is
    Christopher> going wrong.

Ok here some more information. First of all fetchmail seems to work fine
when NOT running in daemon mode (fetchmail --nodetach).

I build a debugable dll from the 20040122 snapshot and also debugable
versions of fetchmail and procmail. I then followed the instuctions in
winsup/cygwin/how-to-debug-cygwin.txt.

Here are the results from the fetchmail.log file and below the three
console windows which appear as soon as fetchmail starts fetching the
first mail.



fetchmail: skipping message Dr DOT Volker DOT Zell AT bigip-amerimap DOT oraclecorp DOT com:1086 not flushed
fetchmail: reading message Dr DOT Volker DOT Zell AT bigip-amerimap DOT oraclecorp DOT com:1087 of 1088 (1286 header octets) fetchmail:  (12104 body octets) *** starting debugger for pid 1024
fetchmail: MDA returned nonzero status 128
fetchmail:  not flushed
fetchmail: reading message Dr DOT Volker DOT Zell AT bigip-amerimap DOT oraclecorp DOT com:1088 of 1088 (1460 header octets) 5311969 [main] fetchmail 1732 fhandler_base::dup: dup(/dev/null) failed, handle 1DC, Win32 error 6
5776268 [main] fetchmail 1732 mark_closed: attempt to close protected handle int proc_subproc(long unsigned int, long unsigned int):337(pid_handle<0x1DC>) winpid 1732
5982191 [main] fetchmail 1732 mark_closed:  by virtual int fhandler_pipe::close():96(read_state<0x1DC>)
*** starting debugger for pid 1648

-----------------------------------------------------------------------------

D:\>rem

D:\>set CYGWIN_TESTING=1

D:\>D:\tmp\cygdeb\gdb.exe -nw "D:/bin/sh.exe" 1024
GNU gdb 2003-09-20-cvs (cygwin-special)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...(no debugging symbols found)...
Attaching to program `/usr/bin/sh.exe', process 1024
[Switching to thread 1024.0x73c]
(gdb) bt
#0  0x77fa144c in ntdll!DbgUiConnectToDbg () from /c/WINNT/system32/NTDLL.DLL
#1  0x7c50dfdb in KERNEL32!DebugActiveProcess () from /c/WINNT/system32/KERNEL32.DLL
#2  0x7c4e987c in SetThreadExecutionState () from /c/WINNT/system32/KERNEL32.DLL

-----------------------------------------------------------------------------
D:\>rem

D:\>set CYGWIN_TESTING=1

D:\>D:\tmp\cygdeb\gdb.exe -nw "D:/bin/sh.exe" 1648
GNU gdb 2003-09-20-cvs (cygwin-special)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...(no debugging symbols found)...
Can't attach to process.
//1648: No such file or directory.
(gdb) bt
No stack.

-----------------------------------------------------------------------------

D:\>rem

D:\>set CYGWIN_TESTING=1

D:\>D:\tmp\cygdeb\gdb.exe -nw "D:/bin/fetchmail.exe" 1732
GNU gdb 2003-09-20-cvs (cygwin-special)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
Can't attach to process.
//1732: No such file or directory.
(gdb) bt
No stack.

-----------------------------------------------------------------------------

I dont know if this is enough information to solve the fetchmail issue.
But if somebody has any ideas how to debug this further please tell me.

Ciao
  Volker


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019