4.6. Gestion des cores

De UnixWiki
Aller à : navigation, rechercher

Paramètres des cores

 # lscore
 compression: off
 path specification: off
 corefile location: not set
 naming specification: off

Commandes chcore pour changer ces paramètres

Modifier le nom des core (par défaut core) ici core.pid.ddhhmmss

 # chcore -n on

Modifier le chemin des core, (par défaut le répertoire courant du process)

 # chcore -p on -l /qa/qa_dump/corefiles/AIX/aix18/

Manipulation des cores

Prendre un core pour l'envoyer à IBM Un file sur le core permet de connaitre le binaire l'ayant généré.

 #snapcore $CORE_NAME $PATH_DU_BINAIRE

Pour trouver le chemin du binaire:

 #strings $CORE_NAME | grep "_=" 

Ou

 #dbx $CORE_NAME
 root:/ >ls -l core
-rw-rw-r-- 1 root system 12687 Aug 19 10:31 core
root:/ >/usr/lib/ras/check_core /core |tail -1 ==> give you the command wich generates the core_dump
lspath
root:/ >type lspath
lspath is /usr/sbin/lspath
root:/ >dbx /usr/sbin/lspath /core
Type 'help' for help.
[using memory image in /core]
reading symbolic information ...warning: no source compiled with -g


Segmentation fault in strlen at 0xd01f0098
0xd01f0098 (strlen 0x98) 852c0004 lwzu r9,0x4(r12)

(dbx) where ==> (to display the stack)
strlen() at 0xd01f0098
_doprnt(??, ??, ??) at 0xd0209570
fprintf(0xf04590e8, 0x20011838, 0x20000338, 0x6f757320, 0x3a0a0925, 0x730a0000, 0x696f6e73, 0x2063692d) at 0xd0207e28
do_attrs() at 0x10003c4c
main(??, ??) at 0x100005b0


(dbx)