Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

comp.sys.hp.hpux FAQ
Section - 6.1.6 How can I get C programs to automatically generate stack dumps?

( Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Houses ]


Top Document: comp.sys.hp.hpux FAQ
Previous Document: 6.1.5 Why is syslog() call not doing what i want it to?
Next Document: 6.1.7 HP C++ email discussion lists
See reader questions & answers on this topic! - Help others by sharing your knowledge

Here is how you get a C program automatically generate a stack dump
when they abend:

U_STACK_TRACE() is an undocumented function that resides in libcl.  Set up
the signal handling like this:

  #include <signal.h>
  extern void U_STACK_TRACE();
  signal(SIGSEGV, U_STACK_TRACE);

User Contributions:

Comment about this article, ask questions, or add new information about this topic:




Top Document: comp.sys.hp.hpux FAQ
Previous Document: 6.1.5 Why is syslog() call not doing what i want it to?
Next Document: 6.1.7 HP C++ email discussion lists

Single Page

[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
hpux.faq@gmail.com





Last Update March 27 2014 @ 02:11 PM