[Kde-bindings] Plasma crash
David Palacio
dpalacio at uninorte.edu.co
Thu May 13 02:38:35 UTC 2010
I get this crash with Plasma::WebView but not with Qt::WebView. Is
this reproduceable?
Testcase:
require 'plasma_applet'
about = KDE::AboutData.new(
'irb_kapp', # app internal name
'irb_kapp', # translation catalog name
KDE.ki18n( 'IRB KApp' ), # name to be displayed
'1.8.7', #version
KDE.ki18n( 'Kuick IRB Application' ), #description
KDE::AboutData::License_GPL_V3, #license
KDE.ki18n( '(c) 2008 you' ) # copyright statement
) #AboutData
KDE::CmdLineArgs.init(ARGV, about)
KDE::Application.new
Qt.debug_level = 2
w = Plasma::WebView.new
#w = Qt::WebView.new
network_access_manager = w.page.networkAccessManager
Backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x00007fffdcc26e8a in resolve_classname (o=0xef2930) at
/home/kde/src/KDE/kdebindings/ruby/qtruby/src/Qt.cpp:474
474 return
qtruby_modules[o->smoke].binding->className(o->classId);
(gdb) bt
#0 0x00007fffdcc26e8a in resolve_classname (o=0xef2930) at
/home/kde/src/KDE/kdebindings/ruby/qtruby/src/Qt.cpp:474
#1 0x00007fffdcc35467 in marshall_to_ruby<SmokeClassWrapper> (m=0x7fffffff92c0)
at /home/kde/src/KDE/kdebindings/ruby/qtruby/src/marshall_basetypes.h:146
#2 marshall_it<SmokeClassWrapper> (m=0x7fffffff92c0) at
/home/kde/src/KDE/kdebindings/ruby/qtruby/src/handlers.cpp:812
#3 marshall_basetype (m=0x7fffffff92c0) at
/home/kde/src/KDE/kdebindings/ruby/qtruby/src/handlers.cpp:875
#4 0x00007fffdcc59141 in MethodReturnValue (this=0x7fffffff92c0,
smoke=<value optimized out>, meth=<value optimized out>,
stack=<value optimized out>, retval=0x7fffffff94e0) at
/home/kde/src/KDE/kdebindings/ruby/qtruby/src/marshall_types.cpp:405
#5 0x00007fffdcc5b28f in QtRuby::MethodCall::callMethod
(this=0x7fffffff9480) at
/home/kde/src/KDE/kdebindings/ruby/qtruby/src/marshall_types.h:154
#6 0x00007fffdcc590aa in QtRuby::MethodCallBase::next
(this=0x7fffffff9480) at
/home/kde/src/KDE/kdebindings/ruby/qtruby/src/marshall_types.cpp:466
#7 0x00007fffdcc27d03 in method_missing (argc=1, argv=0x7fffffff9cc0,
self=140736817621960)
at /home/kde/src/KDE/kdebindings/ruby/qtruby/src/Qt.cpp:910
[snip]
==Looking at GDB==
Breakpoint 2, resolve_classname (o=0xee98b0) at
/home/kde/src/KDE/kdebindings/ruby/qtruby/src/Qt.cpp:474
474 return
qtruby_modules[o->smoke].binding->className(o->classId);
(gdb) p qtruby_modules[o->smoke].binding->className(o->classId)
Cannot access memory at address 0x0
(gdb) p qtruby_modules[o->smoke].binding
$23 = (class QtRuby::Binding *) 0x0
(gdb) p qtruby_modules[o->smoke]
$24 = (QtRubyModule &) @0xbb3518: {name = 0x0, resolve_classname = 0,
class_created = 0, binding = 0x0}
(gdb) p o->smoke
$25 = (Smoke *) 0xd4a1d0
More information about the Kde-bindings
mailing list