Closed Bug 369290 Opened 17 years ago Closed 15 years ago

crash in TestCallTemplates [__dyld__ZN4dyld5_mainEPK11mach_headeriPPKcS5_S5_]

Categories

(Core :: XPCOM, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: ray, Unassigned)

Details

$ cd dist/bin
$ ./run-mozilla.sh ../../xpcom/tests/TestCallTemplates
./run-mozilla.sh: line 451: 13266 Segmentation fault      "$prog" ${1+"$@"}
$ echo $?
139
$

I do not know if I have this set up right, but I see the following:

% ./run-mozilla.sh --debug ../../xpcom/tests/TestCallTemplates
MOZILLA_FIVE_HOME=.
  LD_LIBRARY_PATH=.:./plugins:.
DYLD_LIBRARY_PATH=.:.
     LIBRARY_PATH=.:./components:.
       SHLIB_PATH=.:.
          LIBPATH=.:.
       ADDON_PATH=.
      MOZ_PROGRAM=../../xpcom/tests/TestCallTemplates
      MOZ_TOOLKIT=
        moz_debug=1
     moz_debugger=
/usr/bin/gdb ../../xpcom/tests/TestCallTemplates -x /tmp/mozargs.EXKktz
GNU gdb 6.3.50-20050815 (Apple version gdb-477) (Sun Apr 30 20:01:44 GMT 2006)
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-apple-darwin"...
warning: Unable to read symbols for "@executable_path/libxpcom.dylib" (file not found).

warning: Unable to read symbols for "@executable_path/libxpcom_core.dylib" (file not found).

warning: Unable to read symbols for "@executable_path/libplds4.dylib" (file not found).

warning: Unable to read symbols for "@executable_path/libplc4.dylib" (file not found).

warning: Unable to read symbols for "@executable_path/libnspr4.dylib" (file not found).
Reading symbols for shared libraries .... done

(gdb) r
Starting program: /Users/ray/mo/browser/mozilla/xpcom/tests/TestCallTemplates 
dyld: Library not loaded: @executable_path/libxpcom.dylib
  Referenced from: /Users/ray/mo/browser/mozilla/xpcom/tests/TestCallTemplates
  Reason: image not found

Program received signal SIGTRAP, Trace/breakpoint trap.
0x8fe06046 in __dyld__ZN4dyld5_mainEPK11mach_headeriPPKcS5_S5_ ()
(gdb) bt
#0  0x8fe06046 in __dyld__ZN4dyld5_mainEPK11mach_headeriPPKcS5_S5_ ()
#1  0x8fe09ca9 in __dyld__ZN13dyldbootstrap5startEPK11mach_headeriPPKcl ()
#2  0x8fe01037 in __dyld__dyld_start ()
(gdb)
on intel mac with 10.4.8
Hardware: PC → Macintosh
I think you want to be running dist/bin/TestCallTemplates, not ../../xpcom/tests/TestCallTemplates
intel.
Hardware: Macintosh → PC
I'm guessing this falls in the "doing it wrong" category, based on comment 2.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → INCOMPLETE
yep. the signature is basically dyld saying "hi, i was trying to load your application, and i've told you why i failed, you're dead now", in this case, it said:

dyld: Library not loaded: @executable_path/libxpcom.dylib

and because executable path was related to 
../../xpcom/tests/TestCallTemplates

it wouldn't find the dylib because that's in dist/bin

as such, dyld had no choice but to terminate the application.
Resolution: INCOMPLETE → INVALID
You need to log in before you can comment on or make changes to this bug.