[maemo-developers] Segmentation fault with the latest microb-engine

From: Zhihai Wang pageguest at gmail.com
Date: Thu May 29 09:18:30 EEST 2008
Hi,

Please take a look at this, and the libraries used are built from the HEAD
version of the repository.

(gdb) run
Starting program: /targets/CHINOOK_X86/usr/lib/microb-engine/TestGtkEmbed
new_gtk_browser
        menu bar
        tool bar
        location bar
        status bar
/home/wf/.osso/current-gtk-key-theme:1: Unable to find include file:
"keybindings.rc"
hildon-desktop[28475]: GLIB WARNING ** default - Application TestGtkEmbed
did not provide valid .desktop file
loading url www.google.com
js_status_cb
js_status_cb
location_changed_cb
open_uri_cb http://www.google.com/
load_started_cb
js_status_cb
js_status_cb
location_changed_cb
net_state_change_cb 196612
progress_change_cb cur 2600 max 2600
title_changed_cb
net_state_change_cb 65552

Program received signal SIGSEGV, Segmentation fault.
0xb64e8aaa in nsFrame::BoxReflow (this=0x839c854, aState=@0xbf9198f4,
aPresContext=0x82800b8, aDesiredSize=@0xbf9196a0,
    aRenderingContext=0x83b2d28, aX=0, aY=0, aWidth=0, aHeight=0,
aMoveFrame=1)
    at
/home/wf/browser/microb-trunk/trunk/microb-engine/microb-engine/build-tree/mozilla/layout/generic/nsFrame.cpp:6291
6291        if (metrics->mLastSize.width != aWidth)
(gdb) bt
#0  0xb64e8aaa in nsFrame::BoxReflow (this=0x839c854, aState=@0xbf9198f4,
aPresContext=0x82800b8, aDesiredSize=@0xbf9196a0,
    aRenderingContext=0x83b2d28, aX=0, aY=0, aWidth=0, aHeight=0,
aMoveFrame=1)
    at
/home/wf/browser/microb-trunk/trunk/microb-engine/microb-engine/build-tree/mozilla/layout/generic/nsFrame.cpp:6291
#1  0xb64e8727 in nsFrame::DoLayout (this=0x839c854, aState=@0xbf9198f4)
    at
/home/wf/browser/microb-trunk/trunk/microb-engine/microb-engine/build-tree/mozilla/layout/generic/nsFrame.cpp:6096
#2  0xb6615873 in nsIFrame::Layout (this=0x839c854, aState=@0xbf9198f4)
    at
/home/wf/browser/microb-trunk/trunk/microb-engine/microb-engine/build-tree/mozilla/layout/xul/base/src/nsBox.cpp:561
#3  0xb66194db in nsBoxFrame::LayoutChildAt (aState=@0xbf9198f4,
aBox=0x839c854, aRect=@0xbf9197f0)
    at
/home/wf/browser/microb-trunk/trunk/microb-engine/microb-engine/build-tree/mozilla/layout/xul/base/src/nsBoxFrame.cpp:2023
#4  0xb64f9540 in LayoutAndInvalidate (aState=@0x0, aBox=0x839c854,
aRect=@0xbf9197f0)
    at
/home/wf/browser/microb-trunk/trunk/microb-engine/microb-engine/build-tree/mozilla/layout/generic/nsGfxScrollFrame.cpp:2502
#5  0xb64f96e8 in nsGfxScrollFrameInner::LayoutScrollbars (this=0x839c5f0,
aState=@0xbf9198f4, aContentArea=@0xbf9198a0,
    aOldScrollArea=@0xbf9198e0, aScrollArea=@0xbf91991c)
    at
/home/wf/browser/microb-trunk/trunk/microb-engine/microb-engine/build-tree/mozilla/layout/generic/nsGfxScrollFrame.cpp:2564
#6  0xb64f4dbe in nsHTMLScrollFrame::Reflow (this=0x839c5ac,
aPresContext=0x82800b8, aDesiredSize=@0xbf919af0, aReflowState=@0xbf919a30,
    aStatus=@0xbf919b78)
    at
/home/wf/browser/microb-trunk/trunk/microb-engine/microb-engine/build-tree/mozilla/layout/generic/nsGfxScrollFrame.cpp:835
#7  0xb64d95f7 in nsContainerFrame::ReflowChild (this=0x839c3ec,
aKidFrame=0x839c5ac, aPresContext=0x82800b8, aDesiredSize=@0x0,
    aReflowState=@0x0, aX=0, aY=0, aFlags=136847328, aStatus=@0xbf919b78,
