GDB - Gecko and Freescale device

Jose Vidal <[email protected]>
Newsgroups gmane.comp.mozilla.devel.layout
Message-ID <[email protected]>
Hi everyone,

I'm to porting B2G in freescale device (FirefoxOS).

I don't have knowledge about the gecko.

I have some problems when I try porting B2G, this is the last GDB trace:

>>>>>>>>>>>>>>>>>>>>>>>>

Remote debugging from host 127.0.0.1
__dl__start () at bionic/linker/arch/arm/begin.S:35
35		mov	r0, sp
(gdb) c
Continuing.
Loading JavaScript value pretty-printers; see js/src/gdb/README.
If they cause trouble, type: disable pretty-printer .* SpiderMonkey
1397058225460	Marionette	INFO	marionette enabled via build flag and pref
[New Thread 3581.3597]
1397058227742	Marionette	INFO	marionette-server.js loaded
1397058227925	Marionette	INFO	B2G emulator: no
1397058227926	Marionette	INFO	Device detected is var_som_mx6q
1397058227927	Marionette	INFO	Listening on port 2828

1397058227928	Marionette	INFO	Marionette server ready
System JS : ERROR jar:file:///system/b2g/omni.ja!/components/SettingsService.js:119 - NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsISettingsServiceCallback.handle]
###################################### forms.js loaded
############################### browserElementPanning.js loaded
######################## BrowserElementChildPreload.js loaded
*** UTM:SVC TimerManager:registerTimer - id: user-agent-updates-timer
Crash reporter : Can't fetch app.reportCrashes. Exception: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getBoolPref]"  nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)"  location: "JS frame :: chrome://b2g/content/shell.js :: shell_reportCrash :: line 141"  data: no][New Thread 3581.3605]
WARNING: generic atexit() called from legacy shared library
XXX FIXME : Got a mozContentEvent: system-message-listener-ready
###################################### forms.js loaded
############################### browserElementPanning.js loaded
######################## BrowserElementChildPreload.js loaded
XXX FIXME : Got a mozContentEvent: nfc-hardware-state-change

Program received signal SIGSEGV, Segmentation fault.
0x42a81290 in ?? ()
   from /home/jvidal/Projects/imx_fos102/B2G/out/target/product/var_som_mx6q/system/lib/libGAL.so
(gdb) bt
#0  0x42a81290 in ?? ()
   from /home/jvidal/Projects/imx_fos102/B2G/out/target/product/var_som_mx6q/system/lib/libGAL.so
#1  0x42a823a6 in gcoSURF_Unlock ()
   from /home/jvidal/Projects/imx_fos102/B2G/out/target/product/var_som_mx6q/system/lib/libGAL.so
#2  0x42a57498 in gc_gralloc_unregister_buffer(gralloc_module_t const*, native_handle const*) ()
   from /home/jvidal/Projects/imx_fos102/B2G/out/target/product/var_som_mx6q/system/lib/hw/gralloc_viv.imx6.so
#3  0x4002e5d8 in gralloc_unregister_buffer (module=<optimized out>, handle=
    0x512bbf00) at hardware/imx/mx6/libgralloc_wrapper/mapper.cpp:90
#4  0x4014e4ae in android::GraphicBufferMapper::unregisterBuffer (this=
    0x4041812c, handle=0x512bbf00)
    at frameworks/native/libs/ui/GraphicBufferMapper.cpp:66
#5  0x4014d6b8 in android::GraphicBuffer::free_handle (this=0x512bba80)
    at frameworks/native/libs/ui/GraphicBuffer.cpp:101
#6  0x4014d7ce in android::GraphicBuffer::~GraphicBuffer (this=0x512bba80, 
    __in_chrg=<optimized out>)
    at frameworks/native/libs/ui/GraphicBuffer.cpp:94
#7  0x4014d7ec in android::GraphicBuffer::~GraphicBuffer (this=0x512bba80, 
    __in_chrg=<optimized out>)
    at frameworks/native/libs/ui/GraphicBuffer.cpp:96
