[Kde-bindings] unable to create Qt::Variant from array of Qt::Variants in qtruby4
Stefano Crocco
stefano.crocco at alice.it
Fri Jun 27 08:16:15 UTC 2008
I'm trying to create a Qt::Variant from an array of Qt::Variant s using the
latest svn revision of qtruby4, but this makes my application crash. This is
a simple script which causes this behavior:
require 'Qt4'
list = [1,2,3].map{|i| Qt::Variant.new i}
Qt::Variant.new list
Running it through gdb I get this backtrace:
#0 0xb7ee5410 in __kernel_vsyscall ()
#1 0xb7c6d690 in raise () from /lib/libc.so.6
#2 0xb7c6eed8 in abort () from /lib/libc.so.6
#3 0xb7cae3f3 in malloc_printerr () from /lib/libc.so.6
#4 0xb7cafccb in free () from /lib/libc.so.6
#5 0xb6a3d61d in operator delete () from /usr/lib/gcc/i686-pc-linux-gnu/4.3.1/libstdc++.so.6
#6 0xb6a3d667 in operator delete[] () from /usr/lib/gcc/i686-pc-linux-gnu/4.3.1/libstdc++.so.6
#7 0xb74da2d4 in ~MethodCall (this=0x2) at /home/stefano/temp/kdebindings/ruby/qtruby/src/marshall_types.cpp:544
#8 0xb7e0a45a in new_qvariant (argc=1, argv=0xbf916420, self=3058943480) at /home/stefano/temp/kdebindings/ruby/qtruby/src/qtruby.cpp:887
#9 0xb7e40805 in call_cfunc () from /usr/lib/libruby18.so.1.8
#10 0xb7e4a945 in rb_call0 () from /usr/lib/libruby18.so.1.8
#11 0xb7e4aad1 in rb_call () from /usr/lib/libruby18.so.1.8
#12 0xb7e45599 in rb_eval () from /usr/lib/libruby18.so.1.8
#13 0xb7e55fe3 in ruby_exec_internal () from /usr/lib/libruby18.so.1.8
#14 0xb7e56023 in ruby_exec () from /usr/lib/libruby18.so.1.8
#15 0xb7e56058 in ruby_run () from /usr/lib/libruby18.so.1.8
#16 0x08048715 in main ()
Stefano
More information about the Kde-bindings
mailing list