Ruby 1.8.7 segmentation faults

L

Leslie Viljoen

Hi everyone!

I am getting segmentation faults in several innocuous looking places
in ruby programs since running them
on Ubuntu 9.10 (Karmic).

This simple program:

require 'dbi'
c = DBI.connect('dbi:ODBC:axon-insight', 'sa', 'fl3nd3r^')
p c.select_all('select top 15 * from log_device_healths')

Produces:

/usr/lib/ruby/gems/1.8/gems/dbd-odbc-0.2.4/lib/dbd/odbc/statement.rb:41:
[BUG] Segmentation fault
ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]
Aborted

..running exactly the same code, I also have also once gotten:
/usr/lib/ruby/gems/1.8/gems/dbd-odbc-0.2.4/lib/dbd/odbc/database.rb:79:
[BUG] Segmentation fault


What should I do?
Where do I report this bug?
Is there any way I can enable a debug mode and help with a more
detailed bug report (or fix it myself)?
 
L

Leslie Viljoen

Hi everyone!

I am getting segmentation faults in several innocuous looking places
in ruby programs since running them
on Ubuntu 9.10 (Karmic).

[...]

What should I do?
Where do I report this bug?

https://bugs.launchpad.net/ubuntu/+source/ruby1.8/+filebug

For anyone else who might run into this....

I was running into this error when trying to use RubyODBC
(ActiveRecord connecting to mssql server):
DBI::DatabaseError : INTERN (0) [RubyODBC] Cannot allocate SQLHENV

..to fix that I followed the steps here:
http://stackoverflow.com/questions/1419397/rubyodbc-cannot-allocate-sqlhenv

..which are:
wget http://www.ch-werner.de/rubyodbc/ruby-odbc-0.9997.tar.gz
tar xzvf ruby-odbc-0.9997.tar.gz
cd ruby-odbc-0.9997
ruby extconf.rb --with-dlopen
make
sudo make install

..to compile, this requires either libiodbc2-dev or unixodbc-dev, and
I had tried libiodbc2-dev.
I went back and removed iodbc and installed unixodbc-dev, recompiled
rubyodbc and now it works!

I will try and figure out the right people to report this issue to.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top