Re: Bug in myodbc with threads
Lawrenty Novitsky <[email protected]> Fri, 24 Feb 2012 00:12:53 +0200
| Newsgroups | gmane.comp.db.mysql.odbc |
|---|---|
| Organization | Oracle Corporation |
| Message-ID | <[email protected]> |
--------------060304000406060603040109 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by acsinet15.oracle.com id q1NMD8AQ023687 Hi, Please report a bug on bugs.mysql.com however that is known for us bug. last time we fixed similar problem we=20 deliberately neglected the case when connection is open in one thread=20 and closed in other, and that is what is your testcase seems doing. we=20 planned to fix it later, possibly that "later" has come - i may not=20 promise that though. lawrin On 23.02.2012 11:41, Pierre MARC wrote: > > Hello > > I'm not sure this is the correct place to report a bug. Please let me=20 > know the correct way if not. > > I have a problem with thread management in the odbc driver v.=20 > 05.01.0010 (tested on linux only for now). When we open a connection=20 > from one thread and close it from another thread we get the message: > > Error in my_thread_global_end(): 1 threads didn't exit > > We don't know what are the consequences of this situation but I'm=20 > afraid that it produces some kind of instability and/or memory leak. > > We use the odbc driver with a framework that creates pool of=20 > connections and several threads can access the odbc connection (one at=20 > a time because its synchronized). Sometimes because of time outs, the=20 > connection need to be closed and reopened by the thread. So this bug=20 > is for us a blocking situation. > > Attached is a simple program that reproduces the issue. Just compile=20 > it on linux. The usage is: > > testodbc2 -s DataSource -u User [-p Password] > > Here is the report on my test machine: > > Open db source TEST from thread 1720362784 > > Source successfully connected > > Database name: MySQL > > Database version: 5.0.51a-community-nt-log > > Driver name: libmyodbc5.so > > Driver version: 05.01.0010 > > Driver ODBC version: 03.52 > > Close db source from thread 1685018368 > > Error in my_thread_global_end(): 1 threads didn't exit > > Source successfully disconnected > > I tried with a 3.51 driver and the result is the same. > > Thank you to reply in order for me to know if this bug is well register= ed. > > Kind regards > > Pierre MARC > System Architect > Nirva Systems > > Tel & mobile: +33 6 71 43 42 86 > > http://www.nirva-systems.com (in English) > http://www.nirva-systems.com/fr/ (en Fran=E7ais) > > Nirva Systems - 51 rue Deleuvre - 69004 Lyon - France > > Discover Nirva's new features and functionalities for the fall 2011:=20 > http://www.nirva-systems.com/en/blog/NewsFall2011/NewsFall2011.html > > > --------------060304000406060603040109--