---Type <return> to continue, or q <return> to quit---
#8  0x40f5b0c8 in decStrong (this=0x512bbae4, id=<optimized out>)
    at ../../../frameworks/native/include/utils/RefBase.h:173
#9  decStrong (this=0x512bba84, id=<optimized out>)
    at ../../../frameworks/native/include/ui/ANativeObjectBase.h:66
#10 ~sp (this=0xbef89824, __in_chrg=<optimized out>)
    at ../../../frameworks/native/include/utils/StrongPointer.h:149
#11 mozilla::layers::MagicGrallocBufferHandle::~MagicGrallocBufferHandle (this=
    0xbef89824, __in_chrg=<optimized out>)
    at ../../dist/include/mozilla/layers/ShadowLayerUtilsGralloc.h:39
#12 0x4110055e in IPC::ParamTraits<mozilla::layers::MagicGrallocBufferHandle>::Read (aMsg=0xbef8989c, aIter=<optimized out>, aResult=0xbef89928)
    at ../../../gecko/gfx/layers/ipc/ShadowLayerUtilsGralloc.cpp:133
#13 0x40f72428 in ReadParam<mozilla::layers::MagicGrallocBufferHandle> (m=
    0xbef8989c, p=0xbef89928, iter=0xbef89890)
    at ../../../gecko/ipc/chromium/src/chrome/common/ipc_message_utils.h:121
#14 Read<mozilla::layers::MagicGrallocBufferHandle> (__iter=0xbef89890, __msg=
    0xbef8989c, __v=0xbef89928, this=<optimized out>)
    at _ipdlheaders/mozilla/layers/PLayerTransactionChild.h:506
#15 mozilla::layers::PLayerTransactionChild::Read (this=<optimized out>, __v=
    0xbef89928, __msg=0xbef8989c, __iter=0xbef89890)
    at PLayerTransactionChild.cpp:4905
#16 0x40f7b202 in mozilla::layers::PLayerTransactionChild::SendPGrallocBufferConstructor (this=0x51bf4840, actor=0x539b1400, size=..., format=@0xbef8990c, 
---Type <return> to continue, or q <return> to quit---
    usage=@0xbef89908, handle=0xbef89928) at PLayerTransactionChild.cpp:142
#17 0x40f7b280 in mozilla::layers::PLayerTransactionChild::SendPGrallocBufferConstructor (this=0x51bf4840, size=..., format=@0xbef8990c, usage=@0xbef89908, 
    handle=0xbef89928) at PLayerTransactionChild.cpp:91
#18 0x41100218 in mozilla::layers::ShadowLayerForwarder::AllocGrallocBuffer (
    this=<optimized out>, aSize=<optimized out>, aFormat=2, aUsage=307, 
    aHandle=0xbef89928)
    at ../../../gecko/gfx/layers/ipc/ShadowLayerUtilsGralloc.cpp:416
#19 0x411370e0 in mozilla::layers::GrallocTextureClientOGL::AllocateGralloc (
    this=0x539b13a0, aSize=..., aAndroidFormat=2, aUsage=307)
    at ../../../gecko/gfx/layers/opengl/GrallocTextureClient.cpp:416
#20 0x41137202 in mozilla::layers::GrallocTextureClientOGL::AllocateForSurface
    (this=<optimized out>, aSize=...)
    at ../../../gecko/gfx/layers/opengl/GrallocTextureClient.cpp:361
#21 0x411152a8 in mozilla::layers::ContentClientRemoteBuffer::CreateAndAllocateTextureClient (this=0x538cdd50, aClient=..., aFlags=16384)
    at ../../../gecko/gfx/layers/client/ContentClient.cpp:177
#22 0x411153be in mozilla::layers::ContentClientRemoteBuffer::BuildTextureClients (this=0x538cdd50, aFormat=..., aRect=..., aFlags=1)
    at ../../../gecko/gfx/layers/client/ContentClient.cpp:216
