Thunderbird:Build

From MozillaWiki
Revision as of 14:13, 15 July 2009 by Gozer (talk | contribs)
Jump to navigation Jump to search

<< Back to Thunderbird Home Page

Build

See Simple Thunderbird Build for build instructions.

Other Useful Commands

To run the builds in Terminal in the following recommended way, go through the following commands:

  • Set up for leak detection.
$ export XPCOM_MEM_LEAK_LOG=2
  • mail-dumped.txt will show the objects dumped when shut down.
$ export XPC_SHUTDOWN_HEAP_DUMP=mail-dumped.txt
  • Change into the directory where ThunderbirdDebug.app is found.
$ cd @@@YOURDIRECTORY@@@/objdir-i386-apple-darwin9.2.0/mail/dist/ThunderbirdDebug.app/Contents/MacOS/
  • Create your profile here.
$ ./thunderbird-bin -Profilemanager --no-remote
  • Run Thunderbird within gdb to get stack traces when the application crashes.
$ gdb ./thunderbird-bin
  • Within gdb, type this command:
(gdb) handle SIG33 noprint nostop
  • Run the debug Thunderbird build with your just-created profile.
(gdb) run -P "@@@YOURPROFILE@@@" -no-remote
  • When the application crashes, run backtrace within gdb:
    • and attach the trace shown in your Terminal window as an attachment in a Bugzilla report if there are no other duplicates.
(gdb) backtrace
  • To quit gdb, type:
(gdb) quit