aTracker=0x0)
    at
/home/wf/browser/microb-trunk/trunk/microb-engine/microb-engine/build-tree/mozilla/layout/generic/nsContainerFrame.cpp:770
#8  0xb654e7b0 in ViewportFrame::Reflow (this=0x839c3ec,
aPresContext=0x82800b8, aDesiredSize=@0xbf919b80, aReflowState=@0xbf919bb0,
    aStatus=@0xbf919b78)
    at
/home/wf/browser/microb-trunk/trunk/microb-engine/microb-engine/build-tree/mozilla/layout/generic/nsViewportFrame.cpp:285
#9  0xb64b7e0b in PresShell::DoReflow (this=0x8295ba8, target=0x839c3ec)
    at
/home/wf/browser/microb-trunk/trunk/microb-engine/microb-engine/build-tree/mozilla/layout/base/nsPresShell.cpp:6288
#10 0xb64b809f in PresShell::ProcessReflowCommands (this=0x8295ba8,
aInterruptible=1)
    at
/home/wf/browser/microb-trunk/trunk/microb-engine/microb-engine/build-tree/mozilla/layout/base/nsPresShell.cpp:6394
#11 0xb64b3012 in PresShell::DoFlushPendingNotifications (this=0x8295ba8,
aType=Flush_Layout, aInterruptibleReflow=0)
    at
/home/wf/browser/microb-trunk/trunk/microb-engine/microb-engine/build-tree/mozilla/layout/base/nsPresShell.cpp:4582
#12 0xb64b790e in PresShell::ReflowEvent::Run (this=0x0)
    at
/home/wf/browser/microb-trunk/trunk/microb-engine/microb-engine/build-tree/mozilla/layout/base/nsPresShell.cpp:6153
#13 0xb6cc3f79 in nsThread::ProcessNextEvent (this=0x80e76a8, mayWait=0,
result=0x0)
    at
/home/wf/browser/microb-trunk/trunk/microb-engine/microb-engine/build-tree/mozilla/xpcom/threads/nsThread.cpp:510
#14 0xb6c7eb35 in NS_ProcessPendingEvents_P (thread=0x80e76a8, timeout=20)
at nsThreadUtils.cpp:180
#15 0xb6c3815d in nsBaseAppShell::NativeEventCallback (this=0x8297a38)
    at
/home/wf/browser/microb-trunk/trunk/microb-engine/microb-engine/build-tree/mozilla/widget/src/xpwidgets/nsBaseAppShell.cpp:121
#16 0xb6c22368 in nsAppShell::EventProcessorCallback (source=0x8297a88,
condition=G_IO_IN, data=0x8297a38)
    at
/home/wf/browser/microb-trunk/trunk/microb-engine/microb-engine/build-tree/mozilla/widget/src/gtk2/nsAppShell.cpp:70
#17 0xb7947d8f in g_vasprintf () from /usr/lib/libglib-2.0.so.0
#18 0xb791e1fc in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#19 0xb791fbb5 in g_main_context_acquire () from /usr/lib/libglib-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#20 0xb791feda in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#21 0xb7c9f173 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#22 0x0804a03d in main (argc=1, argv=0xbf91b0e4)
    at
/home/wf/browser/microb-trunk/trunk/microb-engine/microb-engine/build-tree/mozilla/embedding/browser/gtk/tests/TestGtkEmbed.cpp:267
(gdb)

Best Regards,

Zhihai Wang

2008/5/28 <josh.soref at nokia.com>:

> Zhihai Wang wrote:
> > I'm not good at gdb, and I'm just learning how to debug.
> >
> > Following is the trace I got, if this is not enough, I would
> > like to collect more trace for you:
>
> > Program received signal SIGSEGV, Segmentation fault.
> > 0xb64d42ea in XRE_GetFileFromPath () from
> > /targets/CHINOOK_X86/usr/lib/microb-engine/libxul.so (gdb) bt
> > #0  0xb64d42ea in XRE_GetFileFromPath () from
> > /targets/CHINOOK_X86/usr/lib/microb-engine/libxul.so
>
> You don't have symbols. You need to install symbols.
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20080529/5c717fa0/attachment.htm 
More information about the maemo-developers mailing list