Hi, I am building mozilla firefox 1.5.0.3 on mac with the following options.
ac_add_options --enable-application=browser ac_add_options --enable-default-toolkit=gtk2 ac_add_options --disable-pedantic ac_add_options --prefix=$PREFIX ac_add_options --enable-debug ac_add_options --without-x ac_add_options --disable-gtktest ac_add_options --disable-tests ac_add_options --enable-plugins ac_add_options --enable-pango ac_add_options --disable-xft ac_add_options --enable-extensions=default,spatialnavigation ac_add_options --disable-xinerama ac_add_options --enable-directfb The build is sucessful on both PPC and Intel. The TestGtkEmbed is running on PPC with some exception messages in nsExtensionManager.js and nsUpdateService.js at the startup. But on Intel the TestGtkEmbed is crashing while trying to load any .js component. The following is the crash report.. ******************************************************************************************** Thread 0 Crashed: 0 dyld 0x8fe12f84 stub_binding_helper_interface + 18 1 <<00000000>> 0x00000000 0 + 0 2 libxpcom_core.dylib 0x010b036a xptiInterfaceInfo::GetInterfaceIID(nsID**) + 38 (xptiprivate.h:693) 3 libxpconnect.dylib 0x141883cf nsJSIID::GetId(nsID**) + 75 (xpcjsid.cpp:426) 4 libxpconnect.dylib 0x14187a06 nsJSID::Equals(nsIJSID*, int*) + 182 (xpcjsid.cpp:152) 5 libxpcom_core.dylib 0x0108c576 XPTC_InvokeByIndex + 56 (xptcinvoke_unixish_x86.cpp:179) 6 libxpconnect.dylib 0x1419dbb1 XPCWrappedNative::CallMethod(XPCCallContext&, XPCWrappedNative::CallMode) + 4727 (xpcwrappednative.cpp:2152) 7 libxpconnect.dylib 0x141a749b XPC_WN_CallMethod(JSContext*, JSObject*, unsigned, long*, long*) + 353 (xpcwrappednativejsops.cpp:1444) 8 libmozjs.dylib 0x0048d2ad js_Invoke + 2818 (jsinterp.c: 1177) 9 libmozjs.dylib 0x00499501 js_Interpret + 44979 (jsinterp.c:3561) 10 libmozjs.dylib 0x0048d324 js_Invoke + 2937 (jsinterp.c: 1197) 11 libmozjs.dylib 0x0048d5c6 js_InternalInvoke + 241 (jsinterp.c:1274) 12 libmozjs.dylib 0x004613c0 JS_CallFunctionValue + 62 (jsapi.c:4171) 13 libxpconnect.dylib 0x14197025 nsXPCWrappedJSClass::CallQueryInterfaceOnJSObject(XPCCallContext&, JSObject*, nsID const&) + 719 (xpcwrappedjsclass.cpp:277) 14 libxpconnect.dylib 0x14197124 nsXPCWrappedJSClass::GetRootJSObject(XPCCallContext&, JSObject*) + 48 (xpcwrappedjsclass.cpp:633) 15 libxpconnect.dylib 0x1419374c nsXPCWrappedJS::GetNewOrUsed(XPCCallContext&, JSObject*, nsID const&, nsISupports*, nsXPCWrappedJS**) + 182 (xpcwrappedjs.cpp:236) 16 libxpconnect.dylib 0x1417f86d XPCConvert::JSObject2NativeInterface(XPCCallContext&, void**, JSObject*, nsID const*, nsISupports*, unsigned*) + 447 (xpcconvert.cpp: 1194) 17 libxpconnect.dylib 0x1416e240 nsXPConnect::WrapJS(JSContext*, JSObject*, nsID const&, void**) + 312 (nsXPConnect.cpp:619) 18 libxpconnect.dylib 0x141b295d mozJSComponentLoader::ModuleForLocation(char const*, nsIFile*) + 913 (mozJSComponentLoader.cpp:780) 19 libxpconnect.dylib 0x141b2fc0 mozJSComponentLoader::AttemptRegistration(nsIFile*, int) + 288 (mozJSComponentLoader.cpp:544) 20 libxpconnect.dylib 0x141b35f4 mozJSComponentLoader::AutoRegisterComponent(int, nsIFile*, int*) + 236 (mozJSComponentLoader.cpp:479) 21 libxpconnect.dylib 0x141b1562 mozJSComponentLoader::RegisterComponentsInDir(int, nsIFile*) + 488 (mozJSComponentLoader.cpp:381) 22 libxpconnect.dylib 0x141b1611 mozJSComponentLoader::AutoRegisterComponents(int, nsIFile*) + 31 (mozJSComponentLoader.cpp:335) 23 libxpcom_core.dylib 0x0105afe3 nsComponentManagerImpl::AutoRegisterNonNativeComponents(nsIFile*) + 527 (nsComponentManager.cpp:3299) 24 libxpcom_core.dylib 0x0105b8ae nsComponentManagerImpl::AutoRegisterImpl(int, nsIFile*, int) + 2046 (nsComponentManager.cpp:3266) 25 libxpcom_core.dylib 0x0105b922 nsComponentManagerImpl::AutoRegister(nsIFile*) + 50 (nsComponentManager.cpp:3441) 26 libgtkembedmoz.dylib 0x00213d80 NS_InitEmbedding + 208 (nsEmbedAPI.cpp:138) 27 libgtkembedmoz.dylib 0x0020b040 EmbedPrivate::PushStartup() + 458 (EmbedPrivate.cpp:518) 28 libgtkembedmoz.dylib 0x0020b2d2 EmbedPrivate::EmbedPrivate[in-charge]() + 186 (EmbedPrivate.cpp:158) 29 libgtkembedmoz.dylib 0x00207b0e gtk_moz_embed_init(_GtkMozEmbed*) + 36 (gtkmozembed2.cpp:533) 30 libgobject-2.0.0.dylib 0x02aae71c g_type_create_instance + 1278 (gtype.c:1572) 31 libgobject-2.0.0.dylib 0x02a93962 g_object_constructor + 28 (gobject.c:1041) 32 libgobject-2.0.0.dylib 0x02a93fb6 g_object_newv + 490 (gobject.c:937) 33 libgobject-2.0.0.dylib 0x02a94c3b g_object_new_valist + 605 (gobject.c:981) 34 libgobject-2.0.0.dylib 0x02a94de6 g_object_new + 54 (gobject.c: 799) 35 libgtk-quartz-2.0.0.dylib 0x01d7a30a gtk_type_new + 53 (gtktypeutils.c:107) 36 libgtkembedmoz.dylib 0x00207b85 gtk_moz_embed_new + 27 (gtkmozembed2.cpp:546) 37 TestGtkEmbed 0x00002b42 new_gtk_browser(unsigned) + 1378 (TestGtkEmbed.cpp:432) 38 TestGtkEmbed 0x000039d2 main + 170 (TestGtkEmbed.cpp: 219) 39 TestGtkEmbed 0x00001fa2 _start + 216 40 TestGtkEmbed 0x00001ec9 start + 41 ******************************************************************************************** Then I removed all the .js files from components folder, the TestGtkEmbed application window was show. But when i try to load a URL it will crash. The following is the crash report.. ******************************************************************************************** Thread 0 Crashed: 0 dyld 0x8fe12f84 stub_binding_helper_interface + 18 1 <<00000000>> 0x00000000 0 + 0 2 libxpcom_core.dylib 0x0108c576 XPTC_InvokeByIndex + 56 (xptcinvoke_unixish_x86.cpp:179) 3 libxpconnect.dylib 0x1419dbb1 XPCWrappedNative::CallMethod(XPCCallContext&, XPCWrappedNative::CallMode) + 4727 (xpcwrappednative.cpp:2152) 4 libxpconnect.dylib 0x141a731f XPC_WN_GetterSetter(JSContext*, JSObject*, unsigned, long*, long*) + 473 (xpcprivate.h:1953) 5 libmozjs.dylib 0x0048d2ad js_Invoke + 2818 (jsinterp.c: 1177) 6 libmozjs.dylib 0x0048d5c6 js_InternalInvoke + 241 (jsinterp.c:1274) 7 libmozjs.dylib 0x0048d80d js_InternalGetOrSet + 451 (jsinterp.c:1334) 8 libmozjs.dylib 0x004abf17 js_GetProperty + 1063 (jsobj.c:2985) 9 libmozjs.dylib 0x00497efe js_Interpret + 39344 (jsinterp.c:3386) 10 libmozjs.dylib 0x0048d324 js_Invoke + 2937 (jsinterp.c: 1197) 11 libmozjs.dylib 0x0048d5c6 js_InternalInvoke + 241 (jsinterp.c:1274) 12 libmozjs.dylib 0x004613c0 JS_CallFunctionValue + 62 (jsapi.c:4171) 13 libgklayout.dylib 0x1babf6a6 nsXBLProtoImplAnonymousMethod::Execute(nsIContent*) + 818 (nsXBLProtoImplMethod.cpp:342) 14 libgklayout.dylib 0x1bab24d8 nsXBLPrototypeBinding::BindingAttached(nsIContent*) + 38 (nsXBLPrototypeBinding.cpp:390) 15 libgklayout.dylib 0x1baae60d nsXBLBinding::ExecuteAttachedHandler() + 103 (nsXBLBinding.cpp:789) 16 libgklayout.dylib 0x1bad2b8f nsBindingManager::ProcessAttachedQueue() + 181 (nsISupportsImpl.h:99) 17 libgklayout.dylib 0x1b732bed nsCSSFrameConstructor::ContentInserted(nsIContent*, nsIFrame*, nsIContent*, int, nsILayoutHistoryState*, int) + 703 (nsCSSFrameConstructor.cpp:9219) 18 libgklayout.dylib 0x1b76cb39 PresShell::InitialReflow(int, int) + 533 (nsPresShell.cpp:2823) 19 libgklayout.dylib 0x1b972edb nsContentSink::StartLayout(int) + 251 (nsContentSink.cpp:924) 20 libgklayout.dylib 0x1ba730b0 HTMLContentSink::StartLayout() + 90 (nsHTMLContentSink.cpp:3563) 21 libgklayout.dylib 0x1ba7b237 HTMLContentSink::OpenBody(nsIParserNode const&) + 283 (nsHTMLContentSink.cpp:2633) 22 libhtmlpars.dylib 0x2ab6348e CNavDTD::OpenBody(nsCParserNode const*) + 116 (CNavDTD.cpp:2972) 23 libhtmlpars.dylib 0x2ab64b4c CNavDTD::OpenContainer(nsCParserNode const*, nsHTMLTag, int, nsEntryStack*) + 604 (CNavDTD.cpp:3204) 24 libhtmlpars.dylib 0x2ab6766c CNavDTD::HandleDefaultStartToken(CToken*, nsHTMLTag, nsCParserNode*) + 792 (CNavDTD.cpp:1281) 25 libhtmlpars.dylib 0x2ab6840b CNavDTD::HandleStartToken(CToken*) + 857 (CNavDTD.cpp:1668) 26 libhtmlpars.dylib 0x2ab68bd9 CNavDTD::HandleToken(CToken*, nsIParser*) + 1851 (CNavDTD.cpp:955) 27 libhtmlpars.dylib 0x2ab679f3 CNavDTD::BuildModel(nsIParser*, nsITokenizer*, nsITokenObserver*, nsIContentSink*) + 829 (CNavDTD.cpp:458) 28 libhtmlpars.dylib 0x2ab7619d nsParser::BuildModel() + 133 (nsParser.cpp:2127) 29 libhtmlpars.dylib 0x2ab7a024 nsParser::ResumeParse(int, int, int) + 236 (nsParser.cpp:1994) 30 libhtmlpars.dylib 0x2ab7677b nsParser::OnDataAvailable(nsIRequest*, nsISupports*, nsIInputStream*, unsigned, unsigned) + 383 (nsParser.cpp:2674) 31 libdocshell.dylib 0x19e71c35 nsDocumentOpenInfo::OnDataAvailable(nsIRequest*, nsISupports*, nsIInputStream*, unsigned, unsigned) + 117 (nsURILoader.cpp:374) 32 libnecko.dylib 0x1554d702 nsHTTPCompressConv::do_OnDataAvailable(nsIRequest*, nsISupports*, unsigned, char*, unsigned) + 382 (nsHTTPCompressConv.cpp:390) 33 libnecko.dylib 0x1554db51 nsHTTPCompressConv::OnDataAvailable(nsIRequest*, nsISupports*, nsIInputStream*, unsigned, unsigned) + 1017 (nsHTTPCompressConv.cpp: 313) 34 libnecko.dylib 0x15534109 nsStreamListenerTee::OnDataAvailable(nsIRequest*, nsISupports*, nsIInputStream*, unsigned, unsigned) + 621 (nsStreamListenerTee.cpp: 97) 35 libnecko.dylib 0x155aaddd nsHttpChannel::OnDataAvailable(nsIRequest*, nsISupports*, nsIInputStream*, unsigned, unsigned) + 547 (nsHttpChannel.cpp:4195) 36 libnecko.dylib 0x15510116 nsInputStreamPump::OnStateTransfer() + 492 (nsInputStreamPump.cpp:437) 37 libnecko.dylib 0x15510686 nsInputStreamPump::OnInputStreamReady(nsIAsyncInputStream*) + 114 (nsInputStreamPump.cpp:340) 38 libxpcom_core.dylib 0x010acc54 nsInputStreamReadyEvent::EventHandler(PLEvent*) + 102 (nsCOMPtr.h:713) 39 libxpcom_core.dylib 0x010657b8 PL_HandleEvent + 63 (plevent.c:688) 40 libxpcom_core.dylib 0x010656ab PL_ProcessPendingEvents + 179 (plevent.c:624) 41 libxpcom_core.dylib 0x010680af nsEventQueueImpl::ProcessPendingEvents() + 85 (nsEventQueue.cpp:421) 42 libwidget_gtk2.dylib 0x17566165 event_processor_callback(_GIOChannel*, GIOCondition, void*) + 21 (nsAppShell.cpp:71) 43 libglib-2.0.0.dylib 0x02b6ebdc g_main_context_dispatch + 498 (gmain.c:2061) 44 libglib-2.0.0.dylib 0x02b71f3f g_main_context_iterate + 1062 (gmain.c:2694) 45 libglib-2.0.0.dylib 0x02b722dd g_main_loop_run + 397 (gmain.c:2897) 46 libgtk-quartz-2.0.0.dylib 0x01c7bee9 gtk_main + 174 (gtkmain.c: 1001) 47 TestGtkEmbed 0x00003abf main + 407 (TestGtkEmbed.cpp: 249) 48 TestGtkEmbed 0x00001fa2 _start + 216 49 TestGtkEmbed 0x00001ec9 start + 41 ******************************************************************************************** I rebuilt the mozjs library, but the problem still persists. Can anyone suggest me why this problem occurs only on Intel not on PPC? _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