#23 0x4111543c in mozilla::layers::ContentClientRemoteBuffer::CreateBuffer (
    this=0x538cdd50, aType=..., aRect=..., aFlags=1, aBlackDT=0xbef899fc, 
    aWhiteDT=0xbef89a00)
---Type <return> to continue, or q <return> to quit---
    at ../../../gecko/gfx/layers/client/ContentClient.cpp:241
#24 0x4110bb92 in mozilla::layers::RotatedContentBuffer::BeginPaint (this=
    0x538cdd60, aLayer=0x55cbd680, aFlags=1)
    at ../../../gecko/gfx/layers/RotatedBuffer.cpp:627
#25 0x41114450 in mozilla::layers::DeprecatedContentClientRemoteBuffer::BeginPaintBuffer (this=<optimized out>, aLayer=<optimized out>, aFlags=<optimized out>)
    at ../../dist/include/mozilla/layers/ContentClient.h:329
#26 0x4111332a in mozilla::layers::ClientThebesLayer::PaintThebes (this=
    0x55cbd680) at ../../../gecko/gfx/layers/client/ClientThebesLayer.cpp:55
#27 0x4111365a in mozilla::layers::ClientThebesLayer::RenderLayer (this=
    0x55cbd680) at ../../../gecko/gfx/layers/client/ClientThebesLayer.cpp:103
#28 0x41112410 in mozilla::layers::ClientContainerLayer::RenderLayer (
    this=<optimized out>)
    at ../../../gecko/gfx/layers/client/ClientContainerLayer.h:83
#29 0x41112410 in mozilla::layers::ClientContainerLayer::RenderLayer (
    this=<optimized out>)
    at ../../../gecko/gfx/layers/client/ClientContainerLayer.h:83
#30 0x41112b74 in mozilla::layers::ClientLayerManager::EndTransactionInternal (
    this=0x56e07200, aCallback=
    0x4171f949 <mozilla::FrameLayerBuilder::DrawThebesLayer(mozilla::layers::ThebesLayer*, gfxContext*, nsIntRegion const&, mozilla::layers::DrawRegionClip, nsIntRegion const&, void*)>, aCallbackData=0xbef89f64)
    at ../../../gecko/gfx/layers/client/ClientLayerManager.cpp:191
---Type <return> to continue, or q <return> to quit---
#31 0x41113182 in mozilla::layers::ClientLayerManager::EndTransaction (this=
    0x56e07200, aCallback=
    0x4171f949 <mozilla::FrameLayerBuilder::DrawThebesLayer(mozilla::layers::ThebesLayer*, gfxContext*, nsIntRegion const&, mozilla::layers::DrawRegionClip, nsIntRegion const&, void*)>, aCallbackData=0xbef89f64, aFlags=
    mozilla::layers::LayerManager::END_DEFAULT)
    at ../../../gecko/gfx/layers/client/ClientLayerManager.cpp:214
#32 0x417466e4 in nsDisplayList::PaintForFrame (this=0xbef89f48, aBuilder=
    0xbef89f64, aCtx=<optimized out>, aForFrame=<optimized out>, aFlags=13)
    at ../../../gecko/layout/base/nsDisplayList.cpp:1337
#33 0x41746868 in nsDisplayList::PaintRoot (this=0xbef89f48, aBuilder=
    0xbef89f64, aCtx=0x0, aFlags=13)
    at ../../../gecko/layout/base/nsDisplayList.cpp:1178
#34 0x4174e478 in nsLayoutUtils::PaintFrame (aRenderingContext=0x0, aFrame=
    0x527b62b8, aDirtyRegion=<optimized out>, aBackstop=4294967295, aFlags=772)
    at ../../../gecko/layout/base/nsLayoutUtils.cpp:2426
#35 0x41717214 in PresShell::Paint (this=0x506ddca0, 
    aViewToPaint=<optimized out>, aDirtyRegion=..., aFlags=1)
    at ../../../gecko/layout/base/nsPresShell.cpp:5928
