The following minimal application gives a segfault at exit when the
GC.stress line is uncommented. Any clues on how to debug this? Thanks!
begin
require ‘rubygems’
rescue LoadError
end
require ‘wx’
GC.stress = true
class ClipError2 < Wx::Frame
def initialize(parent)
super
end
end
Wx::App.run do
frame = ClipError2.new(nil)
frame.show
end
Here are the details of my environment.
$ uname -a
Linux hostname 2.6.32-358.18.1.el6.x86_64 #1 SMP Wed Aug 28 17:19:38 UTC
2013 x86_64 x86_64 x86_64 GNU/Linux
$ ruby --version
ruby 1.9.3p448 (2013-06-27) [x86_64-linux]
$ wx-config --list
Default config is gtk2-unicode-release-2.8
Default config will be used for output
wxRuby is built from source from the wxruby_2_0_stable branch. Let me
know if there is any more information I can provide.
Here are the first few lines of the stack trace.
$ ruby ~/transfer/clip_error2.rb
/user/rhinton/local/lib/ruby/site_ruby/1.9.1/wx/classes/app.rb:16: [BUG]
Segmentation fault
ruby 1.9.3p448 (2013-06-27) [x86_64-linux]
– Control frame information
c:0006 p:---- s:0017 b:0017 l:000016 d:000016 CFUNC :on_run
c:0005 p:---- s:0015 b:0015 l:000014 d:000014 CFUNC :main_loop
c:0004 p:0053 s:0012 b:0012 l:000011 d:000011 METHOD
/user/rhinton/local/lib/ruby/site_ruby/1.9.1/wx/classes/app.rb:16
c:0003 p:0080 s:0006 b:0006 l:0000f8 d:002448 EVAL
/user/rhinton/transfer/clip_error2.rb:15
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0000f8 d:0000f8 TOP
– Ruby level backtrace information
/user/rhinton/transfer/clip_error2.rb:15:in <main>' /user/rhinton/local/lib/ruby/site_ruby/1.9.1/wx/classes/app.rb:16:in
run’
/user/rhinton/local/lib/ruby/site_ruby/1.9.1/wx/classes/app.rb:16:in
main_loop' /user/rhinton/local/lib/ruby/site_ruby/1.9.1/wx/classes/app.rb:16:in
on_run’
– C level backtrace information
ruby() [0x525555]
ruby() [0x569ba6]
ruby(rb_bug+0xb3) [0x569d13]
ruby() [0x4b1759]
/lib64/libpthread.so.0() [0x3632e0f500]
– Other runtime information
- Loaded script: /user/rhinton/transfer/clip_error2.rb
…
Ryan H.
L-3 Communications / Communication Systems West
[email protected]