[wxruby-development] [ wxruby-Bugs-28084 ] Segmentation fault on Ruby 1.9.1 (Linux 32bit CentOS 5.4)

noreply at rubyforge.org noreply at rubyforge.org
Mon Apr 12 14:40:19 EDT 2010


Bugs item #28084, was opened at 2010-04-12 18:40
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=218&aid=28084&group_id=35

Category: Incorrect behavior
Group: current
Status: Open
Resolution: None
Priority: 3
Submitted By: Mike Hook (zagglez)
Assigned to: Nobody (None)
Summary: Segmentation fault on Ruby 1.9.1 (Linux 32bit CentOS 5.4)

Initial Comment:
Hi I get a segmentation fault when running ANY wxRuby app - even minimal.rb on a reasonably fresh CentOS installation.

My configuration:
Linux - 32bit - x86 - CentOS5.4

$uname -a
Linux <host> 2.6.18-164.15.1.el5 #1 SMP Wed Mar 17 11:37:14 EDT 2010 i686 i686 i386 GNU/Linux

$ ruby --version
ruby 1.9.1p243 (2009-07-16 revision 24175) [i686-linux]
(but I get exactly the same behaviour from ruby-1.9.1-p378).

fresh compile and build (actually two runs through in case a ruby was required to assist part of the installation - eg for openssl - first time around).

$rpm -qa | grep wxGTK
wxGTK-2.8.10-1.el5.rf
wxGTK-devel-2.8.10-1.el5.rf

$ wx-config --version
2.8.10

SELINUX access problem fixed with:
sudo /usr/bin/chcon -t textrel_shlib_t '/usr/local/lib/ruby/gems/1.9.1/gems/wxruby-ruby19-2.0.1-x86-linux/lib/wxruby2.so'

$ gem --version
1.3.6

$ gem list

*** LOCAL GEMS ***

archive-tar-minitar (0.5.2)
columnize (0.3.1)
linecache19 (0.5.11)
ruby-debug-base19 (0.11.23)
ruby-debug-ide19 (0.4.12)
ruby-debug19 (0.11.6)
ruby_core_source (0.1.4)
wxruby-ruby19 (2.0.1)


===============  ERROR REPORT================
in the wxruby gem samples directory:
$ ruby minimal/minimal.rb 
/usr/local/lib/ruby/gems/1.9.1/gems/wxruby-ruby19-2.0.1-x86-linux/lib/wx/keyword_ctors.rb:168: [BUG] Segmentation fault
ruby 1.9.1p243 (2009-07-16 revision 24175) [i686-linux]

-- control frame ----------
c:0012 p:---- s:0054 b:0054 l:000053 d:000053 CFUNC  :initialize
c:0011 p:0069 s:0044 b:0044 l:000043 d:000043 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/wxruby-ruby19-2.0.1-x86-linux/lib/wx/keyword_ctors.rb:168
c:0010 p:0021 s:0034 b:0034 l:000033 d:000033 METHOD minimal/minimal.rb:19
c:0009 p:---- s:0026 b:0026 l:000025 d:000025 FINISH
c:0008 p:---- s:0024 b:0024 l:000023 d:000023 CFUNC  :new
c:0007 p:0029 s:0020 b:0020 l:00080c d:000019 LAMBDA minimal/minimal.rb:75
c:0006 p:---- s:0017 b:0017 l:000016 d:000016 FINISH
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 /usr/local/lib/ruby/gems/1.9.1/gems/wxruby-ruby19-2.0.1-x86-linux/lib/wx/classes/app.rb:16
c:0003 p:0062 s:0006 b:0006 l:00080c d:000bcc EVAL   minimal/minimal.rb:73
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:00080c d:00080c TOP   
---------------------------
-- Ruby level backtrace information-----------------------------------------
/usr/local/lib/ruby/gems/1.9.1/gems/wxruby-ruby19-2.0.1-x86-linux/lib/wx/keyword_ctors.rb:168:in `initialize'
/usr/local/lib/ruby/gems/1.9.1/gems/wxruby-ruby19-2.0.1-x86-linux/lib/wx/keyword_ctors.rb:168:in `initialize'
minimal/minimal.rb:19:in `initialize'
minimal/minimal.rb:75:in `new'
minimal/minimal.rb:75:in `block in <main>'
/usr/local/lib/ruby/gems/1.9.1/gems/wxruby-ruby19-2.0.1-x86-linux/lib/wx/classes/app.rb:16:in `main_loop'
/usr/local/lib/ruby/gems/1.9.1/gems/wxruby-ruby19-2.0.1-x86-linux/lib/wx/classes/app.rb:16:in `run'
minimal/minimal.rb:73:in `<main>'