#36 0x414fd13a in nsViewManager::ProcessPendingUpdatesForView (this=
    0x5069d7f0, aView=0x528f68d0, aFlushDirtyRegion=<optimized out>)
    at ../../../gecko/view/src/nsViewManager.cpp:422
#37 0x4171b9ce in nsRefreshDriver::Tick (this=0x506e1f30, 
---Type <return> to continue, or q <return> to quit---
    aNowEpoch=<optimized out>, aNowTime=...)
    at ../../../gecko/layout/base/nsRefreshDriver.cpp:1207
#38 0x4171bd1a in TickDriver (now=<optimized out>, jsnow=1397058243948966, 
    driver=<optimized out>)
    at ../../../gecko/layout/base/nsRefreshDriver.cpp:168
#39 mozilla::RefreshDriverTimer::Tick (this=<optimized out>)
    at ../../../gecko/layout/base/nsRefreshDriver.cpp:160
#40 0x40ddc17a in nsTimerImpl::Fire (this=0x527fef00)
    at ../../../gecko/xpcom/threads/nsTimerImpl.cpp:551
#41 0x40ddc22a in nsTimerEvent::Run (this=<optimized out>)
    at ../../../gecko/xpcom/threads/nsTimerImpl.cpp:635
#42 0x40dda452 in ProcessNextEvent (result=0xbef8a5d7, mayWait=false, this=
    0x40402470) at ../../../gecko/xpcom/threads/nsThread.cpp:643
#43 nsThread::ProcessNextEvent (this=0x40402470, mayWait=<optimized out>, 
    result=0xbef8a5d7) at ../../../gecko/xpcom/threads/nsThread.cpp:567
#44 0x40dac086 in NS_ProcessNextEvent (thread=<optimized out>, 
    mayWait=<optimized out>) at ../../../gecko/xpcom/glue/nsThreadUtils.cpp:263
#45 0x40f0ff4e in mozilla::ipc::MessagePump::Run (this=0x40401e20, aDelegate=
    0x404fc1a0) at ../../../gecko/ipc/glue/MessagePump.cpp:95
#46 0x40f04512 in MessageLoop::RunInternal (this=<optimized out>)
    at ../../../gecko/ipc/chromium/src/base/message_loop.cc:226
#47 0x40f045c4 in RunHandler (this=0x404fc1a0)
    at ../../../gecko/ipc/chromium/src/base/message_loop.cc:219
---Type <return> to continue, or q <return> to quit---
#48 MessageLoop::Run (this=0x404fc1a0)
    at ../../../gecko/ipc/chromium/src/base/message_loop.cc:193
#49 0x41352e96 in nsBaseAppShell::Run (this=0x50925ca0)
    at ../../../gecko/widget/xpwidgets/nsBaseAppShell.cpp:164
#50 0x4196b624 in nsAppStartup::Run (this=0x509fd970)
    at ../../../../gecko/toolkit/components/startup/nsAppStartup.cpp:276
#51 0x41947c96 in XREMain::XRE_mainRun (this=0xbef8a81c)
    at ../../../gecko/toolkit/xre/nsAppRunner.cpp:4008
#52 0x41948fb0 in XREMain::XRE_main (this=0xbef8a81c, argc=<optimized out>, 
    argv=<optimized out>, aAppData=<optimized out>)
    at ../../../gecko/toolkit/xre/nsAppRunner.cpp:4075
#53 0x41949104 in XRE_main (argc=1, argv=0xbef8c9d4, aAppData=0x261a4, 
    aFlags=<optimized out>) at ../../../gecko/toolkit/xre/nsAppRunner.cpp:4285
#54 0x0000b164 in do_main (argv=0xbef8c9d4, argc=1)
    at ../../../gecko/b2g/app/nsBrowserApp.cpp:163
#55 main (argc=<optimized out>, argv=<optimized out>)
    at ../../../gecko/b2g/app/nsBrowserApp.cpp:256

<<<<<<<<<<<<<<<<<<<<<<<<<<<<


I appreciate any kind of help.

Thanks in advance.

Best regards,

Jose
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.