[Tioga-users] tioga 1.4 segmentation fault

Edwin edder at tkwsping.nl
Sat Feb 24 10:25:44 EST 2007


Sorry for reacting so slow

>>>   It might not stop segfaults, but they really should appear on another
>>> test (not Dtable anymore).
>>
>> The tests seem to run fine (not sure if they always did):
>> edwin at vimes:~/tmp/tioga-1.4/tests$ ruby ts_Tioga.rb
>> [...]
>> 78 tests, 724 assertions, 0 failures, 0 errors
>
>   OK. That should be good news, shouldn't it ?

Ofcourse, but I didn't test this before, so not a hundred percent sure  
that this was a problem before.

>> But still a segmentation fault while running tioga
>> (gdb) run /usr/bin/tioga sine.rb -0
>> Starting program: /usr/bin/ruby /usr/bin/tioga sine.rb -0
>> loading /home/edwin/tmp/samples/sine.rb
>
>   Hum. Did you make sure you have no files from an old tioga
> installation somewhere ? (I got caught by those many times...).

I uninstalled the gem and then checked by hadn if it got everything. I am  
pretty confident I got everything (e.g. using locate ioga).

>   Did you try running other files in samples ? Do they all show the same
> behavior ? What about ctioga (if you're using it) ?

I'm not using ctioga, I tried to install it by hand, but that also lead to  
problems (see bottom of the email), then I installed the gem without the  
tioga dependency (because I needed it to use the tioga version installed  
by hand), but then ctioga can't find tioga while running it.

Other files (such as samples/plots.rb) cause the same segmentation fault

>> Program received signal SIGSEGV, Segmentation fault.
>> 0x007d6630 in ?? ()
>
>   What does the bt command of gdb says ?

(gdb) run /usr/bin/tioga plots.rb -1
Starting program: /usr/bin/ruby /usr/bin/tioga plots.rb -1
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
loading /home/edwin/tmp/tioga-1.4/samples/plots/plots.rb

Program received signal SIGSEGV, Segmentation fault.
0x007d6630 in ?? ()
(gdb) bt
#0  0x007d6630 in ?? ()
#1  0xbffb2c34 in ?? ()
#2  0x00000007 in ?? ()
#3  0x00000000 in ?? ()


Problems installing Ctioga:

  make install
/usr/bin/install -c -m 644 ./lib/movingarrays.rb  
/usr/lib/ruby/site_ruby/1.8/CTioga/movingarrays.rb
/usr/bin/install -c -m 644 ./lib/backends.rb  
/usr/lib/ruby/site_ruby/1.8/CTioga/backends.rb
/usr/bin/install -c -m 644 ./lib/debug.rb  
/usr/lib/ruby/site_ruby/1.8/CTioga/debug.rb
/usr/bin/install -c -m 644 ./lib/styles.rb  
/usr/lib/ruby/site_ruby/1.8/CTioga/styles.rb
/usr/bin/install -c -m 644 ./lib/curves.rb  
/usr/lib/ruby/site_ruby/1.8/CTioga/curves.rb
/usr/bin/install -c -m 644 ./lib/elements.rb  
/usr/lib/ruby/site_ruby/1.8/CTioga/elements.rb
/usr/bin/install -c -m 644 ./lib/tioga_primitives.rb  
/usr/lib/ruby/site_ruby/1.8/CTioga/tioga_primitives.rb
/usr/bin/install -c -m 644 ./lib/plotmaker.rb  
/usr/lib/ruby/site_ruby/1.8/CTioga/plotmaker.rb
ruby18 -r fileutils -e 'FileUtils.install(ARGV[0],ARGV[1],:mode => 0755)'  
bin/ctioga /usr/bin/ctioga
ruby18 -r fileutils -e 'FileUtils.install(ARGV[0],ARGV[1],:mode => 0755)'  
bin/ctable /usr/bin/ctable
make: *** No rule to make target `backends.rb', needed by  
`install_lib_sciyag'.  Stop.

ctioga
/usr/lib/ruby/site_ruby/1.8/CTioga/tioga_primitives.rb:17:in `require': no  
such file to load -- MetaBuilder/parameters (LoadError)
         from /usr/lib/ruby/site_ruby/1.8/CTioga/tioga_primitives.rb:17
         from /usr/lib/ruby/site_ruby/1.8/CTioga/plotmaker.rb:28:in  
`require'
         from /usr/lib/ruby/site_ruby/1.8/CTioga/plotmaker.rb:28
         from /usr/bin/ctioga:22:in `require'
         from /usr/bin/ctioga:22

I then tried to install MetaBuilder, but there was no mkmf.rb file =>
ruby extconf.rb
extconf.rb:1:in `require': no such file to load -- mkmf2 (LoadError)
         from extconf.rb:1
make install
make: *** No rule to make target `install'.  Stop


Thanks for all the help.

Edwin




More information about the Tioga-users mailing list