[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #9829 [Tor bundles/installation]: Firefox ESR 24 does need a newer compiler than gcc 4.2



#9829: Firefox ESR 24 does need a newer compiler than gcc 4.2
------------------------------------------+-------------------------------
     Reporter:  gk                        |      Owner:  erinn
         Type:  defect                    |     Status:  new
     Priority:  normal                    |  Milestone:
    Component:  Tor bundles/installation  |    Version:
   Resolution:                            |   Keywords:  tbb-3.0, ff24-esr
Actual Points:                            |  Parent ID:  #10103
       Points:                            |
------------------------------------------+-------------------------------

Comment (by mingwandroid):

 Builds using 64bit host (and 32bit target still) crash in the same place
 as Mac10_6_crash, so it's good that we're consistent.

 From Mac10_6_crash:
 {{{
 Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
 0   XUL 0x0b4318b7 JSAutoCompartment::JSAutoCompartment(JSContext*,
 JSObject*) + 23
 1   ???                                 0x00167200 0 + 1470976
 2   ???                                 0x00167200 0 + 1470976
 }}}

 .. enabling a debug build we get a bit more info:
 {{{
 Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
 0   XUL 0x0527d61d js::EncapsulatedPtr<js::Shape, unsigned long>::operator
 js::Shape*() const + 13
 1   XUL 0x0527cf07 js::ObjectImpl::lastProperty() const + 39
 2   XUL 0x05278127 js::ObjectImpl::compartment() const + 23
 3   XUL 0x05252d11 JSAutoCompartment::JSAutoCompartment(JSContext*,
 JSObject*) + 81
 4   XUL 0x05252cb1 JSAutoCompartment::JSAutoCompartment(JSContext*,
 JSObject*) + 49
 5   XUL 0x02f65e93
 _ZL24NativeInterface2JSObjectN2JS6HandleIP8JSObjectEEP11nsISupportsP14nsWrapperCachePK4nsIDbPNS_5ValueEPP26nsIXPConnectJSObjectHolder
 + 211
 6   XUL 0x02f6627e nsXPConnect::WrapNativeToJSVal(JSContext*, JSObject*,
 nsISupports*, nsWrapperCache*, nsID const*, bool, JS::Value*,
 nsIXPConnectJSObjectHolder**) + 574
 7   XUL 0x02f8c143 xpc::WrapperFactory::PrepareForWrapping(JSContext*,
 JS::Handle<JSObject*>, JS::Handle<JSObject*>, unsigned int) + 4051
 8   XUL 0x052e20bc JSCompartment::wrap(JSContext*,
 JS::MutableHandle<JS::Value>, JS::Handle<JSObject*>) + 2092
 9   XUL 0x052d6b3f JSContext::wrapPendingException() + 223
 10  XUL 0x05278109 JSContext::enterCompartment(JSCompartment*) + 89
 11  XUL 0x05290e24 js::AutoCompartment::AutoCompartment(JSContext*,
 JSCompartment*) + 68
 12  XUL 0x0527aec1 js::AutoCompartment::AutoCompartment(JSContext*,
 JSCompartment*) + 49
 13  XUL 0x0525a660 JS_NewGlobalObject(JSContext*, JSClass*, JSPrincipals*,
 JS::CompartmentOptions const&) + 544
 14  XUL 0x02f64e2f xpc::CreateGlobalObject(JSContext*, JSClass*,
 nsIPrincipal*, JS::CompartmentOptions&) + 383
 15  XUL 0x02f089c7 XPCWrappedNative::WrapNewGlobal(xpcObjectHelper&,
 nsIPrincipal*, bool, JS::CompartmentOptions&, XPCWrappedNative**) + 919
 16  XUL 0x02f6563d
 nsXPConnect::InitClassesWithNewWrappedGlobal(JSContext*, nsISupports*,
 nsIPrincipal*, unsigned int, JS::CompartmentOptions&,
 nsIXPConnectJSObjectHolder**) + 781
 17  XUL 0x02f73904
 mozJSComponentLoader::PrepareObjectForLocation(JSCLContextHelper&,
 nsIFile*, nsIURI*, bool, bool*) + 1028
 18  XUL 0x02f70ef2 mozJSComponentLoader::ObjectForLocation(nsIFile*,
 nsIURI*, JSObject**, char**, bool, JS::MutableHandle<JS::Value>) + 306
 19  XUL 0x02f70332
 mozJSComponentLoader::LoadModule(mozilla::FileLocation&) + 866
 20  XUL 0x043d2777 nsComponentManagerImpl::KnownModule::Load() + 119
 21  XUL 0x043d3360 nsFactoryEntry::GetFactory() + 144
 22  XUL 0x043d3ef9 nsComponentManagerImpl::CreateInstanceByContractID(char
 const*, nsISupports*, nsID const&, void**) + 313
 23  XUL 0x043cf385 nsComponentManagerImpl::GetServiceByContractID(char
 const*, nsID const&, void**) + 1301
 24  XUL 0x043300a3 CallGetService(char const*, nsID const&, void**) + 195
 25  XUL 0x0433083b nsGetServiceByContractID::operator()(nsID const&,
 void**) const + 43
 26  XUL 0x0432da79
 nsCOMPtr_base::assign_from_gs_contractid(nsGetServiceByContractID, nsID
 const&) + 41
 27  XUL 0x043490a9
 nsCOMPtr<nsISupports>::nsCOMPtr(nsGetServiceByContractID) + 89
 28  XUL 0x04348a40
 nsCOMPtr<nsISupports>::nsCOMPtr(nsGetServiceByContractID) + 32
 29  XUL 0x043cbf4d NS_CreateServicesFromCategory(char const*,
 nsISupports*, char const*) + 957
 30  XUL 0x0102fe2f nsXREDirProvider::DoStartup() + 991
 31  XUL 0x01019a2b XREMain::XRE_mainRun() + 3131
 32  XUL 0x0101ae40 XREMain::XRE_main(int, char**, nsXREAppData const*) +
 768
 33  XUL 0x0101b2ac XRE_main + 108
 }}}
 .. but actually the best clue comes from the console output from a debug
 build:
 {{{
 WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80520012: file
 /home/ray/tbb-work/mozilla-
 esr24.dbg/js/xpconnect/loader/mozJSComponentLoader.cpp, line 953
 System JS : ERROR
 resource://gre/modules/osfile/osfile_shared_allthreads.jsm:30
                      NS_ERROR_FILE_NOT_FOUND: Component returned failure
 code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIXPCComponents_Utils.import]
 WARNING: Cannot create startup observer :
 service,@mozilla.org/datareporting/service;1: file /home/ray/tbb-work
 /mozilla-
 esr24.dbg/embedding/components/appstartup/src/nsAppStartupNotifier.cpp,
 line 81
 WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80520012: file
 /home/ray/tbb-work/mozilla-
 esr24.dbg/js/xpconnect/loader/mozJSComponentLoader.cpp, line 953
 System JS : ERROR
 resource://gre/modules/osfile/osfile_shared_allthreads.jsm:30
                      NS_ERROR_FILE_NOT_FOUND: Component returned failure
 code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIXPCComponents_Utils.import]
 WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80520012: file
 /home/ray/tbb-work/mozilla-
 esr24.dbg/js/xpconnect/loader/mozJSComponentLoader.cpp, line 953
 ###!!! ASSERTION: bad param: 'aScopeArg', file /home/ray/tbb-work/mozilla-
 esr24.dbg/js/xpconnect/src/nsXPConnect.cpp, line 613
 }}}

 unzipping omni.ja, and looking at
 modules/osfile/osfile_shared_allthreads.jsm:30 we have:
 {{{
      if (typeof Components != "undefined") {
        const Cu = Components.utils;
        Cu.import("resource://gre/modules/ctypes.jsm");  // <---- This is
 line 30.
        Components.classes["@mozilla.org/net/osfileconstantsservice;1"].
 getService(Components.interfaces.nsIOSFileConstantsService).init();

        if (typeof exports.OS.Shared.DEBUG !== "undefined") {
          return; // Avoid reading and attaching an observer more than
 once.
        }
 }}}
 .. so my theory is that the crash is because of the following line in
 .mozconfig:
 {{{
 #
 # Compiling libffi is currently broken. Although we should try with
 # --enable-system-ffi and again as we now have the headers installed...
 ac_add_options --disable-ctypes
 }}}
 .. now whether disabling ctypes is something that should work or not is
 something I've got no idea about, but I'm going to investigate what
 happens if I enable ctypes by removing this option.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/9829#comment:65>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs