Hi, All.
I tried to use gdb to step through the source code, but the program always hang. (If
it is execute directly, it is OK.) I am using mozilla-source-0.9.2, on redhat7.0,
gdb5.0 and gcc2.96. Below is the debugger output, can you share how to solve it?
thanks!
[istue@istue05 bin]$ ./run-mozilla.sh ./mozilla -g -d gdb
MOZILLA_FIVE_HOME=.
LD_LIBRARY_PATH=.:./plugins
LIBRARY_PATH=.:./components
SHLIB_PATH=.
LIBPATH=.
ADDON_PATH=.
MOZ_PROGRAM=./mozilla
MOZ_TOOLKIT=
moz_debug=0
moz_debugger=
./run-mozilla.sh -g -d gdb ./mozilla-bin
MOZILLA_FIVE_HOME=/projects/DSP/istue/users/istue/mozilla/dist/bin
LD_LIBRARY_PATH=/projects/DSP/istue/users/istue/mozilla/dist/bin:/projects/DSP
/istue/users/istue/mozilla/dist/bin/plugins:.:./plugins
LIBRARY_PATH=/projects/DSP/istue/users/istue/mozilla/dist/bin:/projects/DSP
/istue/users/istue/mozilla/dist/bin/components:.:./components
SHLIB_PATH=/projects/DSP/istue/users/istue/mozilla/dist/bin:.
LIBPATH=/projects/DSP/istue/users/istue/mozilla/dist/bin:.
ADDON_PATH=/projects/DSP/istue/users/istue/mozilla/dist/bin:.
MOZ_PROGRAM=./mozilla-bin
MOZ_TOOLKIT=
moz_debug=1
moz_debugger=gdb
/usr/bin/gdb ./mozilla-bin -x /tmp/mozargs4916
GNU gdb 5.0
Copyright 2000 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-redhat-linux"...
(gdb) run
Starting program: /projects/DSP/istue/users/istue/mozilla/dist/bin/./mozilla-bin
[New Thread 1024 (LWP 4923)]
Type Manifest File: /projects/DSP/istue/users/istue/mozilla/dist/bin/components/
Gdk-CRITICAL **: file gdkimage.c: line 416 (gdk_image_destroy): assertion `image !=
NULL' failed.
Gdk-CRITICAL **: file gdkimage.c: line 416 (gdk_image_destroy): assertion `image !=
NULL' failed.
Gdk-CRITICAL **: file gdkimage.c: line 416 (gdk_image_destroy): assertion `image !=
NULL' failed.
Gdk-CRITICAL **: file gdkimage.c: line 416 (gdk_image_destroy): assertion `image !=
NULL' failed.
[New Thread 2049 (LWP 4931)]
[New Thread 1026 (LWP 4932)]
[New Thread 2051 (LWP 4933)]
Unable to enumerator app shell components, GetSubtree rv=0x80510003
GFX: dpi=101 t2p=0.0714286 p2t=14 depth=24
WEBSHELL+ = 1
[New Thread 3076 (LWP 4934)]
nsPluginHostImpl ctor
********** Got plugins path: /projects/DSP/istue/users/istue/mozilla/dist/bin/plugins
IsPluginFile(/projects/DSP/istue/users/istue/mozilla/modules/plugin/default/unix/libnullplugin.so)
LoadPlugin()
/projects/DSP/istue/users/istue/mozilla/modules/plugin/default/unix/libnullplugin.so
returned 81fbc78
GetMIMEDescription() returned "*:.*:All types"
WEBSHELL+ = 2
Enabling Quirk StyleSheet
Note: verifyreflow is disabled
Note: styleverifytree is disabled
Note: frameverifytree is disabled
[New Thread 4101 (LWP 4935)]
[New Thread 5126 (LWP 4936)]
Disabling Quirk StyleSheet
ptrace: No such process.
(gdb) bt
#0 0x0 in ?? ()
Current language: auto; currently c
(gdb)
--
*******************
* Li Zhuo Jia *
* DID: 486-2580 *
* Fax: 481-6997 *
*******************
Message Classification :
( ) Motorola Confidential Proprietary
(x) Motorola Internal Use Only
( ) Motorola General Business Information