Real vague question on a linux core
Posted on 2004-03-25
I am on RedHat Linux advanced server. My program recieves and responds to multiple clients using sockets. Program has been built for concurrent conection requests.
(This program is a huge 500K lines of code and works on Linux, HP, solaris and windows)
As long as only one client is sending the requets (consider it as oad teting with one user) - program works fine. as soon as the load is increased to two simultaneous clients, program crashes!!!!!!!!!!!!!
(Now you'll say - so??? solve it)..
Ofcourse I am trying to solve it but :
1. Backtrace of the core file is not consistant. Ihave atleast 20 different backtraces.
2. If code is in debug mode, crash does not happen.
2. All the back traces have atlease one function common. Say funca(). As soon as I start putting printfs to get good idea about the crash location, crash does not happen.
So the question is : How do I solve this issue?
I am on linux advanced server 2.1 My code has been compiled using gcc 2.96.
Any kind of help/pointers would be appreciated.