Probable bug: net/ftp and mysql thread problem

I found a bug, which seems to appear in Ruby 1.8.5 and 1.8.6
under Windows, when net/ftp and the mysql 2.7.3 gem are used
in the same program.

The but can be demonstrated with the following program:

require ‘mysql’
require ‘net/ftp’

(replace your host/user/pwd here)‘host’,‘user’,‘passwd’)

If I run this program, I get the error message

Error in my_thread_global_end(): 1 threads didn’t exit

The error disappears if I either

  • comment out the require ‘mysql’ line
  • comment out the…) line