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: STATUS_ACCESS_VIOLATION in strlen running a vanilla uw-imapd


cw wrote:

> I am trying to compile the latest release of uw-imapd under Cygwin and
> Windows XP but the program crash after the first command.
> 
> This is with the vanilla source from upstream. I know that it is not
> supposed to work very well but yesterday I did the same thing on a
> Windows Seven box and I did not have any problem.
[snip]
> GNU gdb 6.8.0.20080328-cvs (cygwin-special)
> [...]
> This GDB was configured as "i686-pc-cygwin"...
> (gdb) run
> Starting program: /tmp/imap-2007e/imapd/imapd.exe
> [New thread 2592.0x5cc]
> [New thread 2592.0x7c0]
> * PREAUTH [CAPABILITY IMAP4REV1 I18NLEVEL=1 LITERAL+ IDLE UIDPLUS
> NAMESPACE CHILDREN MAILBOX-REFERRALS BINARY UNSELECT ESEARCH WITHIN SCAN
> SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND]
> Pre-authenticated user dente bfmi246pc IMAP4rev1 2007e.404 at Wed, 2 Jun
> 2010 15:33:48 +0200
> [New thread 2592.0x84c]
> aaa hhh
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x611097f3 in strlen () from /usr/bin/cygwin1.dll
> (gdb) bt
> #0  0x611097f3 in strlen () from /usr/bin/cygwin1.dll
> #1  0x7c85ada0 in OutputDebugStringA () from
> /cygdrive/c/WINDOWS/system32/kernel32.dll
> #2  0x40010006 in ?? ()
> #3  0x00000000 in ?? ()
[snip]
> Any pointer would be very much appreciated.

This looks like the well known "strlen(NULL)" problem, it crashes on
Solaris and I guess on Cygwin, does work on Linux.

You'll have to patch UW-IMAP, which already has many uses of strlen()
guarded.
-- 
René Berber


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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