Subject: gdb, pmax, and mozilla
To: None <port-pmax@netbsd.org>
From: None <mcmahill@mtl.mit.edu>
List: port-pmax
Date: 10/09/2000 16:28:08
I've been trying to produce a working mozilla on a 1.4.2 pmax box using
recent pkgsrc. The program builds but during the post-build target, tries
to run a binary which crashes:

(cd /usr/build/pkgsrc/www/mozilla/work.mipsel/mozilla/dist/bin &&
/usr/bin/env LD_LIBRARY_PATH=. MOZILLA_FI
VE_HOME=. ./regxpcom &&  /usr/bin/env LD_LIBRARY_PATH=.
MOZILLA_FIVE_HOME=. ./regchrome )
Segmentation fault
*** Error code 139


also, if I try and run the resulting mozilla binary it crashes:

cmahill@ampere 16 # ./work.mipsel/mozilla/dist/bin/mozilla
./work.mipsel/mozilla/dist/bin/run-mozilla.sh
./work.mipsel/mozilla/dist/bin/mozilla-bin
MOZILLA_FIVE_HOME=./work.mipsel/mozilla/dist/bin
  LD_LIBRARY_PATH=./work.mipsel/mozilla/dist/bin:.=
     LIBRARY_PATH=./work.mipsel/mozilla/dist/bin
       SHLIB_PATH=./work.mipsel/mozilla/dist/bin
          LIBPATH=./work.mipsel/mozilla/dist/bin
       ADDON_PATH=./work.mipsel/mozilla/dist/bin
      MOZ_PROGRAM=./work.mipsel/mozilla/dist/bin/mozilla-bin
      MOZ_TOOLKIT=
        moz_debug=0
     moz_debugger=
Segmentation fault - core dumped
40.020u 10.222s 0:57.01 88.1%   0+0k 155+451io 183pf+0w


so I tried to run it in the debugger:

mcmahill@ampere 22 # ./work.mipsel/mozilla/dist/bin/mozilla --debug
./work.mipsel/mozilla/dist/bin/run-mozilla.sh -g
./work.mipsel/mozilla/dist/bin/mozilla-bin
MOZILLA_FIVE_HOME=./work.mipsel/mozilla/dist/bin
  LD_LIBRARY_PATH=./work.mipsel/mozilla/dist/bin
     LIBRARY_PATH=./work.mipsel/mozilla/dist/bin
       SHLIB_PATH=./work.mipsel/mozilla/dist/bin
          LIBPATH=./work.mipsel/mozilla/dist/bin
       ADDON_PATH=./work.mipsel/mozilla/dist/bin
      MOZ_PROGRAM=./work.mipsel/mozilla/dist/bin/mozilla-bin
      MOZ_TOOLKIT=
        moz_debug=1
     moz_debugger=
/usr/bin/gdb ./work.mipsel/mozilla/dist/bin/mozilla-bin -x
/tmp/mozargs21238
GNU gdb 4.17
Copyright 1998 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 "mipsel--netbsd"...
(gdb) run
Starting program:
/amd/wayne/usr/pkgsrc/www/mozilla/./work.mipsel/mozilla/dist/bin/mozilla-bin 
BFD: /usr/pkg/lib/libintl.so.1: invalid string offset 1879048203 >= 777
for section `.dynstr'
Error accessing memory address 0x200052ac: Cannot allocate memory.
(gdb) bt
#0  0x5ffe42f8 in _rtld_debug_state ()
#1  0x5ffe4170 in _rtld_dlopen ()
#2  0x402bc4 in dlopen ()
#3  0x20435670 in _PR_InitLinker ()
#4  0x2043e318 in _PR_InitStuff ()
#5  0x2043e410 in _PR_ImplicitInitialization ()
#6  0x2044f180 in PR_GetCurrentThread ()
#7  0x201cd68c in nsIThread::GetCurrent ()
#8  0x201cd8ac in nsIThread::SetMainThread ()
#9  0x200cdca4 in NS_InitXPCOM ()
#10 0x4079f0 in main ()




So what does the 'Error accessing memory....' part mean?  I've got about
40 Mb of RAM and >300Mb of swap on the machine and did 'unlimit' first.
Also what is the BFD message?

Thanks for any pointers

-Dan