On Wed, Nov 01, 2006 at 01:31:14PM +0000, Ken Moffat wrote:
[snip]

 Well, it built but it's got no more intention of running than 1.5
did.  This is from attempting to run it as root, but I've upgraded
gdb to 6.5 and that's helping a little :

ppc64 [EMAIL PROTECTED] /home/ken #/opt/firefox-2.0-32/bin/firefox -g
/opt/firefox-2.0-32/lib/firefox-2.0/run-mozilla.sh -g
/opt/firefox-2.0-32/lib/firefox-2.0/firefox-bin
MOZILLA_FIVE_HOME=/opt/firefox-2.0-32/lib/firefox-2.0
  
LD_LIBRARY_PATH=/opt/firefox-2.0-32/lib/firefox-2.0:/opt/firefox-2.0-32/lib/firefox-2.0/plugins:/opt/firefox-2.0-32/lib/mre/mre-2.0
DISPLAY=:0.0
DYLD_LIBRARY_PATH=/opt/firefox-2.0-32/lib/firefox-2.0:/opt/firefox-2.0-32/lib/mre/mre-2.0
     
LIBRARY_PATH=/opt/firefox-2.0-32/lib/firefox-2.0:/opt/firefox-2.0-32/lib/firefox-2.0/components:/opt/firefox-2.0-32/lib/mre/mre-2.0
       
SHLIB_PATH=/opt/firefox-2.0-32/lib/firefox-2.0:/opt/firefox-2.0-32/lib/mre/mre-2.0
          
LIBPATH=/opt/firefox-2.0-32/lib/firefox-2.0:/opt/firefox-2.0-32/lib/mre/mre-2.0
       ADDON_PATH=/opt/firefox-2.0-32/lib/firefox-2.0
      MOZ_PROGRAM=/opt/firefox-2.0-32/lib/firefox-2.0/firefox-bin
      MOZ_TOOLKIT=
        moz_debug=1
     moz_debugger=
which: no ddd in (/sbin:/bin:/usr/sbin:/usr/bin)
/usr/bin/gdb /opt/firefox-2.0-32/lib/firefox-2.0/firefox-bin -x
/tmp/mozargs.fgbG2X
GNU gdb 6.5
Copyright (C) 2006 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 "powerpc64-unknown-linux-gnu"...Using
host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /opt/firefox-2.0-32/lib/firefox-2.0/firefox-bin 
[Thread debugging using libthread_db enabled]
[New Thread -134463488 (LWP 2767)]
[New Thread -136669984 (LWP 2772)]
[New Thread -145124128 (LWP 2775)]
[New Thread -153512736 (LWP 2776)]
[Thread -136669984 (LWP 2772) exited]
[Thread -153512736 (LWP 2776) exited]
[Thread -145124128 (LWP 2775) exited]

Program exited with code 01.
(gdb) bt
No stack.
(gdb) 

 Ok, so far gdb-6.5 doesn't help, but if I step it I can now get a
trace.

(gdb) step
The program is not being run.
(gdb) start
Breakpoint 1 at 0x100043cc
Starting program: /opt/firefox-2.0-32/lib/firefox-2.0/firefox-bin 
[Thread debugging using libthread_db enabled]
[New Thread -134463488 (LWP 2785)]
[Switching to Thread -134463488 (LWP 2785)]
0x100043cc in main ()
(gdb) step
Single stepping until exit from function main, 
which has no line number information.
[New Thread -136669984 (LWP 2788)]
[New Thread -145058592 (LWP 2789)]
[New Thread -153447200 (LWP 2790)]
[Thread -136669984 (LWP 2788) exited]
[Thread -153447200 (LWP 2790) exited]
[Thread -145058592 (LWP 2789) exited]
generic_start_main (main=0x100043b4 <main>, argc=1,
ubp_av=0xffe22924, auxvec=0xffe229cc, 
    init=<value optimized out>, fini=<value optimized out>,
rtld_fini=<value optimized out>, 
    stack_end=<value optimized out>) at ../csu/libc-start.c:262
262     ../csu/libc-start.c: No such file or directory.
        in ../csu/libc-start.c
(gdb) bt
#0  generic_start_main (main=0x100043b4 <main>, argc=1,
ubp_av=0xffe22924, auxvec=0xffe229cc, 
    init=<value optimized out>, fini=<value optimized out>,
rtld_fini=<value optimized out>, 
    stack_end=<value optimized out>) at ../csu/libc-start.c:262
#1  0x0f133858 in __libc_start_main (argc=1, ubp_av=0xffe22924,
ubp_ev=<value optimized out>, 
    auxvec=0xffe229cc, rtld_fini=0xf7ff0660 <_dl_fini>,
stinfo=0x10012380, 
    stack_on_entry=0xffe22910) at
../sysdeps/unix/sysv/linux/powerpc/libc-start.c:127
#2  0x00000000 in ?? ()
(gdb) step
*__GI_exit (status=1) at exit.c:39
39      exit.c: No such file or directory.
        in exit.c
(gdb)

  Line 127 of glibc-start n the glibc-2.4 source is
 'return generic_start_main( args ... );'
and generic_start_main is #defined to LIBC_START_MAIN which is in
csu/libc-start.c.  If I read that correctly, it's just returning 1
as the result of main.  That's in browser/app/nsBrowserApp.cpp
which calls XRE_main in toolkit/xre/nsAppRunner.cpp - I wish google
could find me an easy guide to debugging this - looks as if I might
need to rebuild with DEBUG defined, and without optimising <sigh>.

Ken
-- 
das eine Mal als Tragödie, das andere Mal als Farce
_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-support

Reply via email to