[Kde-bindings] in korundum 4.5, calling super from event handlers causes SystemStackError

Stefano Crocco stefano.crocco at alice.it
Mon Jul 5 17:02:36 UTC 2010


On Monday 05 July 2010, Stefano Crocco wrote:
> |On Monday 05 July 2010, Arno Rehn wrote:
> |> |On Monday 05 July 2010 14:37:15 Arno Rehn wrote:
> |> |> This looks like an infinite loop to me. And to correct myself: I do
> |> |> get that bug, too. I didn't try to invoke a context menu when I
> |> |> first tested it - sorry for that.
> |> |
> |> |Ok, I identified the bug. Working on it now.
> |
> |Thanks for looking into it.
> |
> |Stefano
> |_______________________________________________
> |Kde-bindings mailing list
> |Kde-bindings at kde.org
> |https://mail.kde.org/mailman/listinfo/kde-bindings

I just tried the example I'd posted before and now it works correctly. 
Unfortunately, it seems that something else broke (or something broke on my 
system while upgrading from RC1 to the 4.5 branch). However, as soon as I try 
to create a KDE::AboutData object. 

The code I use is the following:

require 'korundum4'

KDE::AboutData.new 'test', 'test', KDE.ki18n('Test'), '0.0.0'

It worked with korundum from RC1, but now I get a crash with the following 
backtrace.

/usr/lib/ruby19/site_ruby/1.9.1/KDE/korundum4.rb:91: [BUG] Segmentation fault
ruby 1.9.1p376 (2009-12-07 revision 26041) [i686-linux]

-- control frame ----------
c:0013 p:---- s:0051 b:0051 l:000050 d:000050 CFUNC  :initialize
c:0012 p:0034 s:0044 b:0044 l:000043 d:000043 METHOD 
/usr/lib/ruby19/site_ruby/1.9.1/KDE/korundum4.rb:91
c:0011 p:---- s:0038 b:0038 l:000037 d:000037 FINISH
c:0010 p:---- s:0036 b:0036 l:000035 d:000035 CFUNC  :call
c:0009 p:0014 s:0029 b:0029 l:000020 d:000028 BLOCK  
/usr/lib/ruby19/site_ruby/1.9.1/Qt/qtruby4.rb:2640
c:0008 p:---- s:0027 b:0027 l:000026 d:000026 FINISH
c:0007 p:---- s:0025 b:0025 l:000024 d:000024 CFUNC  :catch
c:0006 p:0027 s:0021 b:0021 l:000020 d:000020 METHOD 
/usr/lib/ruby19/site_ruby/1.9.1/Qt/qtruby4.rb:2639
c:0005 p:---- s:0015 b:0015 l:000014 d:000014 FINISH
c:0004 p:---- s:0013 b:0013 l:000012 d:000012 CFUNC  :new
c:0003 p:0050 s:0006 b:0006 l:001314 d:00114c EVAL   prova.rb:3
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001314 d:001314 TOP   
---------------------------
-- Ruby level backtrace information-----------------------------------------
/usr/lib/ruby19/site_ruby/1.9.1/KDE/korundum4.rb:91:in `initialize'
/usr/lib/ruby19/site_ruby/1.9.1/KDE/korundum4.rb:91:in `initialize'
/usr/lib/ruby19/site_ruby/1.9.1/Qt/qtruby4.rb:2640:in `call'
/usr/lib/ruby19/site_ruby/1.9.1/Qt/qtruby4.rb:2640:in `block in 
try_initialize'
/usr/lib/ruby19/site_ruby/1.9.1/Qt/qtruby4.rb:2639:in `catch'
/usr/lib/ruby19/site_ruby/1.9.1/Qt/qtruby4.rb:2639:in `try_initialize'
prova.rb:3:in `new'                                                                                                                                                                                       
prova.rb:3:in `<main>'                                                                                                                                                                                    
                                                                                                                                                                                                          
