Re: stack trace without core



On Jun 23, 2:33 am, RezaRob <Reza...@xxxxxxxxx> wrote:
On Jun 22, 7:04 am, Jasen <j...@xxxxxxxxxxx> wrote:

On 2007-06-22, RezaRob <Reza...@xxxxxxxxx> wrote:

Is there a way to generate a brief view of the stack without dumping
entire core?

attach gdb to the process?

This isn't an option because it's in "production mode" and only in the
event of an exception I need a stack trace.

It is an option because you can attach gdb to yourself when some
exception occurs.

void segv_handler(int no)
{
int pid, status;

VoIPLog("segv_handler.");
char buf[128];

pid = getpid();

sprintf(buf, "/usr/bin/gdbserver :9988 --attach %d", pid);

pid = fork();
if (pid == 0) {
system(buf);
} else
::wait((int *)&status);

return;
}

.



Relevant Pages

  • Re: The IListSource does not contain any data sources.
    ... The IListSource does not contain any data sources. ... Exception Details: System.Web.HttpException: The IListSource does not ... be identified using the exception stack trace below. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Intermittant Server Error reading an MS Access DB
    ... Chuck ... > Dim i As Integer ... >> exception can be identified using the exception stack trace below. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP.NET 2.0 Web Page Problem?
    ... Based on the stack trace you've shown the problem is when the Operations_HBMBlockStatus page's Repeater1 ItemCreated event is being raised. ... You sister site might be hiding the exception by logging it or ignoring them somehow, I'd need to see the code to say for sure. ... I have obtained a scripted database and compiled ASP.NET 2.0 application from a sister site that I'm trying to implement locally. ... An unhandled exception occurred during the execution of the current web request. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: The IListSource does not contain any data sources.
    ... You said that things break after you try to login, ... The IListSource does not contain any data sources. ... Exception Details: System.Web.HttpException: The IListSource does ... be identified using the exception stack trace below. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Could not load file or assembly every few days - asp.net 1.1
    ... Could not load file or assembly 'Foo, Version=1.0.2388.18427, ... An unhandled exception occurred during the execution of the ... Please review the stack trace for more information about ...
    (microsoft.public.dotnet.framework.aspnet)