🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #3760

Need help with ServerSocket problem

#3760
From: mike
Date: Wed, 22 Jun 2005 13:31
84 lines
3343 bytes
Hello, I hope someone can give me some insight into what is happening in my 
problem explained below. I will try and describe this problem as best I can, 
but if I need to provide additional information please ask me.

I have a central application which has a ServerSocket defined and I open 
this socket in a blocking format. Each time a client connects I create a 
thread for the client. This all works well and I have many applications 
running without the following problem, but I have a case where when the 
thread was being created I received a call stack overflow exception. After 
reviewing the exception logs it appears the following was happening.

-Client connects to ServerSocket
- ServerSocket attempts to create the required thread
- then this happens
|7C90EAF5|ntdll.dll | | |KiUserApcDispatcher | |

|7C910949|ntdll.dll | | |RtlAcquirePebLock | |

|7C910856|ntdll.dll | | |RtlImageNtHeader | |

|7C90EAF5|ntdll.dll | | |KiUserApcDispatcher | |

|7C910949|ntdll.dll | | |RtlAcquirePebLock | |

|7C910856|ntdll.dll | | |RtlImageNtHeader | |

|7C90EAF5|ntdll.dll | | |KiUserApcDispatcher | |

|7C910949|ntdll.dll | | |RtlAcquirePebLock | |

|7C9010ED|ntdll.dll | | |RtlLeaveCriticalSection | |

|7C90EAF5|ntdll.dll | | |KiUserApcDispatcher | |

|7C910949|ntdll.dll | | |RtlAcquirePebLock | |

|71A9169E|wshtcpip.dll| | |WSHGetSocketInformation | |

|7C90D8ED|ntdll.dll | | |NtDeviceIoControlFile | |

|7C90EAF5|ntdll.dll | | |KiUserApcDispatcher | |

|7C910949|ntdll.dll | | |RtlAcquirePebLock | |

|71AA15B9|WS2HELP.dll | | |WahOpenCurrentThread | |

|7C90EAF5|ntdll.dll | | |KiUserApcDispatcher | |

|7C910949|ntdll.dll | | |RtlAcquirePebLock | |

|7C9106E6|ntdll.dll | | |RtlAllocateHeap | |



Once the the following starts it goes on for a long time until finally I get 
a call stack exception.

7C90EAF5|ntdll.dll | | |KiUserApcDispatcher | |

|7C910949|ntdll.dll | | |RtlAcquirePebLock | |

|7C910856|ntdll.dll | | |RtlImageNtHeader | |



So it appears some kind of a loop is occuring in the ntdll.dll but I have no 
idea why this may be happening or how to correct it.

The other thing is can I catch this exception to take some kind of action.

So I hope someone can help me understand this problem and provide me som 
insight on how to deal with it.



Thanks very much for any information, I appreciate it.



Mike



 
Technical Details
Message-ID: <42b959e8$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!nntp.abs.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,f886ead4ead7b4c4,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "mike" <mfbrowne@earthlink.nnet>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Need help with ServerSocket problem
Date: Wed, 22 Jun 2005 09:31:01 -0400
Lines: 86
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 68.204.189.169
Message-ID: <42b959e8$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1119443432 68.204.189.169 (22 Jun 2005 05:30:32 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!nntp.abs.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail