How to generate a core upon exit?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Brent Nye

    How to generate a core upon exit?

    exit(0) or exit(1) or exit(-1) will not produce a core in HP-UX

    I am trying to exit with a core dump inside of a new_handler function, it does
    not core dump.

    Any suggestions?

    Thanks,

    Brent
  • Rolf Magnus

    #2
    Re: How to generate a core upon exit?

    Brent Nye wrote:
    [color=blue]
    > exit(0) or exit(1) or exit(-1) will not produce a core in HP-UX
    >
    > I am trying to exit with a core dump inside of a new_handler function,
    > it does not core dump.
    >
    > Any suggestions?[/color]

    This question is off-topic here, since standard C++ (which is the only
    topic of this newsgroup) doesn't specify what a "core" is.

    Having that said, you may take look at the abort() function, which at
    least under Linux dumps core by default.

    Comment

    Working...