stackdump_on_error

Restriction: This only applies to the following platforms: Linux Intel 64-bit, Solaris Intel 64-bit, and Linux/390.
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 only affects native applications that are built to an executable; it will not affect managed COBOL programs, or programs built to INT/GNT format.

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.