Revision 100532 of How to get a stacktrace for a bug report

  • Revision slug: How_to_get_a_stacktrace_for_a_bug_report
  • Revision title: How to get a stacktrace for a bug report
  • Revision id: 100532
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment 6 words added, 6 words removed
Tags: 

Revision Content

If you file a bug report in Bugzilla about a crash of Firefox 3 or Seamonkey 2 you should include a stacktrace (call stack) in your report. This Article describes how to use the Mozilla Crash Reporter to get a crash ID and alternative ways to create a stack trace.

Requirements

You need a binary build from Mozilla.org. The crash reporter does not work if you use a build from a Linux distribution or if you compiled Firefox from the source code. The reason for this is that the crash reporter only collects one half of the needed information, the other part (the debug symbols) is stored on the Crash Report Server. The server puts the submitted crash Report and the symbols together to form a stack trace.

Note: You should run Firefox in the Firefox safe mode before generating a stack trace to be sure that this crash is not caused by an add-on.

How To get a crash ID with the Mozilla Crash Reporter

The Mozilla crash reporter window should automatically come up after Mozilla crashes.
Be sure that you checked the "Tell Mozilla about the crash" checkbox and click the Restart button.

reporter.jpg

The crash reporter should now submit the crash report and Firefox should open again. Type "about:crashes" in the Firefox URL bar and press enter. Firefox should open a list of all submitted crash reports. Copy the IDs of the appropriate crashes to your Bugzilla bug report. Be sure that you don't copy an ID of an unrelated crash report.

crashlist.jpg

What to do if the crash Reporter doesn't come up after a crash (Windows only)

The Flash plugin version 9 is known to break the crash reporter on Windows. You can find out what version of Flash you have installed by typing "about:plugins" in Firefox URL Bar. You can either disable the Flash plugin in Firefox by using the Add-ons manager, accessible in the Tools menu.

addons.jpg

Alternatively, you can install Flash 10 Beta from Adobe. Be warned, it's a beta with known problems on some sites.  However, it is compatible with the crash reporter.

Alternative ways to get a stacktrace

If the Mozilla crash reporter doesn't come up after a crash, or if you use a Linux build, use these instructions:

Windows

See the article Create a stacktrace with Windbg for information on how to do this.

You can also use WinDbg if you get a hang or freeze instead of a crash. In that case use the command:

 !analyze -v -hang
Linux

Revision Source

<p>If you file a bug report in Bugzilla about a crash of Firefox 3 or Seamonkey 2 you should include a stacktrace (call stack) in your report. This Article describes how to use the Mozilla Crash Reporter to get a crash ID and alternative ways to create a stack trace.</p>
<h2>Requirements</h2>
<p>You need a binary build from Mozilla.org. The crash reporter does not work if you use a build from a Linux distribution or if you compiled Firefox from the source code. The reason for this is that the crash reporter only collects one half of the needed information, the other part (the debug symbols) is stored on the Crash Report Server. The server puts the submitted crash Report and the symbols together to form a stack trace.</p>
<div class="note"><strong>Note: </strong>You should run Firefox in the <a class="external" href="http://support.mozilla.com/en-US/kb/Safe+Mode" title="http://support.mozilla.com/en-US/kb/Safe+Mode">Firefox safe mode</a> before generating a stack trace to be sure that this crash is not caused by an add-on.</div>
<h3>How To get a crash ID with the Mozilla Crash Reporter</h3>
<p>The Mozilla crash reporter window should automatically come up after Mozilla crashes. <br>
Be sure that you checked the "Tell Mozilla about the crash" checkbox and click the Restart button.</p>
<p style="text-align: center;"><img alt="reporter.jpg" class="internal default" src="/@api/deki/files/2854/=reporter.jpg?size=webview" style="width: 300px; height: 307px;"></p>
<p>The crash reporter should now submit the crash report and Firefox should open again. Type "about:crashes" in the Firefox URL bar and press enter. Firefox should open a list of all submitted crash reports. Copy the IDs of the appropriate crashes to your Bugzilla bug report. Be sure that you don't copy an ID of an unrelated crash report.</p>
<p style="text-align: center;"><img alt="crashlist.jpg" class="internal default" src="/@api/deki/files/2855/=crashlist.jpg?size=webview" style="width: 450px; height: 403px;"></p>
<h4>What to do if the crash Reporter doesn't come up after a crash (Windows only)</h4>
<p>The Flash plugin version 9 is known to break the crash reporter on Windows. You can find out what version of Flash you have installed by typing "about:plugins" in Firefox URL Bar. You can either disable the Flash plugin in Firefox by using the Add-ons manager, accessible in the Tools menu.</p>
<p style="text-align: center;"><img alt="addons.jpg" class="internal default" src="/@api/deki/files/2856/=addons.jpg?size=webview" style="width: 400px; height: 292px;"></p>
<p>Alternatively, you can install <a class="external" href="http://labs.adobe.com/technologies/flashplayer10/" title="http://labs.adobe.com/technologies/flashplayer10/">Flash 10 Beta from Adobe</a>. Be warned, it's a beta with known problems on some sites.  However, it is compatible with the crash reporter.</p>
<h3>Alternative ways to get a stacktrace</h3>
<p>If the Mozilla crash reporter doesn't come up after a crash, or if you use a Linux build, use these instructions:</p>
<h5>Windows</h5>
<p>See the article <a class="internal" href="/en/How_to_get_a_stacktrace_with_WinDbg" title="En/How to get a stacktrace with WinDbg">Create a stacktrace with Windbg</a> for information on how to do this.</p>
<p>You can also use WinDbg if you get a hang or freeze instead of a crash. In that case use the command:</p>
<pre> !analyze -v -hang</pre>
<h5>Linux</h5>
<ul> <li> <p>Ubuntu:  <a class="link-https" href="https://wiki.ubuntu.com/MozillaTeam/Bugs#Obtain%20a%20backtrace%20from%20an%20apport%20crash%20report%20%28using%20gdb%29" title="https://wiki.ubuntu.com/MozillaTeam/Bugs#Obtain a backtrace from an apport crash report (using gdb)">I<span class="external">nstructions from the Ubuntu Team</span></a> </p> </li> <li> Suse: <a class="external" href="http://en.opensuse.org/Bugs:An_application_crashed" title="http://en.opensuse.org/Bugs:An_application_crashed">Instructions from SuSe</a>  To run Firefox under a debugger you should use: "./run-mozilla.sh -g -d gdb ./firefox-bin" <strong>not</strong> "gdb ./firefox"</li>
</ul>
Revert to this revision