Error in my_thread_global_end(): 3 threads didn't exit

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

developer123
Forum Newbie
Posts: 1
Joined: Tue May 08, 2007 1:38 am

Error in my_thread_global_end(): 3 threads didn't exit

Post by developer123 »

I have installed php 5.2.2 (IIS) in window xp. Got lots of errors like "Could not load modules, so i have commented the required dlls.
At last i got the error like require_once("SAM/php_sam.php") - Here I have commented the line php_sam.dll, but now i am getting the following error.

Error in my_thread_global_end(): 3 threads didn't exit

Any idea to resolve this? Thanks in Advance.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

That isn't a standard function that I'm aware of. Apart of what code is it defined?
servswitch
Forum Newbie
Posts: 1
Joined: Sat May 12, 2007 4:02 pm

Fix: Error in my_thread_global_end():

Post by servswitch »

Hi,

I had the same Error Messages after Installing Mysql 5.0.41 and PHP 5.2.2 on Windwos2003 with IIS6
Tryed many things - deinstall - downgrade PHP as Well Mysql. - nothing helps correct.

After many hours i fond the Download Links for the PHP-Connectors on
http://dev.mysql.com/downloads/connector/php/

http://dev.mysql.com/get/Downloads/Conn ... /from/pick
http://dev.mysql.com/get/Downloads/Conn ... /from/pick

download and unzipp the files - replace in My PHP and PHP/ext Folder -
WONDER it works now without Error Message and also even faster.

Hope thats also THE HELP for You
kind regards
donl
Forum Newbie
Posts: 1
Joined: Fri May 25, 2007 4:14 pm

the connector downloads did not work for me

Post by donl »

Servswitch,

I am also running MySQL 5.0.41 and PHP 5.2.2 and encountering the same error.

I tried replacing the three files you mentioned but I'm still having the problem.

You mentioned that you deinstalled and downgraded first. But did you end up reinstalling MySQL 5.0.41 and PHP 5.2.2 before replacing the three files or did you stay downgraded? What versions of MySQL and PHP are you currently running and working with. Thanks.

DonL
BigAL
Forum Newbie
Posts: 3
Joined: Wed May 30, 2007 2:35 pm

It works for me.

Post by BigAL »

I am using -> MySQL 5.0.24, PHP 5.2.2, IIS 5.1, Win XP Pro sp2, IE7

The problem is not in the C:\PHP\ext\php_mysql.dll and C:\PHP\ext\php_mysqli.dll
The problem exists in the C:\PHP\libmysql.dll 1,496KB 5/2/2007 7:23 PM
Replace C:\PHP\libmysql.dll with the copy from MySQL installation
(C:\Program Files\MySQL\MySQL Server 5.0\bin\libmySQL.dll 1,484KB 7/28/2006 1:05 PM)
You may have different modification dates, just use the copy from MySql installation.....

To test if it works create phpcfg.php with the following:
<HTML>
<HEAD>
<TITLE>Current PHP Configuration</TITLE>
</HEAD>
<BODY>
<?php
phpinfo();
?>
</BODY>
</HTML>

Scroll to the end of the result on browser, you should not see the ugly message:
Error in my_thread_global_end(): 3 threads didn't exit

Good Luck ! :)
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Whoa. Four of them. :-p
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Have any of you guys submitted a bug report yet? That is something that should not happen out of the box.
BigAL
Forum Newbie
Posts: 3
Joined: Wed May 30, 2007 2:35 pm

Did not submit bug report.

Post by BigAL »

Did not submit a bug report.

I found similar bug reports on php.net

I just submitted my solution for this board.

Thanks...
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Good good. I think it is something that needs fixing so hopefully the core team will be spending some time on this.
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

A php program of mine was running in command-mode which was retrieving XML feeds from the web, and in the middle, the net got disconnected and I did CTRL+C to end it after which this msg occurred :

Code: Select all

Error in my_thread_global_end(): 3 threads didn't exit
But theres nothing to with MySQL or IIS which others seem to have reported.

Apache 2.0.58 and PHP 5.2.3

EDIT: This error occurs whenever you hit CTRL+C
wazupbouy
Forum Newbie
Posts: 3
Joined: Thu Sep 06, 2007 12:50 pm

Post by wazupbouy »

I was receiving the same error message "Error in my_thread_global_end(): 3 threads didn't exit" and phpMyAdmin was running terribly slow. I am running PHP Version 5.2.4, MySQL Version 5.0.45, and phpMyAdmin Version 2.11.0 on Windows XP Pro w/SP2b.

I replaced the libmysql.dll file with the file downloaded from the link above. phpMyAdmin now runs very quickly, but I now get an error message reading "Your PHP MySQL library version 5.0.27 differs from your MySQL server version 5.0.45. This may cause unpredictable behavior."

Are any of you getting the same type of message?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

libmysql.dll is your client library file. Perhaps upgrading that through a newer download of the Windows binary might help.
wazupbouy
Forum Newbie
Posts: 3
Joined: Thu Sep 06, 2007 12:50 pm

Post by wazupbouy »

I just installed all of this today from the latest binaries. All versions are current and "stable", but I stil received the error message.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

And just to confirm, this is a Windows system right?
wazupbouy
Forum Newbie
Posts: 3
Joined: Thu Sep 06, 2007 12:50 pm

Post by wazupbouy »

Yes.

PHP Version 5.2.4
MySQL Version 5.0.45
phpMyAdmin Version 2.11.0
Windows XP Pro w/SP2b running IIS

MySQL Version 5.0.45 was just downloaded yesterday and installed today. The package must have a bug, but using the older version dll file does give me the other error message.

I looked to see if there was another connector at http://dev.mysql.com/downloads/connector/php/, but the latest is for version 5.0.27. I could unistall version 5.0.45 and install version 5.0.27, but I cannot find this old version on the mySQL site.

I am sure I am not the only one having this issue.....
Post Reply