Bug 1800857 Comment 20 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Could get a stack but not complete:
```
(gdb) bt
#0  0x00007fe4e8f7bbb2 in GetSpecialSystemDirectory(SystemDirectories, nsIFile**) () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#1  0x00007fe4e8f823fc in nsDirectoryService::GetFile(char const*, bool*, nsIFile**) () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#2  0x00007fe4e8f813c6 in FindProviderFile(nsIDirectoryServiceProvider*, FileData*) () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#3  0x00007fe4e8f811da in nsDirectoryService::Get(char const*, nsID const&, void**) () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#4  0x00007fe4e9039bdb in mozilla::Preferences::InitInitialObjects(bool) () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#5  0x00007fe4e9039296 in mozilla::Preferences::GetInstanceForService() () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#6  0x00007fe4e8fb5995 in mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**) () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#7  0x00007fe4e8fc7ff4 in nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::detail::BaseMonitorAutoLock<mozilla::Monitor> >&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#8  0x00007fe4e8fc8ccf in nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#9  0x00007fe4e8fcb949 in nsGetServiceByContractID::operator()(nsID const&, void**) const () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#10 0x00007fe4e8efabda in nsCOMPtr_base::assign_from_gs_contractid(nsGetServiceByContractID, nsID const&) () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#11 0x00007fe4e9082c3f in nsresult mozilla::Preferences::RegisterCallbackImpl<char const**>(void (*)(char const*, void*), char const**&, void*, mozilla::Preferences::MatchKind, bool) () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#12 0x00007fe4e9082abd in mozilla::Preferences::RegisterCallbacks(void (*)(char const*, void*), char const**, void*, mozilla::Preferences::MatchKind) () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#13 0x00007fe4e9288a5a in nsIDNService::Init() () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#14 0x00007fe4e8fb8e73 in mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**) () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#15 0x00007fe4e8fc7ff4 in nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::detail::BaseMonitorAutoLock<mozilla::Monitor> >&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#16 0x00007fe4e8fc8ccf in nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#17 0x00007fe4e8fcb949 in nsGetServiceByContractID::operator()(nsID const&, void**) const () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#18 0x00007fe4e8efabda in nsCOMPtr_base::assign_from_gs_contractid(nsGetServiceByContractID, nsID const&) () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#19 0x00007fe4e91d7886 in mozilla::net::nsStandardURL::InitGlobalObjects() () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#20 0x00007fe4e9a9abe1 in nsNetStartup() () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#21 0x00007fe4e8faea2b in mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**) () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#22 0x00007fe4e8fc7ff4 in nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::detail::BaseMonitorAutoLock<mozilla::Monitor> >&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#23 0x00007fe4e8fc8ccf in nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#24 0x00007fe4e9e48252 in nsScriptSecurityManager::Init() () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#25 0x00007fe4e9e48758 in nsScriptSecurityManager::InitStatics() () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#26 0x00007fe4e9cf4e50 in nsXPConnect::InitStatics() () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#27 0x00007fe4e9cc3331 in xpcModuleCtor() () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#28 0x00007fe4edba7c11 in nsLayoutModuleInitialize() () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#29 0x00007fe4e8fc54c3 in nsComponentManagerImpl::Init() () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#30 0x00007fe4e902b6f3 in NS_InitXPCOM () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#31 0x00007fe4e9cd6d6a in XRE_XPCShellMain(int, char**, char**, XREShellData const*) () from /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/toolkit/library/build/libxul.so
#32 0x000055efff56707f in main (argc=3, argv=0x7ffc449ebda8, envp=0x7fe4e475a100) at /root/parts/firefox/build/js/xpconnect/shell/xpcshell.cpp:81
Looks like the stack is better once analyzed outside of the snapcraft builder?:
```
(gdb) bt
#0  GetUnixSystemConfigDir (aFile=0x7ffc449eab10) at /root/parts/firefox/build/xpcom/io/SpecialSystemDirectory.cpp:196
#1  GetSpecialSystemDirectory (aSystemSystemDirectory=Unix_SystemConfigDirectory, aFile=0x7ffc449eab10) at /root/parts/firefox/build/xpcom/io/SpecialSystemDirectory.cpp:671
#2  0x00007fe4e8f823fc in nsDirectoryService::GetFile (this=<optimized out>, aProp=<optimized out>, aPersistent=0x7ffc449eabe0, aResult=0x7ffc449eabd8) at /root/parts/firefox/build/xpcom/io/nsDirectoryService.cpp:370
#3  0x00007fe4e8f813c6 in FindProviderFile (aElement=aElement@entry=0x7fe4e478ab10, aData=aData@entry=0x7ffc449eabd0) at /root/parts/firefox/build/xpcom/io/nsDirectoryService.cpp:175
#4  0x00007fe4e8f811da in nsDirectoryService::Get (this=0x7fe4e478ab00, aProp=0x7fe4f1792b81 "SysConfD", aUuid=..., aResult=0x7ffc449eaca8) at /root/parts/firefox/build/xpcom/io/nsDirectoryService.cpp:220
#5  0x00007fe4e9039bdb in NS_GetSpecialDirectory (aResult=0x7ffc449eaca8, aSpecialDirName=<optimized out>) at /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/dist/include/nsDirectoryServiceUtils.h:25
#6  mozilla::Preferences::InitInitialObjects (aIsStartup=false) at /root/parts/firefox/build/modules/libpref/Preferences.cpp:4865
#7  0x00007fe4e9039296 in mozilla::Preferences::GetInstanceForService () at /root/parts/firefox/build/modules/libpref/Preferences.cpp:3566
#8  0x00007fe4e8fb5995 in mozilla::xpcom::CreateInstanceImpl (aID=53376, aIID=..., aResult=0x7ffc449eae98) at StaticComponents.cpp:10432
#9  0x00007fe4e8fc7ff4 in (anonymous namespace)::EntryWrapper::CreateInstance (this=0x7ffc449eafe8, aIID=..., aResult=0x7ffc449eae98) at /root/parts/firefox/build/xpcom/components/nsComponentManager.cpp:184
#10 nsComponentManagerImpl::GetServiceLocked (this=this@entry=0x7fe4e470d000, aLock=..., aEntry=..., aIID=..., aResult=aResult@entry=0x7ffc449eb068) at /root/parts/firefox/build/xpcom/components/nsComponentManager.cpp:975
#11 0x00007fe4e8fc8ccf in nsComponentManagerImpl::GetServiceByContractID (this=0x7fe4e470d000, aContractID=0x7fe4f17929ed "@mozilla.org/preferences-service;1", aIID=..., aResult=aResult@entry=0x7ffc449eb068) at /root/parts/firefox/build/xpcom/components/nsComponentManager.cpp:1164
#12 0x00007fe4e8fcb949 in CallGetService (aContractID=0x3 <error: Cannot access memory at address 0x3>, aIID=..., aResult=<optimized out>) at /root/parts/firefox/build/xpcom/components/nsComponentManagerUtils.cpp:61
#13 nsGetServiceByContractID::operator() (this=0x7fe4f178cfef, aIID=..., aInstancePtr=0x7ffc449eb068) at /root/parts/firefox/build/xpcom/components/nsComponentManagerUtils.cpp:240
#14 0x00007fe4e8efabda in nsCOMPtr_base::assign_from_gs_contractid (this=0x7ffc449eb0b8, aGS=..., aIID=...) at /root/parts/firefox/build/xpcom/base/nsCOMPtr.cpp:82
#15 0x00007fe4e9082c3f in nsCOMPtr<nsIPrefService>::nsCOMPtr (this=0x7ffc449eb0b8, aGS=...) at /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/dist/include/nsCOMPtr.h:627
#16 mozilla::Preferences::InitStaticMembers () at /root/parts/firefox/build/modules/libpref/Preferences.cpp:3648
#17 mozilla::Preferences::RegisterCallbackImpl<char const**> (aCallback=0x7fe4e9288ae0 <nsIDNService::PrefChanged(char const*, void*)>, aPrefNode=@0x7ffc449eb100: 0x7fe4f6df1f90 <gCallbackPrefs>, aData=0x7fe4e47511c0, aMatchKind=mozilla::Preferences::PrefixMatch, aIsPriority=false) at /root/parts/firefox/build/modules/libpref/Preferences.cpp:5383
#18 0x00007fe4e9082abd in mozilla::Preferences::RegisterCallbacks (aCallback=0x7fe4e470d080, aPrefs=0x7fe4f6df1f90 <gCallbackPrefs>, aData=0x3, aMatchKind=(unknown: 0xff6da240)) at /root/parts/firefox/build/modules/libpref/Preferences.cpp:5420
#19 0x00007fe4e9288a5a in mozilla::Preferences::RegisterPrefixCallbacks<nsIDNService> (aCallback=0x7fe4e470d080, aPrefs=0x3, aClosure=0x7fe4e47511c0) at /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/dist/include/mozilla/Preferences.h:344
#20 nsIDNService::Init (this=0x7fe4e47511c0) at /root/parts/firefox/build/netwerk/dns/nsIDNService.cpp:95
#21 0x00007fe4e8fb8e73 in mozilla::xpcom::CreateInstanceImpl (aID=<optimized out>, aIID=..., aResult=0x7ffc449eb1d8) at StaticComponents.cpp:9370
#22 0x00007fe4e8fc7ff4 in (anonymous namespace)::EntryWrapper::CreateInstance (this=0x7ffc449eb328, aIID=..., aResult=0x7ffc449eb1d8) at /root/parts/firefox/build/xpcom/components/nsComponentManager.cpp:184
#23 nsComponentManagerImpl::GetServiceLocked (this=this@entry=0x7fe4e470d000, aLock=..., aEntry=..., aIID=..., aResult=aResult@entry=0x7ffc449eb3a8) at /root/parts/firefox/build/xpcom/components/nsComponentManager.cpp:975
#24 0x00007fe4e8fc8ccf in nsComponentManagerImpl::GetServiceByContractID (this=0x7fe4e470d000, aContractID=0x7fe4f17adba3 "@mozilla.org/network/idn-service;1", aIID=..., aResult=aResult@entry=0x7ffc449eb3a8) at /root/parts/firefox/build/xpcom/components/nsComponentManager.cpp:1164
#25 0x00007fe4e8fcb949 in CallGetService (aContractID=0x3 <error: Cannot access memory at address 0x3>, aIID=..., aResult=<optimized out>) at /root/parts/firefox/build/xpcom/components/nsComponentManagerUtils.cpp:61
#26 nsGetServiceByContractID::operator() (this=0x7fe4f178cfef, aIID=..., aInstancePtr=0x7ffc449eb3a8) at /root/parts/firefox/build/xpcom/components/nsComponentManagerUtils.cpp:240
#27 0x00007fe4e8efabda in nsCOMPtr_base::assign_from_gs_contractid (this=0x7ffc449eb3e8, aGS=..., aIID=...) at /root/parts/firefox/build/xpcom/base/nsCOMPtr.cpp:82
#28 0x00007fe4e91d7886 in nsCOMPtr<nsIIDNService>::nsCOMPtr (this=0x7ffc449eb3e8, aGS=...) at /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/dist/include/nsCOMPtr.h:627
#29 mozilla::net::nsStandardURL::InitGlobalObjects () at /root/parts/firefox/build/netwerk/base/nsStandardURL.cpp:343
#30 0x00007fe4e9a9abe1 in nsNetStartup () at /root/parts/firefox/build/netwerk/build/nsNetModule.cpp:215
#31 0x00007fe4e8faea2b in mozilla::xpcom::CallInitFunc (aIdx=3) at StaticComponents.cpp:9101
#32 mozilla::xpcom::CreateInstanceImpl (aID=53376, aIID=..., aResult=0x7ffc449eb4c8) at StaticComponents.cpp:11849
#33 0x00007fe4e8fc7ff4 in (anonymous namespace)::EntryWrapper::CreateInstance (this=0x7ffc449eb618, aIID=..., aResult=0x7ffc449eb4c8) at /root/parts/firefox/build/xpcom/components/nsComponentManager.cpp:184
#34 nsComponentManagerImpl::GetServiceLocked (this=this@entry=0x7fe4e470d000, aLock=..., aEntry=..., aIID=..., aResult=aResult@entry=0x7fe4f94d4ed8 <nsScriptSecurityManager::sIOService>) at /root/parts/firefox/build/xpcom/components/nsComponentManager.cpp:975
#35 0x00007fe4e8fc8ccf in nsComponentManagerImpl::GetServiceByContractID (this=0x7fe4e470d000, aContractID=0x7fe4f1791fb0 "@mozilla.org/network/io-service;1", aIID=..., aResult=0x7fe4f94d4ed8 <nsScriptSecurityManager::sIOService>) at /root/parts/firefox/build/xpcom/components/nsComponentManager.cpp:1164
#36 0x00007fe4e8fcb48f in CallGetService (aContractID=0x3 <error: Cannot access memory at address 0x3>, aIID=..., aResult=0x55efff6da240 <gMozCrashReason>) at /root/parts/firefox/build/xpcom/components/nsComponentManagerUtils.cpp:61
#37 0x00007fe4e9e48252 in CallGetService<nsIIOService> (aContractID=0x7fe4e470d080 "", aDestination=0x3) at /root/parts/firefox/build/obj-x86_64-pc-linux-gnu/instrumented/dist/include/nsServiceManagerUtils.h:52
#38 nsScriptSecurityManager::Init (this=this@entry=0x7fe4e478be80) at /root/parts/firefox/build/caps/nsScriptSecurityManager.cpp:1551
#39 0x00007fe4e9e48758 in nsScriptSecurityManager::InitStatics () at /root/parts/firefox/build/caps/nsScriptSecurityManager.cpp:1612
#40 0x00007fe4e9cf4e50 in nsXPConnect::InitStatics () at /root/parts/firefox/build/js/xpconnect/src/nsXPConnect.cpp:161
#41 0x00007fe4e9cc3331 in xpcModuleCtor () at /root/parts/firefox/build/js/xpconnect/src/XPCModule.cpp:11
#42 0x00007fe4edba7c11 in nsLayoutModuleInitialize () at /root/parts/firefox/build/layout/build/nsLayoutModule.cpp:100
#43 0x00007fe4e8fc54c3 in nsComponentManagerImpl::Init (this=0x7fe4e470d000) at /root/parts/firefox/build/xpcom/components/nsComponentManager.cpp:371
#44 0x00007fe4e902b6f3 in NS_InitXPCOM (aResult=0x0, aBinDirectory=0x7fe4e477b9d0, aAppFileLocationProvider=<optimized out>, aInitJSContext=false) at /root/parts/firefox/build/xpcom/build/XPCOMInit.cpp:421
#45 0x00007fe4e9cd6d6a in XRE_XPCShellMain (argc=3, argv=0x7ffc449ebda8, envp=<optimized out>, aShellData=<optimized out>) at /root/parts/firefox/build/js/xpconnect/src/XPCShellImpl.cpp:1216
#46 0x000055efff56707f in main (argc=3, argv=0x7ffc449ebda8, envp=0x7fe4e475a100) at /root/parts/firefox/build/js/xpconnect/shell/xpcshell.cpp:81
```

Back to Bug 1800857 Comment 20