[Edited to use much simpler code which shows the problem]
The following code gives a segmentation fault on the last line
require 'rubygems'
gem 'mysql'
gem 'dbi'
require 'dbi'
require 'mysql'
dsn = "DBI:Mysql:DATABASE:www.HOST.net" # redacted
dbh = DBI.connect(dsn, "USERNAME", "PASSWORD") # redacted
sth = dbh.execute("select * from TABLE where numeric_value is not null limit 10;") # redacted
It's definitely the last line that's causing the problem -- a print statement on the next line doesn't ever get executed.
Does anyone know why such a simple attempt would fail?
I'm running this on Windows, in case that makes a difference.
Thanks,
Ben