Hi,

same problem here. I can trigger segfaults with ruby using ODBC independent (?) of the ODBC driver used (tested with MySQL and MS SQL).

This most common ruby script
==========================================================
require 'dbi'

dbh = DBI.connect('DBI:ODBC:abcd', 'efgh', 'ijkl')
sth = dbh.prepare('SELECT 1')
sth.execute
print "pre\n"
p sth.fetch_array
print "post\n"
==========================================================

results in

==========================================================
$ ./test.rb
pre
/usr/lib/ruby/1.8/dbd/odbc/statement.rb:41: [BUG] Segmentation fault
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]

Aborted
==========================================================

It seems to be an issue with the row description returned by the ODBC manager, but I didn't dig into the iODBC/libodbc-ruby1.8 code to know for sure.

libodbc-ruby1.8 (used by libdbd-odbc-ruby1.8) is build against the iODBC manager in Debian Lenny. I build libodbc-ruby1.8 against unixODBC - and now it works:

==========================================================
$ ./test.rb
pre
[1]
post
==========================================================


Regards,
Thomas

PS: The bug should be filed against libodbc-ruby1.8 with severity grave IMHO.
--
supp...@ibh.de                              Tel. +49 351 477 77 30
www.ibh.de                                  Fax  +49 351 477 77 39

-----------------------------------------------------------------------
Dipl.-Ing. Thomas Liske
Netzwerk- und System-Design


IBH IT-Service GmbH                         Amtsgericht Dresden
Gostritzer Str. 61-63                       HRB 13626
D-01217 Dresden                             GF: Prof. Dr. Thomas Horn
Germany                                     VAT DE182302907
-----------------------------------------------------------------------
Ihr Partner für: LAN, WAN IP-Quality, Security, VoIP, SAN, Backup, USV
-----------------------------------------------------------------------
       professioneller IT-Service - kompetent und zuverlässig
-----------------------------------------------------------------------



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to