[wxruby-users] Segmentation Fault.

Christos Vasilakis lists at ruby-forum.com
Mon Aug 18 06:24:31 EDT 2008


Hi Alex,

sorry for taking a bit longer to replay, other things kept me busy 
during the weekend and I didn't have time to sit in the computer.

Anyway, here is the list of things I did.

I downloaded the svn version of wxwidgets

root at casper:/home/cvasilak/wxruby-svn# svn co 
svn://rubyforge.org/var/svn/wxruby/trunk/wxruby2
....
Checked out revision 1758.

Tried to run a program:
root at casper:/home/cvasilak/wxruby-svn# ruby /home/cvasilak/helloworld.rb
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in 
`gem_original_require': no such file to load -- wx (LoadError)
  from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in 
`require'
  from /home/cvasilak/helloworld.rb:1

It's OK since the wx binding is not installed yet in the system.

Tried to launch with the -I lib argument

root at casper:/home/cvasilak/wxruby-svn/wxruby2# ruby -I lib/ 
/home/cvasilak/helloworld.rb
/home/cvasilak/helloworld.rb:4: [BUG] Segmentation fault
ruby 1.8.6 (2007-09-24) [i486-linux]

Aborted


I get the segmentation fault. Then I tried running it with gdb as you 
suggested:

gdb --args ruby -I lib /home/cvasilak/helloworld.rb
....
....
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7d29b60 (LWP 9022)]
0xb5f6bf74 in ?? () from /lib/libselinux.so.1
(gdb) whe
#0  0xb5f6bf74 in ?? () from /lib/libselinux.so.1
#1  0xb5f6564e in ?? () from /lib/libselinux.so.1
#2  0xb5f5e100 in ?? () from /lib/libselinux.so.1
#3  0xb5f6d7bc in _fini () from /lib/libselinux.so.1
#4  0xb7fe0fdf in ?? () from /lib/ld-linux.so.2
#5  0xb7d58084 in exit () from /lib/tls/i686/cmov/libc.so.6
#6  0xb7f1ec85 in ruby_stop () from /usr/lib/libruby1.8.so.1.8
#7  0xb7f29cf1 in ruby_run () from /usr/lib/libruby1.8.so.1.8
#8  0x080486bd in main ()
(gdb)


I tried the other example that popups a window first and then segfaults 
upon exit but I get the same error in gdb

gdb --args ruby -I lib /home/cvasilak/okcancel.rb
...
...
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7d0ab60 (LWP 9032)]
0xb5f4cf74 in ?? () from /lib/libselinux.so.1
(gdb) whe
#0  0xb5f4cf74 in ?? () from /lib/libselinux.so.1
#1  0xb5f4664e in ?? () from /lib/libselinux.so.1
#2  0xb5f3f100 in ?? () from /lib/libselinux.so.1
#3  0xb5f4e7bc in _fini () from /lib/libselinux.so.1
#4  0xb7fc1fdf in ?? () from /lib/ld-linux.so.2
#5  0xb7d39084 in exit () from /lib/tls/i686/cmov/libc.so.6
#6  0xb7effc85 in ruby_stop () from /usr/lib/libruby1.8.so.1.8
#7  0xb7f0acf1 in ruby_run () from /usr/lib/libruby1.8.so.1.8
#8  0x080486bd in main ()


Let me know if you need more information

Regards,
Christos
-- 
Posted via http://www.ruby-forum.com/.


More information about the wxruby-users mailing list