Thunderbird:Build: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 36: | Line 36: | ||
* To quit gdb, type: | * To quit gdb, type: | ||
(gdb) quit | (gdb) quit | ||
[[category:Thunderbird|*]] | [[category:Thunderbird|*]] | ||
Revision as of 14:13, 15 July 2009
<< 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