Closed
Bug 902818
Opened 11 years ago
Closed 11 years ago
Crash at startup on MIPS N32 system
Categories
(Core :: XPConnect, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: root, Unassigned)
Details
(Keywords: crash)
Crash Data
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0 (Beta/Release)
Build ID: 20130806211916
Steps to reproduce:
Compiled with this JS JIT(MIPS n32 ABI) patch => http://mirrors.heiher.info/sources/extra/js/mozjs-mips-n32-v4.diff
Running:
./run-mozilla.sh -g ./firefox
Actual results:
[root@archlinux bin]# ./run-mozilla.sh -g ./firefox
MOZILLA_FIVE_HOME=.
LD_LIBRARY_PATH=.:./plugins:.
DISPLAY=:0.0
DYLD_LIBRARY_PATH=.:.
LIBRARY_PATH=
SHLIB_PATH=.:.
LIBPATH=.:.
ADDON_PATH=
MOZ_PROGRAM=./firefox
MOZ_TOOLKIT=
moz_debug=1
moz_debugger=
moz_debugger_args=
which: no ddd in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/core_perl)
/usr/bin/gdb --args ./firefox
GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "mips64el-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /root/build/firefox/src/mozilla-release/obj-mips64el-unknown-linux-gnu/dist/bin/firefox...done.
(gdb) r
Starting program: /root/build/firefox/src/mozilla-release/obj-mips64el-unknown-linux-gnu/dist/bin/firefox
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x6e313360 (LWP 31373)]
[New Thread 0x6d9ff360 (LWP 31374)]
[New Thread 0x6cfff360 (LWP 31375)]
[New Thread 0x6c78f360 (LWP 31380)]
[New Thread 0x6bceb360 (LWP 31382)]
[New Thread 0x6b2ff360 (LWP 31383)]
[New Thread 0x6a8ff360 (LWP 31384)]
[New Thread 0x69cff360 (LWP 31385)]
[New Thread 0x694ff360 (LWP 31386)]
[New Thread 0x68aff360 (LWP 31387)]
Program received signal SIGSEGV, Segmentation fault.
0x74c7ddf8 in JS_GetCompartmentPrincipals (compartment=0x20000000) at /root/build/firefox/src/mozilla-release/js/src/jsfriendapi.cpp:190
190 }
(gdb) bt
#0 0x74c7ddf8 in JS_GetCompartmentPrincipals (compartment=0x20000000) at /root/build/firefox/src/mozilla-release/js/src/jsfriendapi.cpp:190
#1 0x7339b1fc in GetCompartmentPrincipal (compartment=0x20000000)
at /root/build/firefox/src/mozilla-release/js/xpconnect/wrappers/AccessCheck.cpp:32
#2 xpc::AccessCheck::isChrome (compartment=0x20000000) at /root/build/firefox/src/mozilla-release/js/xpconnect/wrappers/AccessCheck.cpp:107
#3 0x733cd1d4 in xpc::WrapperFactory::Rewrap (cx=0x10382f58, obj=0x68c66770, wrappedProto=0x67f44010, parent=0x67f20070, flags=0)
at /root/build/firefox/src/mozilla-release/js/xpconnect/wrappers/WrapperFactory.cpp:339
#4 0x74c39274 in JSCompartment::wrap (this=0x104b5778, cx=0x10382f58, vp=0x69d00010)
at /root/build/firefox/src/mozilla-release/js/src/jscompartment.cpp:279
#5 0x74e99614 in js::CrossCompartmentWrapper::call (this=0x77ab79c0 <js::CrossCompartmentWrapper::singleton>, cx=0x10382f58,
wrapper_=0x67f4c180, argc=1, vp=0x69d00010) at /root/build/firefox/src/mozilla-release/js/src/jswrapper.cpp:739
#6 0x74d9e840 in call (vp=0x69d00010, argc=1, proxy=0x67f4c180, cx=0x10382f58)
at /root/build/firefox/src/mozilla-release/js/src/jsproxy.cpp:1332
#7 proxy_Call (cx=0x10382f58, argc=1, vp=0x69d00010) at /root/build/firefox/src/mozilla-release/js/src/jsproxy.cpp:1888
#8 0x74cfa558 in CallJSNative (args=..., native=<optimized out>, cx=0x10382f58)
at /root/build/firefox/src/mozilla-release/js/src/jscntxtinlines.h:372
#9 js::InvokeKernel (cx=0x10382f58, args=..., construct=<optimized out>) at /root/build/firefox/src/mozilla-release/js/src/jsinterp.cpp:345
#10 0x74d0baa8 in Invoke (construct=js::NO_CONSTRUCT, args=..., cx=0x10382f58)
at /root/build/firefox/src/mozilla-release/js/src/jsinterp.h:119
#11 js::Invoke (cx=0x10382f58, thisv=..., fval=..., argc=<optimized out>, argv=<optimized out>, rval=0x7fff0e48)
at /root/build/firefox/src/mozilla-release/js/src/jsinterp.cpp:396
#12 0x74bcf124 in JS_CallFunctionValue (cx=0x10382f58, objArg=0x67f4c180, fval=..., argc=1, argv=<optimized out>, rval=<optimized out>)
at /root/build/firefox/src/mozilla-release/js/src/jsapi.cpp:5850
#13 0x73152f50 in nsXPCWrappedJSClass::CallMethod (this=0x10386028, wrapper=<optimized out>, methodIndex=3, info_=0x101479b0,
nativeParams=0x7fff1180) at /root/build/firefox/src/mozilla-release/js/xpconnect/src/XPCWrappedJSClass.cpp:1442
#14 0x7313cb74 in nsXPCWrappedJS::CallMethod (this=0x104beca8, methodIndex=<optimized out>, info=0x101479b0, params=0x7fff1180)
at /root/build/firefox/src/mozilla-release/js/xpconnect/src/XPCWrappedJS.cpp:580
#15 0x741f8184 in PrepareAndDispatch (self=0x105259f8, methodIndex=<optimized out>, args=<optimized out>, gprData=0x7fff1288,
fprData=0x7fff1250) at /root/build/firefox/src/mozilla-release/xpcom/reflect/xptcall/src/md/unix/xptcstubs_mips64.cpp:168
#16 0x741fa3e4 in sharedstub () at /root/build/firefox/src/mozilla-release/xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_mips64.s:104
#17 0x7338d354 in mozJSComponentLoader::ModuleEntry::GetFactory (module=..., entry=...)
at /root/build/firefox/src/mozilla-release/js/xpconnect/loader/mozJSComponentLoader.cpp:1312
#18 0x00000000 in ?? ()
(gdb) x/20i $pc
=> 0x74c7ddf8 <JS_GetCompartmentPrincipals(JSCompartment*)+96>: lw v0,4(s1)
0x74c7ddfc <JS_GetCompartmentPrincipals(JSCompartment*)+100>: ld a0,-10792(v1)
0x74c7de00 <JS_GetCompartmentPrincipals(JSCompartment*)+104>: sw zero,21016(s0)
0x74c7de04 <JS_GetCompartmentPrincipals(JSCompartment*)+108>: ld gp,16(sp)
0x74c7de08 <JS_GetCompartmentPrincipals(JSCompartment*)+112>: daddiu a0,a0,1
0x74c7de0c <JS_GetCompartmentPrincipals(JSCompartment*)+116>: ld s1,8(sp)
0x74c7de10 <JS_GetCompartmentPrincipals(JSCompartment*)+120>: ld s0,0(sp)
0x74c7de14 <JS_GetCompartmentPrincipals(JSCompartment*)+124>: addiu sp,sp,32
0x74c7de18 <JS_GetCompartmentPrincipals(JSCompartment*)+128>: jr ra
0x74c7de1c <JS_GetCompartmentPrincipals(JSCompartment*)+132>: sd a0,-10792(v1)
0x74c7de20 <JS_ShrinkGCBuffers(JSRuntime*)>: addiu sp,sp,-48
0x74c7de24 <JS_ShrinkGCBuffers(JSRuntime*)+4>: sd gp,32(sp)
0x74c7de28 <JS_ShrinkGCBuffers(JSRuntime*)+8>: lui gp,0x1d9
0x74c7de2c <JS_ShrinkGCBuffers(JSRuntime*)+12>: addu gp,gp,t9
0x74c7de30 <JS_ShrinkGCBuffers(JSRuntime*)+16>: sd s2,24(sp)
0x74c7de34 <JS_ShrinkGCBuffers(JSRuntime*)+20>: move s2,a0
0x74c7de38 <JS_ShrinkGCBuffers(JSRuntime*)+24>: addiu gp,gp,16620
0x74c7de3c <JS_ShrinkGCBuffers(JSRuntime*)+28>: sd ra,40(sp)
0x74c7de40 <JS_ShrinkGCBuffers(JSRuntime*)+32>: lw t9,15080(gp)
0x74c7de44 <JS_ShrinkGCBuffers(JSRuntime*)+36>: addiu a0,gp,18028
(gdb) i r
zero at v0 v1
R0 0000000000000000 0000000000000001 0000000010063440 0000000077a6c000
a0 a1 a2 a3
R4 0000000000000000 000000000000154c 0000000074c7dd98 0000000000000000
a4 a5 a6 a7
R8 0000000000000000 0000000077a5e5f8 00000000104b5d50 0000000000000154
t0 t1 t2 t3
R12 000000000000007d 0000000077a59af8 fffffffffffffffe 00000000682af850
s0 s1 s2 s3
R16 0000000010063440 0000000020000000 0000000000000000 0000000000000000
s4 s5 s6 s7
R20 0000000020000000 0000000000000000 0000000067f20070 0000000020000000
t8 t9 k0 k1
R24 0000000077a5c000 0000000010021ed0 0000000000000000 0000000000000000
gp sp s8 ra
R28 0000000076a11f0c 000000007fff0920 000000007738d5e8 000000007339b1fc
status lo hi badvaddr
000000000400ccf3 0000000000000000 0000000000000009 0000000020000004
cause pc
0000000010000008 0000000074c7ddf8
fcsr fir restart
0000000020000044 0000000000770501 0000000000000000
(gdb)
Expected results:
PASS
Updated•11 years ago
|
Severity: normal → critical
Crash Signature: [@ JS_GetCompartmentPrincipals(JSCompartment*)]
Component: Untriaged → XPConnect
Keywords: crash
Product: Firefox → Core
Version: 17 Branch → 23 Branch
This problem has been fixed, It's wrong page size for Loongson platform.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•