stackdump_on_error

Restriction: This tunable is only supported on Linux platforms.
When a program generates a run-time error, this tunable specifies whether a stackdump file is created. A stackdump file contains a list of the threads in the process at the time of the error, and a stack trace for each thread.

Syntax:

>>---set stackdump_on_error=--.-1-.---------><
                              +-0-+	

Parameters:

1 A file is created when a program generates a run-time error. The file contains a stack trace for each thread in the program.

The default filename is <program-basename>.stackdump.<process-id>.log, which is created in the program's working directory. You can override the default filename and location using the stackdump_filename tunable.

0 No file is created when a program generates a run-time error.

Properties:

Default: 0
IDE equivalent: None

Comments:

This tunable affects native applications that are built to an executable or shared object; it will not affect JVM COBOL programs. Programs built to INT/GNT format will generate a stackdump file; however, the stack trace does not provide any information about those files.

This option is processed at the same time as an error message is produced. If core_on_error is also specified, core file processing is performed first, which means that if a core file is to be created, a stackdump file is only produced when core_on_error is set to 3.