This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fetchmail problem with latest cygwin-1.5.6-1


>>>>> "Christopher" == Christopher Faylor <cgf-no-personal-reply-please@cygwin.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.Volker.Zell@bigip-amerimap.oraclecorp.com:1086 not flushed
fetchmail: reading message Dr.Volker.Zell@bigip-amerimap.oraclecorp.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.Volker.Zell@bigip-amerimap.oraclecorp.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]