On 04/16/10 21:18, RD Thrush wrote:
On 04/16/10 18:07, [email protected] wrote:
I built a debug version of thunderbird 3 for i386.
I have not been able to get it to run in gdb as Larry suggested.
[...]
If you really want someone to help, you'll have to build a debug version
of it (DEBUG=-g INSTALL_STRIP='' make reinstall in
mail/mozilla-thunderbird) and run it inside gdb to catch the crash
traces.
Of course. But I can't get it to run in gdb.
$ gdb /usr/local/bin/thunderbird
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as
"i386-unknown-openbsd4.7"..."/usr/local/bin/thunderbird": not in
executable format: File format not recognized
/usr/local/bin/thunderbird is a shell script. It has hooks for debugging.
Invoke the script as thunderbird --debug and it will arrange to run the real
executable with the proper environment under gdb.
Thanks, that worked
This got clipped at the ends:
$ /usr/local/bin/thunderbird --debug
/usr/local/mozilla-thunderbird/run-mozilla.sh -g /usr/local/
MOZILLA_FIVE_HOME=/usr/local/mozilla-thunderbird
LD_LIBRARY_PATH=/usr/local/mozilla-thunderbird:/usr/local/
DISPLAY=:0.0
DYLD_LIBRARY_PATH=/usr/local/mozilla-thunderbird:/usr/local/
LIBRARY_PATH=/usr/local/mozilla-thunderbird:/usr/local/
SHLIB_PATH=/usr/local/mozilla-thunderbird:/usr/local/
LIBPATH=/usr/local/mozilla-thunderbird:/usr/local/
ADDON_PATH=/usr/local/mozilla-thunderbird
MOZ_PROGRAM=/usr/local/mozilla-thunderbird/thunderbird
MOZ_TOOLKIT=
moz_debug=1
moz_debugger=
/usr/bin/gdb /usr/local/mozilla-thunderbird/thunderbird-bin
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public Lice
welcome to change it and/or distribute copies of it under ce
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warrant
This GDB was configured as "i386-unknown-openbsd4.7"...
(gdb) run
Starting program: /usr/local/mozilla-thunderbird/thunderbird
[New process 4232, thread 0x83a34800]
[New process 4232, thread 0x84826000]
[New process 4232]
Program received signal SIGTRAP, Trace/breakpoint trap.
Cannot remove breakpoints because program is no longer writable.
It might be running in another process.
Further execution is probably impossible.
0x06f92920 in ?? ()
(gdb)
(gdb) continue
Continuing.
Ran OK to view messages, Now I will try to send one
I hit reply
(thunderbird-bin:4232): Gtk-WARNING **: Error loading theme icon
'tools-check-spelling' for stock: Icon 'tools-check-spelling' not
present in theme
--
A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects.
-- Robert Heinlein