Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Ruby 1.8.7 segmentation faults

Reply
Thread Tools

Ruby 1.8.7 segmentation faults

 
 
Leslie Viljoen
Guest
Posts: n/a
 
      11-02-2009
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)?

 
Reply With Quote
 
 
 
 
Lucas Nussbaum
Guest
Posts: n/a
 
      11-02-2009
On 02/11/09 at 21:27 +0900, Leslie Viljoen wrote:
> 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/+s...by1.8/+filebug
--
| Lucas Nussbaum
| http://www.velocityreviews.com/forums/(E-Mail Removed) http://www.lucas-nussbaum.net/ |
| jabber: (E-Mail Removed) GPG: 1024D/023B3F4F |

 
Reply With Quote
 
 
 
 
Leslie Viljoen
Guest
Posts: n/a
 
      11-02-2009
On Mon, Nov 2, 2009 at 2:41 PM, Lucas Nussbaum <(E-Mail Removed)> wrote:
> On 02/11/09 at 21:27 +0900, Leslie Viljoen wrote:
>> 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/+s...by1.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:atabaseError : INTERN (0) [RubyODBC] Cannot allocate SQLHENV

..to fix that I followed the steps here:
http://stackoverflow.com/questions/1...locate-sqlhenv

..which are:
wget http://www.ch-werner.de/rubyodbc/rub...-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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ruby on Rails, Vista, and Segmentation Faults Bob Florian Ruby 3 05-21-2008 08:51 PM
Segmentation faults using threads Mathias Python 8 02-14-2007 08:12 PM
Segmentation faults in Ruby-Wordnet Nuralanur@aol.com Ruby 0 02-15-2006 09:52 PM
strcat() and segmentation faults. But malloc() already done. Stanley S C Programming 16 12-22-2005 08:43 PM
catching segmentation faults from Ruby Iain Dooley Ruby 12 08-29-2005 01:09 PM



Advertisments