-- C level backtrace information -------------------------------------------
0x811c1a8 ruby(rb_vm_bugreport+0x48) [0x811c1a8]
0x81482e8 ruby [0x81482e8]
0x814836b ruby(rb_bug+0x2b) [0x814836b]
0x80cf696 ruby [0x80cf696]
0x4ef440 [0x4ef440]
0x5987f9 /usr/lib/libwx_baseu-2.8.so.0(_ZN12wxStringBase8InitWithEPKwjj+0x89) [0x5987f9]
0x11082b8 /usr/local/lib/ruby/gems/1.9.1/gems/wxruby-ruby19-2.0.1-x86-linux/lib/wxruby2.so(_ZN16SwigDirector_App15OnAssertFailureEPKwiS1_S1_+0x38) [0x11082b8]
0x1825281 /usr/lib/libwx_gtk2u_core-2.8.so.0(_ZN8wxWindow18SetLayoutDirectionE17wxLayoutDirection+0x81) [0x1825281]
0x1825627 /usr/lib/libwx_gtk2u_core-2.8.so.0(_ZN8wxWindow12PostCreationEv+0x247) [0x1825627]
0x181ebf5 /usr/lib/libwx_gtk2u_core-2.8.so.0(_ZN19wxTopLevelWindowGTK6CreateEP8wxWindowiRK8wxStringRK7wxPointRK6wxSizelS4_+0x3b5) [0x181ebf5]
0x1880d7f /usr/lib/libwx_gtk2u_core-2.8.so.0(_ZN7wxFrame6CreateEP8wxWindowiRK8wxStringRK7wxPointRK6wxSizelS4_+0x4f) [0x1880d7f]
0x121793a /usr/local/lib/ruby/gems/1.9.1/gems/wxruby-ruby19-2.0.1-x86-linux/lib/wxruby2.so(_ZN20SwigDirector_wxFrameC1EmP8wxWindowiRK8wxStringRK7wxPointRK6wxSizelS4_+0x5a) [0x121793a]
0x12184bc /usr/local/lib/ruby/gems/1.9.1/gems/wxruby-ruby19-2.0.1-x86-linux/lib/wxruby2.so [0x12184bc]
0x1218d71 /usr/local/lib/ruby/gems/1.9.1/gems/wxruby-ruby19-2.0.1-x86-linux/lib/wxruby2.so [0x1218d71]
0x810d386 ruby [0x810d386]
0x810e967 ruby [0x810e967]
0x810f7d4 ruby [0x810f7d4]
0x8111dc4 ruby [0x8111dc4]
0x8115fc5 ruby [0x8115fc5]
0x811805a ruby [0x811805a]
0x810f20a ruby(rb_funcall2+0x10a) [0x810f20a]
0x8059e82 ruby(rb_obj_call_init+0x42) [0x8059e82]
0x80812ba ruby(rb_class_new_instance+0x2a) [0x80812ba]
0x810d386 ruby [0x810d386]
0x810e967 ruby [0x810e967]
0x810f7d4 ruby [0x810f7d4]
0x8111dc4 ruby [0x8111dc4]
0x8115fc5 ruby [0x8115fc5]
0x81164e6 ruby [0x81164e6]
0x8116981 ruby(rb_vm_invoke_proc+0x81) [0x8116981]
0x8118103 ruby [0x8118103]
0x81183fd ruby(rb_funcall+0x15d) [0x81183fd]
0x11095bb /usr/local/lib/ruby/gems/1.9.1/gems/wxruby-ruby19-2.0.1-x86-linux/lib/wxruby2.so(_ZN9wxRubyApp6OnInitEv+0x6b) [0x11095bb]
0x5749f0 /usr/lib/libwx_baseu-2.8.so.0(_Z7wxEntryRiPPw+0x40) [0x5749f0]
0x1108fb8 /usr/local/lib/ruby/gems/1.9.1/gems/wxruby-ruby19-2.0.1-x86-linux/lib/wxruby2.so [0x1108fb8]
0x810d386 ruby [0x810d386]
0x810e967 ruby [0x810e967]
0x810f7d4 ruby [0x810f7d4]
0x8111dc4 ruby [0x8111dc4]
0x8115fc5 ruby [0x8115fc5]
0x8116105 ruby(rb_iseq_eval_main+0x95) [0x8116105]
0x805a92f ruby(ruby_exec_node+0x9f) [0x805a92f]
0x805b982 ruby(ruby_run_node+0x42) [0x805b982]
0x80594f0 ruby(main+0x60) [0x80594f0]
0x116e9c /lib/libc.so.6(__libc_start_main+0xdc) [0x116e9c]
0x80593d1 ruby [0x80593d1]

[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Aborted




----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=218&aid=28084&group_id=35


More information about the wxruby-development mailing list