Solaris kernel debugging: Difference between revisions
From Lolly's Wiki
Jump to navigationJump to search
No edit summary |
m (Text replacement - "[[Kategorie:" to "[[Category:") |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Category:Solaris|Kernel Debugging]] | |||
* Direkt in den Debugger booten | * Direkt in den Debugger booten | ||
< | <pre> | ||
ok> boot -kd | ok> boot -kd | ||
... | ... | ||
Line 6: | Line 8: | ||
kmdb: unable to determine terminal type: assuming `vt100' | kmdb: unable to determine terminal type: assuming `vt100' | ||
[0]> | [0]> | ||
</ | </pre> | ||
oder bei x86 Grubeintrag auswählen und in der "kernel"-Zeile -kd hinzufügen... | oder bei x86 Grubeintrag auswählen und in der "kernel"-Zeile -kd hinzufügen... | ||
* Mod-Debug aktivieren | * Mod-Debug aktivieren | ||
< | <pre> | ||
[0]> moddebug/W 0x80000000 | [0]> moddebug/W 0x80000000 | ||
moddebug: 0 = 0x80000000 | moddebug: 0 = 0x80000000 | ||
Line 16: | Line 18: | ||
SunOS Release 5.10 Version Generic_141415-07 64-bit | SunOS Release 5.10 Version Generic_141415-07 64-bit | ||
... | ... | ||
</ | </pre> | ||
* Mod-Kmem aktivieren | * Mod-Kmem aktivieren | ||
< | <pre> | ||
[0]> kmem_flags/W 0x0000000f | [0]> kmem_flags/W 0x0000000f | ||
kmem_flags: 0 = 0xf | kmem_flags: 0 = 0xf | ||
Line 25: | Line 27: | ||
SunOS Release 5.10 Version Generic_141415-07 64-bit | SunOS Release 5.10 Version Generic_141415-07 64-bit | ||
... | ... | ||
</ | </pre> | ||
* Mod-snooping aktivieren | * Mod-snooping aktivieren | ||
< | <pre> | ||
[0]> snooping/W 0x1 | [0]> snooping/W 0x1 | ||
snooping: 0 = 0x1 | snooping: 0 = 0x1 | ||
Line 34: | Line 36: | ||
SunOS Release 5.10 Version Generic_141415-07 64-bit | SunOS Release 5.10 Version Generic_141415-07 64-bit | ||
... | ... | ||
</ | </pre> | ||
* Stack ausgeben lassen | * Stack ausgeben lassen | ||
< | <pre> | ||
[0]> $c | [0]> $c | ||
</ | </pre> | ||
* Letzte Meldungen | * Letzte Meldungen | ||
< | <pre> | ||
[0]> ::msgbuf | [0]> ::msgbuf | ||
</ | </pre> | ||
* Crashdump schreiben lassen bei x86-Systemen | * Crashdump schreiben lassen bei x86-Systemen | ||
< | <pre> | ||
panic... | panic... | ||
[0]> $<systemdump | [0]> $<systemdump | ||
</ | </pre> | ||
* Links | * Links | ||
* [http://developers.sun.com/solaris/articles/manage_core_dump.html Core Dump Management on the Solaris OS] | * [http://developers.sun.com/solaris/articles/manage_core_dump.html Core Dump Management on the Solaris OS] | ||
* [http://www.c0t0d0s0.org/presentations/hhosug/hhosug2.pdf PDF des zweiten HHOSUG Meetings] | * [http://www.c0t0d0s0.org/presentations/hhosug/hhosug2.pdf PDF des zweiten HHOSUG Meetings] | ||
Latest revision as of 03:54, 26 November 2021
- Direkt in den Debugger booten
ok> boot -kd ... Welcome to kmdb kmdb: unable to determine terminal type: assuming `vt100' [0]>
oder bei x86 Grubeintrag auswählen und in der "kernel"-Zeile -kd hinzufügen...
- Mod-Debug aktivieren
[0]> moddebug/W 0x80000000 moddebug: 0 = 0x80000000 [0]> :c SunOS Release 5.10 Version Generic_141415-07 64-bit ...
- Mod-Kmem aktivieren
[0]> kmem_flags/W 0x0000000f kmem_flags: 0 = 0xf [0]> :c SunOS Release 5.10 Version Generic_141415-07 64-bit ...
- Mod-snooping aktivieren
[0]> snooping/W 0x1 snooping: 0 = 0x1 [0]> :c SunOS Release 5.10 Version Generic_141415-07 64-bit ...
- Stack ausgeben lassen
[0]> $c
- Letzte Meldungen
[0]> ::msgbuf
- Crashdump schreiben lassen bei x86-Systemen
panic... [0]> $<systemdump