I found some interesting article at : http://www.ibm.com/developerworks/library/l-graphvis/ and trying to implement the same. I am not able to succeed till yet but working on the same. Regards, Prakash
________________________________ From: Thomas Hruska <[email protected]> To: [email protected] Sent: Saturday, January 17, 2009 11:06:38 PM Subject: Re: [c-prog] Tracing Function Calls in a program Satya Prasad wrote: > Apart from writing debug and statements in constructors is there any way by > which we can trace the function call stack at any depth? > > The issue that we always face is that when program crashes (Web Server > running on Linux) we have no idea where it crashes and we have to do the hard > way of debugging. > > Is there any library / extra code that we can include and that can output the > function flow in a program given a scenario. > > Sorry I tired a lot of programs but without extra debugging (followed by > compilation) we are not sure where the code flows. If it gives us the line > number that would be more perfect. > > Thanks in advance > > Regards, > Prakash If it is crashing right away upon startup, you could try strace/ltrace/ etc. to give you a general idea of where the problem lies. If not and it is "random", then it may be nigh impossible to find the bug. Not sure if you want to run a debug version of a web server in a production environment, but you might have to in order to pinpoint the problem. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleS oft.com/MyTaskFo cus/ [Non-text portions of this message have been removed]
