Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Stack Trace
@ 2001-02-16 23:25 Big H
  2001-02-17 19:58 ` Bevin R Brett
  0 siblings, 1 reply; 2+ messages in thread
From: Big H @ 2001-02-16 23:25 UTC (permalink / raw)


Hi,

I have an application that is fairly large (memory wise) and takes
upto 10 minutes to generate the core file. However, if this service
fails, I need to failover to a different machine. This can only be
detected when the process finally dies (after writing of the core).

Is there a mechanism to generate just the stack trace from a C++
program, this could then be called by the exception handler.


Big H.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Stack Trace
  2001-02-16 23:25 Stack Trace Big H
@ 2001-02-17 19:58 ` Bevin R Brett
  0 siblings, 0 replies; 2+ messages in thread
From: Bevin R Brett @ 2001-02-17 19:58 UTC (permalink / raw)


Yes, there is two simple ways to do this.

The easiest way gives just a function-level stack trace, and the code
you need to add is documented here

ftp://ftp.compaq.com/pub/products/software/developer/ladebug_debugger_manual.html#at.start.stack

in section 14.2 Modifying Your Program to Print a Stack Trace

Chapter 15, of the same manual, describes how you can actually start the
ladebug debugger from your code, in which case you can feed it a 'where'
command and have it do a full symbolic stack trace including lines and
files etc.

/Bevin
Compaq Ladebug team

Big H wrote:

> Hi,
>
> I have an application that is fairly large (memory wise) and takes
> upto 10 minutes to generate the core file. However, if this service
> fails, I need to failover to a different machine. This can only be
> detected when the process finally dies (after writing of the core).
>
> Is there a mechanism to generate just the stack trace from a C++
> program, this could then be called by the exception handler.
>
> Big H.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-02-17 19:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-16 23:25 Stack Trace Big H
2001-02-17 19:58 ` Bevin R Brett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox