This is where you now type ‘where’ at the (gdb) prompt to get a
backtrace of the fault. However since it says there are “no debugging
symbols found” it may not actually help us.
I’ll try that again, although I don’t know how relevant this test is
after all the to-ing and fro-ing, but for what it’s worth…
$ gdb --args ruby -rubygems minimal.rb
GNU gdb Fedora (6.8-29.fc10)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type “show
copying”
and “show warranty” for details.
This GDB was configured as “x86_64-redhat-linux-gnu”…
(gdb) r
Starting program: /usr/bin/ruby -rubygems minimal.rb
[Thread debugging using libthread_db enabled]
[New Thread 0x7ffff7fe26f0 (LWP 3132)]
Program received signal SIGSEGV, Segmentation fault.
0x000000315ba92530 in wxFontMapperBase::Get () from
/usr/lib64/libwx_baseu-2.8.so.0
Missing separate debuginfos, use: debuginfo-install
GConf2-2.24.0-1.fc10.x86_64 ORBit2-2.14.16-1.fc10.x86_64
SDL-1.2.13-6.fc10.x86_64 atk-1.24.0-1.fc10.x86_64
bug-buddy-2.24.2-1.fc10.x86_64 cairo-1.8.0-1.fc10.x86_64
dbus-glib-0.76-3.fc10.x86_64 dbus-libs-1.2.4-2.fc10.x86_64
e2fsprogs-libs-1.41.3-2.fc10.x86_64 elfutils-libelf-0.137-3.fc10.x86_64
expat-2.0.1-5.x86_64 fontconfig-2.6.0-3.fc10.x86_64
freetype-2.3.7-2.fc10.x86_64 glib2-2.18.4-1.fc10.x86_64
gstreamer-0.10.21-2.fc10.x86_64
gstreamer-plugins-base-0.10.21-2.fc10.x86_64
gtk-nodoka-engine-0.7.2-1.fc10.x86_64 gtk2-2.14.7-1.fc10.x86_64
libICE-1.0.4-4.fc10.x86_64 libSM-1.1.0-2.fc10.x86_64
libX11-1.1.4-6.fc10.x86_64 libXau-1.0.4-1.fc10.x86_64
libXcomposite-0.4.0-5.fc10.x86_64 libXcursor-1.1.9-3.fc10.x86_64
libXdamage-1.1.1-4.fc9.x86_64 libXdmcp-1.0.2-6.fc10.x86_64
libXext-1.0.4-1.fc9.x86_64 libXfixes-4.0.3-4.fc10.x86_64
libXft-2.1.13-1.fc10.x86_64 libXi-1.1.3-4.fc9.x86_64
libXinerama-1.0.3-2.fc10.x86_64 libXrandr-1.2.3-1.fc10.x86_64
libXrender-0.9.4-3.fc9.x86_64 libcanberra-0.10-3.fc10.x86_64
libcanberra-gtk2-0.10-3.fc10.x86_64 libcap-2.10-2.fc10.x86_64
libgcc-4.3.2-7.x86_64 libjpeg-6b-43.fc10.x86_64
libogg-1.1.3-9.fc9.x86_64 libpng-1.2.34-1.fc10.x86_64
libselinux-2.0.73-1.fc10.x86_64 libstdc+±4.3.2-7.x86_64
libtdb-1.1.1-26.fc10.x86_64 libtiff-3.8.2-11.fc10.x86_64
libtool-ltdl-1.5.26-4.fc10.x86_64 libvorbis-1.2.0-5.fc10.x86_64
libxcb-1.1.91-5.fc10.x86_64 libxml2-2.7.3-1.fc10.x86_64
mesa-libGLU-7.2-0.15.fc10.x86_64 pango-1.22.3-1.fc10.x86_64
pixman-0.12.0-2.fc10.x86_64 wxBase-2.8.9-1.fc10.x86_64
wxGTK-2.8.9-1.fc10.x86_64 wxGTK-gl-2.8.9-1.fc10.x86_64
zlib-1.2.3-18.fc9.x86_64
(gdb) where
#0 0x000000315ba92530 in wxFontMapperBase::Get () from
/usr/lib64/libwx_baseu-2.8.so.0
#1 0x000000315ba933f9 in wxFontMapperModule::OnInit () from
/usr/lib64/libwx_baseu-2.8.so.0
#2 0x000000315baabcde in wxModule::DoInitializeModule () from
/usr/lib64/libwx_baseu-2.8.so.0
#3 0x000000315baabebc in wxModule::InitializeModules () from
/usr/lib64/libwx_baseu-2.8.so.0
#4 0x000000315ba99a1a in wxEntryStart () from
/usr/lib64/libwx_baseu-2.8.so.0
#5 0x000000315ba99b4b in wxEntry () from
/usr/lib64/libwx_baseu-2.8.so.0
#6 0x00007ffff6b9d5d6 in wxRubyApp::main_loop () from
/usr/lib/ruby/gems/1.8/gems/wxruby-1.9.10-x86_64-linux/lib/wxruby2.so
#7 0x00007ffff6b9aa17 in ?? () from
/usr/lib/ruby/gems/1.8/gems/wxruby-1.9.10-x86_64-linux/lib/wxruby2.so
#8 0x0000003152c3a3e0 in rb_call0 (klass=140737348220440,
recv=140737296067360, id=25337, oid=25337, argc=0, argv=0x0,
body=0x7ffff7a58738, flags=) at eval.c:5870
#9 0x0000003152c3a59a in rb_call (klass=140737348220440,
recv=140737296067360, mid=25337, argc=0, argv=0x0, scope=0,
self=140737348220440) at eval.c:6117
#10 0x0000003152c345f0 in rb_eval (self=140737348220440, n=) at eval.c:3490
#11 0x0000003152c3a2e3 in rb_call0 (klass=140737348220360,
recv=140737348220440, id=5129, oid=5129, argc=0, argv=0x0,
body=0x7ffff490ed58, flags=) at eval.c:6021
#12 0x0000003152c3a59a in rb_call (klass=140737348220360,
recv=140737348220440, mid=5129, argc=0, argv=0x0, scope=0,
self=140737354003280) at eval.c:6117
#13 0x0000003152c345f0 in rb_eval (self=140737354003280, n=) at eval.c:3490
#14 0x0000003152c37d70 in rb_eval (self=140737354003280, n=) at eval.c:3220
#15 0x0000003152c472db in ruby_exec_internal () at eval.c:1642
#16 0x0000003152c47325 in ruby_exec () at eval.c:1662
#17 0x0000003152c47352 in ruby_run () at eval.c:1672
#18 0x0000000000400833 in main (argc=3, argv=0x7fffffffe368, envp=) at main.c:48
(gdb)
(Alex) Not so good. Since you earlier had problems on this file before you
installed gcc, you could try doing ‘rake clean’ before building the gem
again.
(Mario) run rake clean, and rake clean_src, then run the previous rake
command to build the gem, and to ensure that your installing the local
built gem, do sudo gem install wxruby-1.9.10-x86_64-linux.gem
I followed this invaluable advice…
$ ruby minimal.rb
Guess what - IT WORKED!!! Many thanks for your help throughout all
this. I was starting to feel very much out of my depth and confess to
being close to trying a different 64-bit distro or even reverting to a
32-bit one to get it to work. Great support, you guys, well done.
I hope that, in some way, my experiences may have contributed something
to your own efforts in development. With any luck I’m now on my way to
experimenting and developing in this exciting environment. I hope you
don’t mind if I fire the odd question at you in this forum.
I would be interested to know why compiling my own wxruby gem worked
successfully (eventually, with your help) and the downloadable one
didn’t?