I'm trying to embed Mozilla 1.4 (using Linux, gcc 3.3 and Gtk 2.0) and I
meet a problem when calling nsWebBrowser::Create(). It turns out that line
2206 of nsWindow segfaults. This line, however, is nothing more than
LOG(("nsWindow [%p]\n", (void *)this));
Any idea what may cause a LOG function to segfault ?
Thanks in advance,
YA
Here is the gdb backtrace
#0 0x41c3a7f9 in nsWindow::NativeCreate(nsIWidget*, void*, nsRect const&,
nsEventStatus (*)(nsGUIEvent*), nsIDeviceContext*, nsIAppShell*,
nsIToolkit*, nsWidgetInitData*) (this=0x812ea30, aParent=0x0,
aNativeParent=0x814f8f0, [EMAIL PROTECTED],
aHandleEventFunction=0x41c08294
<nsWebBrowser::HandleEvent(nsGUIEvent*)>, aContext=0x0, aAppShell=0x0,
aToolkit=0x0,
aInitData=0xbffff7c0) at nsWindow.cpp:2206
#1 0x41c36103 in nsWindow::Create(void*, nsRect const&, nsEventStatus
(*)(nsGUIEvent*), nsIDeviceContext*, nsIAppShell*, nsIToolkit*,
nsWidgetInitData*) (this=0x812ea30, aParent=0x814f8f0, [EMAIL PROTECTED],
aHandleEventFunction=0x41c08294
<nsWebBrowser::HandleEvent(nsGUIEvent*)>, aContext=0x0, aAppShell=0x0,
aToolkit=0x0,
aInitData=0xbffff7c0) at nsWindow.cpp:300
#2 0x41c06723 in nsWebBrowser::Create() (this=0x812e478) at
nsWebBrowser.cpp:1053