Closed Bug 773790 Opened 12 years ago Closed 6 years ago

widget/gonk/nsWindow.cpp declares a global XPCOM object

Categories

(Core Graveyard :: Widget: Gonk, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: dhylands, Unassigned)

Details

I observed the warning on my b2g otoro phone:
WARNING: XPCOM objects created/destroyed from static ctor/dtor: file /home/work/B2G-otoro/gecko/xpcom/base/nsTraceRefcntImpl.cpp, line 141

I ran it under gdb and got the following backtrace:

#0  AssertActivityIsLegal () at /home/work/B2G-otoro/gecko/xpcom/base/nsTraceRefcntImpl.cpp:141
#1  0x411e3572 in NS_LogCtor_P (aPtr=0x0, aType=0x12820 "", aInstanceSize=28) at /home/work/B2G-otoro/gecko/xpcom/base/nsTraceRefcntImpl.cpp:1080
#2  0x40fe8066 in nsTArray_base () at ../../dist/include/nsTArray-inl.h:14
#3  nsTArray () at ../../dist/include/nsTArray.h:436
#4  __static_initialization_and_destruction_0 () at /home/work/B2G-otoro/gecko/widget/gonk/nsWindow.cpp:46
#5  global constructors keyed to nsWindow.cpp () at /home/work/B2G-otoro/gecko/widget/gonk/nsWindow.cpp:778
#6  0xb0001156 in call_array (ctor=0x41d9421c, count=75808, reverse=<value optimized out>) at bionic/linker/linker.c:1589
#7  0xb0001dc6 in call_constructors (si=0xb000b660, wr_offset=<value optimized out>) at bionic/linker/linker.c:1619
#8  __dl_$t (si=0xb000b660, wr_offset=<value optimized out>) at bionic/linker/linker.c:2013
#9  0xb00028a4 in init_library (name=<value optimized out>) at bionic/linker/linker.c:1169
#10 find_library (name=<value optimized out>) at bionic/linker/linker.c:1212
#11 0xb00031a2 in dlopen (filename=0xbe984ad8 "/system/b2g/libxul.so", flag=<value optimized out>) at bionic/linker/dlfcn.c:59
#12 0x00009abe in ReadDependentCB (aDependentLib=0x0, do_preload=<value optimized out>) at /home/work/B2G-otoro/gecko/xpcom/glue/standalone/nsGlueLinkingDlopen.cpp:191
#13 0x00009888 in XPCOMGlueLoadDependentLibs (xpcomDir=0xbe986b00 "/system/b2g", cb=0x9ab5 <ReadDependentCB>) at /home/work/B2G-otoro/gecko/xpcom/glue/standalone/nsXPCOMGlue.cpp:106
#14 0x00009a04 in XPCOMGlueLoad (xpcomFile=0xbe988b44 "/system/b2g/libxpcom.so", func=0xbe987b24) at /home/work/B2G-otoro/gecko/xpcom/glue/standalone/nsGlueLinkingDlopen.cpp:207
#15 0x000098ea in XPCOMGlueStartup (xpcomFile=0x0) at /home/work/B2G-otoro/gecko/xpcom/glue/standalone/nsXPCOMGlue.cpp:45
#16 0x0000892a in main (argc=1, argv=0xbe989c24) at /home/work/B2G-otoro/gecko/b2g/app/nsBrowserApp.cpp:191

nsWindow.cpp:46 corresponds to the line:
static nsTArray<nsWindow *> sTopWindows;
Closing as we are not working on Firefox OS anymore.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.