crash in TestCallTemplates [__dyld__ZN4dyld5_mainEPK11mach_headeriPPKcS5_S5_]

RESOLVED INVALID

Status

()

Core
XPCOM
RESOLVED INVALID
11 years ago
9 years ago

People

(Reporter: Ray Kiddy, Unassigned)

Tracking

Trunk
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

11 years ago
$ 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)
(Reporter)

Comment 1

11 years ago
on intel mac with 10.4.8
Hardware: PC → Macintosh

Comment 2

11 years ago
I think you want to be running dist/bin/TestCallTemplates, not ../../xpcom/tests/TestCallTemplates

Comment 3

11 years ago
intel.
Hardware: Macintosh → PC

Comment 4

9 years ago
I'm guessing this falls in the "doing it wrong" category, based on comment 2.
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → INCOMPLETE

Comment 5

9 years ago
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.