# Probable bug: net/ftp and mysql thread problem

**URL:** <https://www.ruby-forum.com/t/probable-bug-net-ftp-and-mysql-thread-problem/107116>\
**Category:** Ruby\
**Created:** [June 18, 2007, 11:50am UTC](https://www.ruby-forum.com/t/probable-bug-net-ftp-and-mysql-thread-problem/107116 "2007-06-18T11:50:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronaldfischer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/67e7ee/32.png) [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Post date:** [June 18, 2007, 11:50am UTC](https://www.ruby-forum.com/t/probable-bug-net-ftp-and-mysql-thread-problem/107116/1 "2007-06-18T11:50:33Z")

</div>

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)

Net::FTP.new(‘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 Net::FTP.new(…) line

Ronald
