[Kde-bindings] Segmentation Fault

David Palacio dpalacio at uninorte.edu.co
Sat Aug 9 21:28:12 UTC 2008


I get a segmentation fault when I run the KParts example in kdedevelopers.org. 
Compiled kdebindings/4.1 from SVN source (rev. 844449). kdelibs/4.1 from 
Debian precompiled packages.

# test
def kdeapp
require 'korundum4'

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 lolcat' ) # copyright statement
                            ) #AboutData
KDE::CmdLineArgs.init(ARGV, about)
KDE::Application.new
end
kdeapp
main=KDE::MainWindow.new
gets #pause and capture in gdb
offers = KDE::MimeTypeTrader.self.query("text/xml", "KParts/ReadOnlyPart")

$ ruby test
(gdb) bt
#0  0x0000000000000003 in ?? ()
#1  0x00007fda3dae8a9c in xcall_KMimeTypeTrader (xi=<value optimized out>, 
obj=<value optimized out>,
    args=0xf46560) at 
/home/david/dev/kdebindings/build/smoke/kde/x_11.cpp:6109
#2  0x00007fda3cc8fce8 in QtRuby::MethodCall::callMethod (this=0x7fff471dedc0)
    at /home/david/dev/kdebindings/ruby/qtruby/src/marshall_types.h:162
#3  0x00007fda3cc8d90a in QtRuby::MethodCallBase::next (this=0x7fff471dedc0)
    at /home/david/dev/kdebindings/ruby/qtruby/src/marshall_types.cpp:459
#4  0x00007fda3cc5d193 in class_method_missing (argc=1, argv=0x7fff471df420, 
klass=<value optimized out>)
    at /home/david/dev/kdebindings/ruby/qtruby/src/Qt.cpp:943
#5  0x00007fda3ed003de in ?? () from /usr/lib/libruby1.8.so.1.8
#6  0x00007fda3ed0059a in ?? () from /usr/lib/libruby1.8.so.1.8
#7  0x00007fda3ed00f63 in rb_funcall2 () from /usr/lib/libruby1.8.so.1.8
#8  0x00007fda3ed0794d in ?? () from /usr/lib/libruby1.8.so.1.8
#9  0x00007fda3ed0065b in ?? () from /usr/lib/libruby1.8.so.1.8
#10 0x00007fda3ecfa51d in ?? () from /usr/lib/libruby1.8.so.1.8
#11 0x00007fda3ecfa43e in ?? () from /usr/lib/libruby1.8.so.1.8
#12 0x00007fda3ecfb942 in ?? () from /usr/lib/libruby1.8.so.1.8
#13 0x00007fda3ed0d44b in ?? () from /usr/lib/libruby1.8.so.1.8
#14 0x00007fda3ed0d495 in ruby_exec () from /usr/lib/libruby1.8.so.1.8
#15 0x00007fda3ed0d4c0 in ruby_run () from /usr/lib/libruby1.8.so.1.8
#16 0x00000000004008b3 in main ()
(gdb) c
Continuing.

Program exited with code 0375.

-- 
Universidad del Norte



More information about the Kde-bindings mailing list