version 1.18, 2017/02/06 18:55:43 |
version 1.19, 2017/06/26 17:18:57 |
|
|
<li><i>If the kernel panicked we need the traceback.</i> |
<li><i>If the kernel panicked we need the traceback.</i> |
It may be displayed on the screen. |
It may be displayed on the screen. |
If you are at a |
If you are at a |
<tt><a href="http://man.openbsd.org/ddb.4">ddb</a>></tt> |
<tt><a href="https://man.openbsd.org/ddb.4">ddb</a>></tt> |
prompt, type <tt>trace</tt>. |
prompt, type <tt>trace</tt>. |
If you are running SMP, use the <tt>mach ddbcpu N</tt> command for each |
If you are running SMP, use the <tt>mach ddbcpu N</tt> command for each |
of the <tt>N</tt> processors you have and repeat the <tt>trace</tt> |
of the <tt>N</tt> processors you have and repeat the <tt>trace</tt> |
|
|
The following additional things would be helpful |
The following additional things would be helpful |
<ul> |
<ul> |
<li>The output of the |
<li>The output of the |
<tt><a href="http://man.openbsd.org/ddb.4">ddb</a>></tt> command |
<tt><a href="https://man.openbsd.org/ddb.4">ddb</a>></tt> command |
<tt>show uvm</tt> |
<tt>show uvm</tt> |
<li>The output of the |
<li>The output of the |
<tt><a href="http://man.openbsd.org/ddb.4">ddb</a>></tt> |
<tt><a href="https://man.openbsd.org/ddb.4">ddb</a>></tt> |
command <tt>show bcstats</tt> |
command <tt>show bcstats</tt> |
<li>The output of the <tt>mount</tt> command from your running machine, so |
<li>The output of the <tt>mount</tt> command from your running machine, so |
we know what filesystems are mounted and how. |
we know what filesystems are mounted and how. |
|
|
|
|
<p> |
<p> |
The first command to run from the |
The first command to run from the |
<a href="http://man.openbsd.org/ddb">ddb(4)</a> prompt is <tt>trace</tt>: |
<a href="https://man.openbsd.org/ddb">ddb(4)</a> prompt is <tt>trace</tt>: |
|
|
<blockquote><pre> |
<blockquote><pre> |
ddb> <b>trace</b> |
ddb> <b>trace</b> |
|
|
<p> |
<p> |
Find the source file where the crashing function is defined. |
Find the source file where the crashing function is defined. |
In this example, that would be <tt>pf_route()</tt> in <tt>/sys/net/pf.c</tt>. |
In this example, that would be <tt>pf_route()</tt> in <tt>/sys/net/pf.c</tt>. |
Use <a href="http://man.openbsd.org/objdump">objdump(1)</a> to get the |
Use <a href="https://man.openbsd.org/objdump">objdump(1)</a> to get the |
disassembly: |
disassembly: |
|
|
<blockquote><pre> |
<blockquote><pre> |