-- C level backtrace information -------------------------------------------                                                                                                                              
0xb77c8a39 /usr/lib/libruby19.so.1.9(rb_vm_bugreport+0x69) [0xb77c8a39]                                                                                                                                   
0xb76f1f68 /usr/lib/libruby19.so.1.9(+0x42f68) [0xb76f1f68]                                                                                                                                               
0xb76f1ff0 /usr/lib/libruby19.so.1.9(rb_bug+0x34) [0xb76f1ff0]                                                                                                                                            
0xb7773c6f /usr/lib/libruby19.so.1.9(+0xc4c6f) [0xb7773c6f]                                                                                                                                               
0xb782740c [0xb782740c]                                                                                                                                                                                   
0xb6de8822 
/usr/lib/libkdecore.so.5(_ZN10KAboutDataC2ERK10QByteArrayS2_RK16KLocalizedStringS2_S5_NS_10LicenseKeyES5_S5_S2_S2_+0x2a4) 
[0xb6de8822]                                                         
0xb65e6546 /usr/lib/libsmokekdecore.so.3(+0x45546) [0xb65e6546]                                                                                                                                           
0xb61b6598 /usr/lib/libqtruby4shared.so.2(+0x45598) [0xb61b6598]                                                                                                                                          
0xb61b3e94 
/usr/lib/libqtruby4shared.so.2(_ZN6QtRuby14MethodCallBase4nextEv+0x2e) 
[0xb61b3e94]                                                                                                            
0xb6f5813b /usr/lib/ruby19/site_ruby/1.9.1/i686-linux/qtruby4.so(+0x713b) 
[0xb6f5813b]                                                                                                                    
0xb77b727d /usr/lib/libruby19.so.1.9(+0x10827d) [0xb77b727d]                                                                                                                                              
0xb77b7598 /usr/lib/libruby19.so.1.9(+0x108598) [0xb77b7598]                                                                                                                                              
0xb77c2602 /usr/lib/libruby19.so.1.9(+0x113602) [0xb77c2602]                                                                                                                                              
0xb77bd149 /usr/lib/libruby19.so.1.9(+0x10e149) [0xb77bd149]                                                                                                                                              
0xb77bfb83 /usr/lib/libruby19.so.1.9(+0x110b83) [0xb77bfb83]                                                                                                                                              
0xb77c1d33 /usr/lib/libruby19.so.1.9(+0x112d33) [0xb77c1d33]                                                                                                                                              
0xb76f822f /usr/lib/libruby19.so.1.9(rb_method_call+0x174) [0xb76f822f]                                                                                                                                   
0xb77b727d /usr/lib/libruby19.so.1.9(+0x10827d) [0xb77b727d]                                                                                                                                              
0xb77b7598 /usr/lib/libruby19.so.1.9(+0x108598) [0xb77b7598]                                                                                                                                              
0xb77c2602 /usr/lib/libruby19.so.1.9(+0x113602) [0xb77c2602]
0xb77bc843 /usr/lib/libruby19.so.1.9(+0x10d843) [0xb77bc843]
0xb77bfb83 /usr/lib/libruby19.so.1.9(+0x110b83) [0xb77bfb83]
0xb77c012e /usr/lib/libruby19.so.1.9(+0x11112e) [0xb77c012e]
0xb77c0863 /usr/lib/libruby19.so.1.9(+0x111863) [0xb77c0863]
0xb77b727d /usr/lib/libruby19.so.1.9(+0x10827d) [0xb77b727d]
0xb77b7598 /usr/lib/libruby19.so.1.9(+0x108598) [0xb77b7598]
0xb77c2602 /usr/lib/libruby19.so.1.9(+0x113602) [0xb77c2602]
0xb77bc843 /usr/lib/libruby19.so.1.9(+0x10d843) [0xb77bc843]
0xb77bfb83 /usr/lib/libruby19.so.1.9(+0x110b83) [0xb77bfb83]
0xb77c1d33 /usr/lib/libruby19.so.1.9(+0x112d33) [0xb77c1d33]
0xb77c21b9 /usr/lib/libruby19.so.1.9(rb_funcall2+0xfd) [0xb77c21b9]
0xb6f57650 /usr/lib/ruby19/site_ruby/1.9.1/i686-linux/qtruby4.so(+0x6650) 
[0xb6f57650]
0xb77b727d /usr/lib/libruby19.so.1.9(+0x10827d) [0xb77b727d]
0xb77b7598 /usr/lib/libruby19.so.1.9(+0x108598) [0xb77b7598]
0xb77c2602 /usr/lib/libruby19.so.1.9(+0x113602) [0xb77c2602]
0xb77bc843 /usr/lib/libruby19.so.1.9(+0x10d843) [0xb77bc843]
0xb77bfb83 /usr/lib/libruby19.so.1.9(+0x110b83) [0xb77bfb83]
0xb77bfdc5 /usr/lib/libruby19.so.1.9(rb_iseq_eval_main+0xab) [0xb77bfdc5]
0xb76f3c94 /usr/lib/libruby19.so.1.9(ruby_exec_node+0xb1) [0xb76f3c94]
0xb76f50fa /usr/lib/libruby19.so.1.9(ruby_run_node+0x52) [0xb76f50fa]
0x8048848 ruby(main+0x68) [0x8048848]
0xb74d4bb6 /lib/libc.so.6(__libc_start_main+0xe6) [0xb74d4bb6]
0x8048741 ruby() [0x8048741]


Thanks in advance

Stefano



More information about the Kde-bindings mailing list