Kirix Support Forums

crashes in libmozjs.so

Please post any wxWebConnect patches or modifications you've created here. Thanks!

crashes in libmozjs.so

Postby slimer on Fri Sep 18, 2009 2:52 am

Hello there,

I was coding under the OS ubuntu 9.04 Desktop and compiled with gcc 4.3.3 using DialogBlocks 4.33, xulrunner 1.9.1.2. , __wxGTK__ , gtk+-2.0, toolkit wxGTK+2

I was trying to embed xulrunner with wxWebConnect in a sizer as the following code:

m_browser = new wxWebControl(itemFrame1, wxID_WEB, wxDefaultPosition, wxDefaultSize);
itemBoxSizer3->Add(m_browser, 500, wxEXPAND, 0);


whereas the itemFrame1 = this (MainFrame)
and itemBoxSizer3 has the embedded between two panels :

wxBoxSizer* itemBoxSizer3 = new wxBoxSizer(wxHORIZONTAL);
...
itemBoxSizer3->Add(itemPanel4, 140, wxALIGN_TOP|wxALL, 0);
...
m_browser = new wxWebControl(itemFrame1, wxID_WEB, wxDefaultPosition, wxDefaultSize);
itemBoxSizer3->Add(m_browser, 520, wxEXPAND, 0);
m_browser->OpenURI(_("http://www.google.com"));
...
itemBoxSizer3->Add(itemPanel5, 140, wxALIGN_TOP|wxALL, 0);


but the program crashes right after the google page comes out with the following gdb backtrace message:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb695d750 (LWP 8796)]
0xb621f86b in JS_CallTracer () from /usr/lib/xulrunner-1.9.1.2/libmozjs.so
(gdb) bt
#0 0xb621f86b in JS_CallTracer () from /usr/lib/xulrunner-1.9.1.2/libmozjs.so
#1 0xb621ba16 in ?? () from /usr/lib/xulrunner-1.9.1.2/libmozjs.so
#2 0xb620b91e in JS_DHashTableEnumerate ()
from /usr/lib/xulrunner-1.9.1.2/libmozjs.so
#3 0xb621bb41 in ?? () from /usr/lib/xulrunner-1.9.1.2/libmozjs.so
#4 0xb62396e9 in ?? () from /usr/lib/xulrunner-1.9.1.2/libmozjs.so
#5 0xb621f5e2 in JS_TraceChildren ()
from /usr/lib/xulrunner-1.9.1.2/libmozjs.so
#6 0xb621f966 in JS_CallTracer () from /usr/lib/xulrunner-1.9.1.2/libmozjs.so
#7 0xb621ba9e in ?? () from /usr/lib/xulrunner-1.9.1.2/libmozjs.so
#8 0xb62396e9 in ?? () from /usr/lib/xulrunner-1.9.1.2/libmozjs.so
#9 0xb621f5e2 in JS_TraceChildren ()
from /usr/lib/xulrunner-1.9.1.2/libmozjs.so
#10 0xb621f966 in JS_CallTracer () from /usr/lib/xulrunner-1.9.1.2/libmozjs.so
#11 0xb623976d in ?? () from /usr/lib/xulrunner-1.9.1.2/libmozjs.so
#12 0xb621f5e2 in JS_TraceChildren ()
from /usr/lib/xulrunner-1.9.1.2/libmozjs.so
#13 0xb621f966 in JS_CallTracer () from /usr/lib/xulrunner-1.9.1.2/libmozjs.so
#14 0xb621fc41 in ?? () from /usr/lib/xulrunner-1.9.1.2/libmozjs.so
#15 0xb621fc77 in ?? () from /usr/lib/xulrunner-1.9.1.2/libmozjs.so
#16 0xb620b91e in JS_DHashTableEnumerate ()
from /usr/lib/xulrunner-1.9.1.2/libmozjs.so
#17 0xb622010a in ?? () from /usr/lib/xulrunner-1.9.1.2/libmozjs.so
---Type <return> to continue, or q <return> to quit---
#18 0xb62205d8 in ?? () from /usr/lib/xulrunner-1.9.1.2/libmozjs.so
#19 0xb61f991c in JS_GC () from /usr/lib/xulrunner-1.9.1.2/libmozjs.so
#20 0xb570d046 in ?? () from /usr/lib/xulrunner-1.9.1.2/libxul.so
#21 0xb5f2a5ee in ?? () from /usr/lib/xulrunner-1.9.1.2/libxul.so
#22 0xb5f2a72d in ?? () from /usr/lib/xulrunner-1.9.1.2/libxul.so
#23 0xb5b1479e in ?? () from /usr/lib/xulrunner-1.9.1.2/libxul.so
#24 0xb5b14aa1 in ?? () from /usr/lib/xulrunner-1.9.1.2/libxul.so
#25 0xb5f21172 in ?? () from /usr/lib/xulrunner-1.9.1.2/libxul.so
#26 0xb5f211dd in ?? () from /usr/lib/xulrunner-1.9.1.2/libxul.so
#27 0xb5f1e4c4 in ?? () from /usr/lib/xulrunner-1.9.1.2/libxul.so
#28 0xb5eeedbe in ?? () from /usr/lib/xulrunner-1.9.1.2/libxul.so
#29 0xb5e70c3e in ?? () from /usr/lib/xulrunner-1.9.1.2/libxul.so
#30 0xb5e5bd36 in ?? () from /usr/lib/xulrunner-1.9.1.2/libxul.so
#31 0xb6dbbdad in ?? () from /usr/lib/libglib-2.0.so.0
#32 0xb6d84b88 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#33 0xb6d880eb in ?? () from /usr/lib/libglib-2.0.so.0
#34 0xb6d885ba in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#35 0xb71c87d9 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#36 0xb79c2215 in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#37 0xb7a58d4e in wxAppBase::MainLoop ()
from /usr/lib/libwx_gtk2u_core-2.8.so.0
#38 0xb7a58921 in wxAppBase::OnRun () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#39 0xb7783daa in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
---Type <return> to continue, or q <return> to quit---
#40 0xb7783fa7 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#41 0x080a1b44 in main ()

I just googled all over and found out that it might be the gtk hardcored problem, am I right?
Or is it the other kind of bug in xulrunner?
Thanks for your help!!
slimer
Registered User
 
Posts: 4
Joined: Mon Aug 17, 2009 5:00 am

Return to wxWebConnect Patches & Modifications