tuto:linux:core_dump
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
tuto:linux:core_dump [2010/06/24 20:01] – créée root | tuto:linux:core_dump [2010/06/24 20:33] (Version actuelle) – root | ||
---|---|---|---|
Ligne 5: | Ligne 5: | ||
Et pour rendre les changement effectifs : | Et pour rendre les changement effectifs : | ||
- | sysctl kernel/ | + | |
+ | |||
+ | * %% Le caractere % | ||
+ | * %p PID du processus | ||
+ | * %u UID reel du processus | ||
+ | * %g GID reel du processus | ||
+ | * %s Numero du signal ayant provoque le dump | ||
+ | * %t Heure du dump (secondes depuis le 1er janvier 1970, 00H00) | ||
+ | * %h Nom d'hote (pareil que ' | ||
+ | * %e Nom du fichier executable | ||
Si vous n'avez pas sysctl : | Si vous n'avez pas sysctl : | ||
Ligne 11: | Ligne 20: | ||
On se reconnecte et on teste : | On se reconnecte et on teste : | ||
- | | + | < |
- | gdb ./a.out a.out.core | + | zsh: abort (core dumped) |
- | .... | + | snow-sip > gdb vxmld / |
+ | |||
+ | warning: | ||
+ | warning: difference appears to be caused by prelink, adjusting expectations | ||
+ | warning: .dynamic section for "/ | ||
+ | warning: difference appears to be caused by prelink, adjusting expectations | ||
+ | warning: .dynamic section for "/ | ||
+ | warning: difference appears to be caused by prelink, adjusting expectations | ||
+ | warning: .dynamic section for "/ | ||
+ | warning: difference appears to be caused by prelink, adjusting expectations | ||
+ | warning: .dynamic section for "/ | ||
+ | warning: difference appears to be caused by prelink, adjusting expectations | ||
+ | warning: .dynamic section for "/ | ||
+ | warning: difference appears to be caused by prelink, adjusting expectations | ||
+ | warning: .dynamic section for "/ | ||
+ | warning: difference appears to be caused by prelink, adjusting expectations | ||
+ | 379 ScSipTransport.c: | ||
+ | |||
+ | | ||
+ | | ||
+ | GDB is free software, covered by the GNU General Public License, and you are | ||
+ | welcome to change it and/or distribute copies of it under certain conditions. | ||
+ | Type "show copying" | ||
+ | There is absolutely no warranty for GDB. Type "show warranty" | ||
+ | This GDB was configured as " | ||
+ | Core was generated by `sipd -c 500 -l 500' | ||
+ | Program terminated with signal 11, Segmentation fault. | ||
+ | Reading symbols from / | ||
+ | Loaded symbols for / | ||
+ | Reading symbols from / | ||
+ | Loaded symbols for / | ||
+ | Reading symbols from / | ||
+ | Loaded symbols for / | ||
+ | Reading symbols from / | ||
+ | Loaded symbols for / | ||
+ | Reading symbols from / | ||
+ | Loaded symbols for / | ||
+ | Reading symbols from / | ||
+ | Loaded symbols for / | ||
+ | Reading symbols from / | ||
+ | Loaded symbols for / | ||
+ | Reading symbols from / | ||
+ | Loaded symbols for / | ||
+ | #0 0x0808f7f5 in ScSipXSResend (pstTimer=0x854f068, | ||
+ | bRetriesExhausted=1 ' | ||
+ | in ScSipTransport.c | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | (gdb) where | ||
+ | |||
+ | #0 0x0808f7f5 in ScSipXSResend (pstTimer=0x854f068, | ||
+ | bRetriesExhausted=1 ' | ||
+ | #1 0x0808e984 in TimerThread () at ScTimer.c: | ||
+ | #2 0x0053e371 in start_thread () from / | ||
+ | #3 0x004879be in query_module () from / | ||
+ | </ | ||
+ | |||
+ | Autres exemples : | ||
+ | gdb | ||
+ | (gdb) core / | ||
+ | (gdb) bt (afficher les backtraces) | ||
+ | (gdb) up (monter dans les bt) | ||
+ | (gdb) down (descendre dans les bt) | ||
+ | |||
+ | # gdb mon_fichier_core | ||
+ | (gdb) thread apply all bt | ||
+ | |||
+ | Pour utiliser gdb sur un core dump le binaire doit être compilé avec l' | ||
+ | gcc -g -o myfile myfile.c | ||
+ | |||
+ | gcore permet de faire un core dump d'un process en cours d' | ||
+ | |||
+ | man core | ||
+ | man gcore | ||
tuto/linux/core_dump.1277409682.txt.gz · Dernière modification : 2010/06/24 20:01 de root