[Kde-bindings] [Korundum] Crash KDE::Application.new
Alex Martin Ugalde
alex.martin at eresmas.com
Mon Jun 7 11:06:19 UTC 2004
Hi folks,
I'm experiencing segfaults, with the following ruby script:
----------8<-------------8<--------------
#!/usr/bin/ruby
require 'Korundum'
about = KDE::AboutData.new("knotifywidgetbase", "KNotifyWidgetBase", "0.1")
KDE::CmdLineArgs.init(ARGV, about)
a = KDE::Application.new
----------8<-------------8<--------------
a) Execution from ruby:
$ ruby bomb.rb
/usr/lib/ruby/site_ruby/1.8/Qt/qtruby.rb:220: [BUG] Segmentation fault
ruby 1.8.1 (2003-12-25) [i686-linux]
Aborted
b) Execution from irb:
$ irb bomb.rb
bomb.rb(main):001:0> #!/usr/bin/ruby
bomb.rb(main):002:0*
bomb.rb(main):003:0* require 'Korundum'
=> true
bomb.rb(main):004:0>
bomb.rb(main):005:0* about = KDE::AboutData.new("knotifywidgetbase", "KNotifyWidgetBase", "0.1")
=> #<KDE::AboutData:0x42d411d0>
bomb.rb(main):006:0> KDE::CmdLineArgs.init(ARGV, about)
=> nil
bomb.rb(main):007:0> a = KDE::Application.new
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = bomb.rb path = <unknown> pid = 23383
Ruby script /usr/lib/ruby/site_ruby/1.8/Qt/qtruby.rb:
def try_initialize(instance, *args)
initializer = instance.method(:initialize)
return callcc {
|continuation|
@@current_initializer = continuation
initializer.call(*args) <------------ Line 220
}
end
Any ideas?
Regards,
Alex
More information about the Kde-bindings
mailing list