[Kde-bindings] (no subject)

David Arturo Palacio Torres dpalacio at uninorte.edu.co
Sun Aug 10 17:05:30 UTC 2008


El Sunday 10 August 2008 02:45:06 escribió:
> On Saturday 09 August 2008 23:28:12 David Palacio wrote:
> > 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.
>
> This works perfectly fine for me. Richard has recently commited a fix 
about
> the Foo::self() methods to smoke - try svn up and the REGENERATE the 
smoke
> sources. ('perl generate.pl; make' in every smoke dir or simply 'make
> clean; make' in the smoke/ dir.)
I did that, clean build; release, debug builds. It keeps segfaulting.

Just found the commit. It seems to not have been backported to the 4.1 
branch 
(I have trunk, but for testing. I am packaging the 4.1 branch).

On another topic. I think it would be great to have the kdegames 
library to be 
the next target for smoke bindings.
-- 
Universidad del Norte



More information about the Kde-bindings mailing list