What will the per-process core file be named?

The core dump configuration for your system is:

A user is running a process in the global zone and the process crashes. The process information
is:
User1 2663 2618 0 17:46:42 pts/2 0:00 /usr/bin/bash
The server host name is: zeus
What will the per-process core file be named?

The core dump configuration for your system is:

A user is running a process in the global zone and the process crashes. The process information
is:
User1 2663 2618 0 17:46:42 pts/2 0:00 /usr/bin/bash
The server host name is: zeus
What will the per-process core file be named?

A.
core.bash.2663.global

B.
core.bash.2663.zeus

C.
/var/core/core.bash.2663

D.
/var/core/core.bash.2663.global

Explanation:
Note the first line:
global core file pattern: /globalcore/core.%f.%p
The program name is bash
The runtime process ID is 2663
Note:By default, the global core dump is disabled. You need to use the coreadm command with

the -e global option to enable it. The -g option causes the command to append the program
name(%f) and the runtime process ID (%p) to the core file name.
Reference: Core Dump Management on the Solaris OS



Leave a Reply 4

Your email address will not be published. Required fields are marked *


johny

johny

correct is A, because per-process core file is different than global core file

gray

gray

A
root@zfslab:~# coreadm
global core file pattern: /var/core/core.%f.%p
global core file content: default
init core file pattern: core.%f.%p.%z
init core file content: default
global core dumps: enabled
per-process core dumps: enabled
global setid core dumps: disabled
per-process setid core dumps: disabled
global core dump logging: disabled

root@zfslab:~# coreadm $$
1909: core.%f.%p.%z default

Daniel

Daniel

why A and not B?