pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: firefox 58.0 "Gah. Your tab just crashed"



> OK, my firefox is now 58.0.1, built with debug-info, installed
> without strip, transported to another machine and installed
> there.
>
> Of course it doesn't exactly behave the same way...

But now I have a "Your tab just crashed" core dump, and it looks
like this:


% gdb /usr/pkg/lib/firefox/firefox firefox.core
GNU gdb (GDB) 7.12
Copyright (C) 2016 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 "x86_64--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/pkg/lib/firefox/firefox...done.
[New process 1]
[New process 12]
[New process 11]
[New process 10]
[New process 9]
[New process 8]
[New process 7]
[New process 6]
[New process 5]
[New process 4]
[New process 3]
[New process 2]
Core was generated by `firefox'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  nsXPConnect::InitStatics ()
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/js/xpconnect/src/nsXPConnect.cpp:136
136     /usr/pkgsrc/www/firefox/work/firefox-58.0.1/js/xpconnect/src/nsXPConnect.cpp: No such file or directory.
[Current thread is 1 (LWP 1)]
(gdb) where
#0  nsXPConnect::InitStatics ()
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/js/xpconnect/src/nsXPConnect.cpp:136
#1  0x00007b830ff5a7e3 in xpcModuleCtor ()
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/js/xpconnect/src/XPCModule.cpp:13
#2  0x00007b83115b260f in Initialize ()
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/layout/build/nsLayoutModule.cpp:316
#3  0x00007b830f99c67e in nsComponentManagerImpl::KnownModule::Load (
    this=0x7b8321b2e800)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/xpcom/components/nsComponentManager.cpp:763
#4  0x00007b830f99cd5d in nsFactoryEntry::GetFactory (this=0x7b8321b35b20)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/xpcom/components/nsComponentManager.cpp:1785
#5  0x00007b830f99d2b0 in nsComponentManagerImpl::CreateInstanceByContractID (
    this=<optimized out>, 
    aContractID=0x7b83130e5870 "@mozilla.org/scripterror;1", 
    aDelegate=aDelegate@entry=0x0, aIID=..., 
    aResult=aResult@entry=0x7f7fff1e9288)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/xpcom/components/nsComponentManager.cpp:1083
#6  0x00007b830f99d4a4 in nsComponentManagerImpl::CreateInstanceByContractID (
    aResult=0x7f7fff1e9288, aIID=..., aDelegate=0x0, 
    aContractID=<optimized out>, this=<optimized out>)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/xpcom/components/nsComponentManager.cpp:1059
#7  CallCreateInstance (aContractID=<optimized out>, 
    aDelegate=aDelegate@entry=0x0, aIID=..., 
    aResult=aResult@entry=0x7f7fff1e9288)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/xpcom/components/nsComponentManagerUtils.cpp:151
#8  0x00007b830f99d4d3 in nsCreateInstanceByContractID::operator() (
    this=0x7f7fff1e93b0, aIID=..., aInstancePtr=0x7f7fff1e9288)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/xpcom/components/nsComponentManagerUtils.cpp:197
#9  0x00007b830f95c3fe in nsCOMPtr_base::assign_from_helper (
    this=this@entry=0x7f7fff1e92d0, aHelper=..., aIID=...)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/xpcom/base/nsCOMPtr.cpp:128
#10 0x00007b830f99dfff in nsCOMPtr<nsIScriptError>::nsCOMPtr (aHelper=..., 
    this=0x7f7fff1e92d0)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/xpcom/base/nsCOMPtr.h:605
#11 LogMessageWithContext (aFile=..., aLineNumber=aLineNumber@entry=164, 
    aMsg=aMsg@entry=0x7b83130e9158 "Could not map contract ID '%s' to CID %s because no implementation of the CID is registered.")
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/xpcom/components/ManifestParser.cpp:190
#12 0x00007b830f99e7fd in nsComponentManagerImpl::ManifestContract (
    this=0x7b83227f4070, aCx=..., aLineNo=<optimized out>, 
    aArgv=<optimized out>)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/xpcom/components/nsComponentManager.cpp:697
#13 0x00007b830f9a0839 in ParseManifest (aType=aType@entry=NS_APP_LOCATION, 
    aFile=..., aBuf=<optimized out>, aChromeOnly=aChromeOnly@entry=false, 
    aXPTOnly=aXPTOnly@entry=false)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/xpcom/components/ManifestParser.cpp:779
#14 0x00007b830f9a1430 in DoRegisterManifest (aType=NS_APP_LOCATION, 
    aFile=..., aChromeOnly=<optimized out>, aXPTOnly=false)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/xpcom/components/nsComponentManager.cpp:547
#15 0x00007b830f9a1c51 in nsComponentManagerImpl::RegisterManifest (
---Type <return> to continue, or q <return> to quit---
    aChromeOnly=<optimized out>, aFile=..., aType=<optimized out>, 
    this=<optimized out>)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/xpcom/components/nsComponentManager.cpp:560
#16 nsComponentManagerImpl::ManifestManifest (this=<optimized out>, aCx=..., 
    aLineNo=<optimized out>, aArgv=<optimized out>)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/xpcom/components/nsComponentManager.cpp:569
#17 0x00007b830f9a11f6 in ParseManifest (aType=aType@entry=NS_APP_LOCATION, 
    aFile=..., aBuf=<optimized out>, aChromeOnly=aChromeOnly@entry=false, 
    aXPTOnly=aXPTOnly@entry=false)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/xpcom/components/ManifestParser.cpp:770
#18 0x00007b830f9a1430 in DoRegisterManifest (aType=NS_APP_LOCATION, 
    aFile=..., aChromeOnly=aChromeOnly@entry=false, aXPTOnly=false)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/xpcom/components/nsComponentManager.cpp:547
#19 0x00007b830f9a1788 in nsComponentManagerImpl::RegisterManifest (
    aChromeOnly=false, aFile=..., aType=<optimized out>, this=<optimized out>)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/xpcom/components/nsComponentManager.cpp:560
#20 nsComponentManagerImpl::RereadChromeManifests (this=<optimized out>, 
    aChromeOnly=false)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/xpcom/components/nsComponentManager.cpp:721
#21 0x00007b830f9a1be8 in nsComponentManagerImpl::Init (this=0x7b83227f4070)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/xpcom/components/nsComponentManager.cpp:352
#22 0x00007b830f9c54d8 in NS_InitXPCOM2 (aResult=0x0, 
    aBinDirectory=<optimized out>, aAppFileLocationProvider=<optimized out>)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/xpcom/build/XPCOMInit.cpp:681
#23 0x00007b830f9c57a7 in NS_InitXPCOM2 (aResult=aResult@entry=0x0, 
    aBinDirectory=aBinDirectory@entry=0x7b8322749240, 
    aAppFileLocationProvider=<optimized out>)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/xpcom/build/XPCOMInit.cpp:741
#24 0x00007b8311b62f8c in XRE_InitEmbedding2 (aLibXULDirectory=0x7b8322749780, 
    aAppDirectory=0x7b8322749240, aAppDirProvider=0x0)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/toolkit/xre/nsEmbedFunctions.cpp:187
#25 0x00007b830fbd6cda in mozilla::ipc::ScopedXREEmbed::Start (
    this=this@entry=0x7b8322722828)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/ipc/glue/ScopedXREEmbed.cpp:97
#26 0x00007b8310f52629 in mozilla::dom::ContentProcess::Init (
    this=0x7b8322722000, aArgc=<optimized out>, aArgv=<optimized out>)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/dom/ipc/ContentProcess.cpp:244
#27 0x00007b8311b634f5 in XRE_InitChildProcess (aArgc=15, 
    aArgv=0x7f7fff1eadb0, aChildData=<optimized out>)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/toolkit/xre/nsEmbedFunctions.cpp:671
#28 0x0000000054c05ad9 in content_process_main (bootstrap=0x7b8322723660, 
    argc=16, argv=0x7f7fff1eadb0)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/browser/app/../../ipc/contentproc/plugin-container.cpp:63
#29 0x0000000054c19513 in content_process_main (argv=0x7f7fff1eadb0, argc=17, 
    bootstrap=<optimized out>)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/browser/app/nsBrowserApp.cpp:276
#30 main (argc=17, argv=0x7f7fff1eadb0, envp=0x7f7fff1eae40)
    at /usr/pkgsrc/www/firefox/work/firefox-58.0.1/browser/app/nsBrowserApp.cpp:---Type <return> to continue, or q <return> to quit---
280
(gdb) 

The are around line 136 of js/xpconnect/src/nsXPConnect.cpp is:


// static
void
nsXPConnect::InitStatics()
{
    gSelf = new nsXPConnect();
    gOnceAliveNowDead = false;

    // Initial extra ref to keep the singleton alive
    // balanced by explicit call to ReleaseXPConnectSingleton()
    NS_ADDREF(gSelf);

    // Fire up the SSM.
    nsScriptSecurityManager::InitStatics();
    gScriptSecurityManager = nsScriptSecurityManager::GetScriptSecurityManager();
    gScriptSecurityManager->GetSystemPrincipal(&gSystemPrincipal);
    MOZ_RELEASE_ASSERT(gSystemPrincipal);

    JSContext* cx = XPCJSContext::Get()->Context();
    if (!JS::InitSelfHostedCode(cx))
        MOZ_CRASH("InitSelfHostedCode failed");
    if (!gSelf->mRuntime->InitializeStrings(cx))
        MOZ_CRASH("InitializeStrings failed");

    // Initialize our singleton scopes.
    gSelf->mRuntime->InitSingletonScopes();
}

and line 136 is the first MOZ_CRASH() call.

Hints?

Regards,

- Håvard


Home | Main Index | Thread Index | Old Index