The core dump configuration in your non global zone is
A user is running a process in a non-global zone (testzone) and the process crashes. The process
information is:
user126632618017:46:42pts/20:00/usr/bin/bash
When the user’s process crashes in testzone, a non-global zone, where will the core dump be
saved?
A.
The file will be stored in the non-global zone’s directory: /var/core/pprocess/core.hash.2663.
B.
The file will be saved in the global zone’s directory: /var/core/core.bash.2663.
C.
A core file cannot be generated in a non-global zone because it shares the kernel with the
global zone.
D.
The file will be stored in the global zone’s directory: /var/core/pprocess/core.bash.2663.
E.
The file will be saved in non-global zone�s directory: /var/core/core.bash.2663
Explanation:
The line
init core file pattern: /var/core/core.%f.%p
will be used for the non-global process to determine the destination of the dump file.
Note: When a process is dumping core, up to three core files can be produced: one in the perprocess location, one in the system-wide global location, and, if the process was running in a local
(non-global) zone, one in the global location for the zone in which that process was running.
Reference: man coreadm
Since the per-process core dumps are enabled, if process has crashed following file would be created:
/var/core/pprocess/core.bash.2663 , so the nearest answer should be “A”.
E
Both A and E are correct, there will be two files (maybe even three is the core is also generated in the global zone)
root@te:/var/core# coreadm
global core file pattern: /var/core/core.%f.%p
global core file content: default
init core file pattern: /var/core/pprocess/core.%f.%p
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@te:/var/core# bash
root@te:/var/core# echo $$
3636
root@te:/var/core# kill -6 $$
Abort (core dumped)
root@te:/var/core# find .
.
./core.bash.3636
./pprocess
./pprocess/core.bash.3636
http://docs.oracle.com/cd/E23824_01/html/821-1451/tscore-8.html
I think, the nearest is A