Strange crash for application linked to cygwin libraries.
Peter Ross
pro@missioncriticalit.com
Wed Oct 15 04:23:00 GMT 2008
On Wed, Oct 15, 2008 at 5:50 AM, Mark Geisert <mark@X> wrote:
> Peter Ross writes:
>> On Wed, Oct 15, 2008 at 12:18 PM, Mark Geisert <XXXXXXXXXXXXXXXX> wrote:
>
> Please don't quote raw email addresses in your emails to the list.
>
Sorry about that, been awhile since I've been on a mailing list.
>> >> I've written an application which does some initialization and then
>> >> does a tcp accept. 5 minutes and 20 seconds give or take after doing
>> >> the tcp.accept the application aborts with exit code 0. If I
>> >> continually send tcp data to this application then the crash doesn't
>> >> occur, it is only after 5 minutes and 20 seconds of waiting for I/O.
>> > [...]
>> >> Here is the complete list of libraries that I use -lodbc32 -lole32
>> >> -lraptor -lxslt -lcurl -lz -lxml2 -ldb -lssl -lcrypto -lexpat
>> >> -lwsock32
>> >
>> > You haven't supplied the canonical problem report info as requested in...
>> >
>> >> Problem reports: <http://cygwin.com/problems.html>
>
> That was a hint :-). Please supply that info, specifically the output of
> cygcheck -s -v -r
> but *as an attachment* to your next email.
>
Find attached.
>> > ...so only WAGs come to mind: Try it without using wsock32. Cygwin has its
>> > own implementation of the TCP/IP networking functions and there might be
>> > unpleasant mixing of semantics when wsock32 is explicitly linked in.
>> >
>> Thanks for the WAG, unfortunately it didn't work.
>
> Are all of those libraries you're linking with compiled for Cygwin? Mixing
> Cygwin libs with non-Cygwin libs won't work.
>
Yes they are all cygwin libraries.
> Another thing that might prove informative is running cygcheck on the
> executable to see its tree of library dependencies. Maybe wsock32 snuck back
> in somehow.
>
$ cygcheck.exe ./wos_server.exe
.\wos_server.exe
C:\cygwin\bin\cygcrypto-0.9.8.dll
C:\cygwin\bin\cygwin1.dll
C:\WINDOWS\system32\ADVAPI32.DLL
C:\WINDOWS\system32\ntdll.dll
C:\WINDOWS\system32\KERNEL32.dll
C:\WINDOWS\system32\RPCRT4.dll
C:\WINDOWS\system32\Secur32.dll
C:\cygwin\bin\cygcurl-4.dll
C:\cygwin\bin\cygssh2-1.dll
C:\cygwin\bin\cygz.dll
C:\cygwin\bin\cygssl-0.9.8.dll
C:\cygwin\bin\cygdb-4.5.dll
C:\cygwin\bin\cygexpat-1.dll
C:\cygwin\bin\cygxml2-2.dll
C:\cygwin\bin\cygiconv-2.dll
C:\cygwin\bin\cygxslt-1.dll
C:\WINDOWS\system32\ODBC32.dll
C:\WINDOWS\system32\msvcrt.dll
C:\WINDOWS\system32\COMCTL32.dll
C:\WINDOWS\system32\GDI32.dll
C:\WINDOWS\system32\USER32.dll
C:\WINDOWS\system32\SHELL32.dll
C:\WINDOWS\system32\SHLWAPI.dll
C:\WINDOWS\system32\comdlg32.dll
C:\WINDOWS\system32\OLE32.dll
So I am using the ODBC and OLE32 for access to CreateGUID, I don't
think these are a problem, but I could be wrong.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20081015/769330ca/attachment.ksh>
-------------- next part --------------
--
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/
More information about the Cygwin
mailing list