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: 100534
  • Created:
  • Creator: mversen
  • Is current revision? No
  • Comment 69 words added, 87 words removed

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


How to get the Crash ID if Firefox crashes on Startup

You can find the crash reporter files at this location depending on your Operating System

Windows : %APPDATA%\Mozilla\Firefox\Crash Reports\submitted\

Mac OS :~/Library/Application Support/Firefox/Crash Reports/submitted/

Linux : ~/.mozilla/firefox/Crash Reports/submitted/

Each file in this folder represents one submitted crash report

 

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>
<br>
<h4>How to get the Crash ID if Firefox crashes on Startup</h4>
<p>You can find the crash reporter files at this location depending on your Operating System</p>
<p>Windows : <span class="filename">%APPDATA%\Mozilla\Firefox\Crash Reports\submitted\</span></p>
<p><span class="filename">Mac OS :~/Library/Application Support/Firefox/Crash Reports/submitted/</span></p>
<p><span class="filename">Linux : ~/.mozilla/firefox/Crash Reports/submitted/</span></p>
<p>Each file in this folder represents one submitted crash report</p>
<p> </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