ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-dev
php-dev
#41350 [Com]: Error in my_thread_global_end()
by Amoo_miki At Yahoo Dot Com other posts by this author
Jan 10 2008 9:50AM messages near this date
#41350 [Com]: Error in my_thread_global_end() | #41350 [Com]: Error in my_thread_global_end()
ID:               41350
 Comment by:       amoo_miki at yahoo dot com
 Reported By:      graham at directhostinguk dot com
 Status:           No Feedback
 Bug Type:         MySQL related
 Operating System: Windows 2003
 PHP Version:      5.2.3
 New Comment:

This is caused by windows security:

to be sure:
1) Check if the drive where PHP is installed is an NTFS partition.
2) If yes, "Read & Execute" for "Everyone" for the "ext" folder.

php -v at the command-line should not show you the error anymore.


Previous Comments:
------------------------------------------------------------------------

[2008-01-07 12:14:01] jaco at jump dot co dot za

I was able to reproduce this on a very basic instalation:

Apache 2.2.4
PHP 5.2.5
Windows 2003 Server
NO Database installed

<?
$fp = fsockopen("192.168.1.105", 3312);
fclose($fp)
echo "DONE";
exit;
?> 

This executes 100%, and gives no errors, but as soon as I stop apache,
it gives me the message in the apache error log

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

So it seems to me more of a sockets problem than a mysql problem.

When I run the same script in CLI, I get no error.

------------------------------------------------------------------------

[2008-01-04 21:44:17] jaco at jump dot co dot za

I am having the same and more problems. 

I am running:

Apache 2.2.6
MySQL 5.0.45
PHP 5.2.5
Windows Server 2003 R2 Standard SP2

2 x Quad Core Xeon
4Gb RAM

IIS Installed for SMTP, FTP and WWW on port 443 for a single .NET
Webservice access (NO PHP connectors installed for IIS). But I am sure
this is not IIS related, becuase it still happens even with IIS stopped



Whenever apache tries to recycle threads I get:

** Apache Error Log **

[Fri Jan 04 22:37:38 2008] [notice] Child 324: All worker threads have
exited.
Error in my_thread_global_end(): 1 threads didn't exit
exiting because it reached MaxRequestsPerChild. Signaling the parent to
restart a new child process.
[Fri Jan 04 22:37:42 2008] [notice] Parent: Received restart signal --
Restarting the server.

************************

Note the time difference between the first log and the last log

This then causes my Apache to crash and restart.

Then I tried to download the latest snapshot of PHP, installed it, but
then Apache woould not start at all, just gives me a starting status,
but does not het out of it.

My problem is also that there is hundreds of php files running and our
site is very active, and I have NO idea what is causing this problem.
The PHP error log is clean, but the following also shows up AFTER apache
crashes.

080104 11:24:26 [Warning] Aborted connection 16865 to db: '********'
user: '*****' host: 'localhost' (Got an error reading communication
packets)

But I am sure that this is just caused by apache that have crashed and
the already open calls to the database that was not terminated by the
php script.


These messages apears in the event log after the crash:

Faulting application httpd.exe, version 2.2.6.0, faulting module
libapr-1.dll, version 1.2.11.0, fault address 0x000079a0.

Faulting application httpd.exe, version 2.2.6.0, faulting module
php5ts.dll, version 5.2.5.5, fault address 0x0000acb9.

We are using both mysql and mysqli connectors and I have tried to
download the ones from the mysql site and again apache refused to start.


This is quite serious for us at the moment, becuase its in a live
enviroment and the dev servers never had this problem. 

Hope we can find a solution soon.

------------------------------------------------------------------------

[2008-01-04 18:28:12] jcmelcher at gmail dot com

This worked for me... IIS 6.0 with PHP 5.2.5 on Win2K3 SP2

If you download the latest PHP - MySQL connector files direct from
MySQL
this problem goes away:-

http://dev.mysql.com/downloads/connector/php/

------------------------------------------------------------------------

[2008-01-04 14:30:55] benjamin dot azan at gmail dot com

I could not find the new version of mysql connector but I changed the
PHP mode from CGI/fastCGI to  Apache 2.0 Handler and it fixed the
problem.

------------------------------------------------------------------------

[2008-01-04 11:54:05] benjamin dot azan at gmail dot com

The mySQL bug http://bugs.mysql.com/bug.php?id=25621 says :

" MySQL 5.0.54BK on WinXP localhost does not exhibit the error. "

and the PHP 5.2.5 show Client API version 	5.0.45

So I think the next version of PHP should contain this new version of
the MySQL connector.

I'm gonna try to upgrade the mySQL connector on a 5.2.5 PHP version to
see if it fixs the bug

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/41350

-- 
Edit this bug report at http://bugs.php.net/?id=41350&edit=1
Thread:
Graham At Directhostinguk Dot Com
Chris At Crgs Dot Co Dot Uk
Marcin Dot Slowinski At Keratronik Dot Pl
Froggywillneverdie At Msn Dot Com
Bkeene At Whisolutions Dot Nospamplease Dot Com
Computer dot Pers at gmail dot com
scottmac
Paul At Orac Dot Clara Dot Co Dot Uk
Paul At Orac Dot Clara Dot Co Dot Uk
Computer dot Pers at gmail dot com
scottmac
Computer dot Pers at gmail dot com
Kneekoo At Yahoo Dot Com
Onehourlate At Hotmail Dot Com
Da_pimp2004_966 At Hotmail Dot Com
Louis At Steelbytes Dot Com
jani
jani
jani
Chris At Crgs Dot Co Dot Uk
Newcomer At Hotmail Dot Com
Alienoiduk At Yahoo Dot Com
Newcomer At Hotmail Dot Com
Tristen_e At Yahoo Dot Com
jdolecek at NetBSD dot org
Spambox At Shad Dot Pp Dot Ru
Stein At Visibone Dot Com
Lizwatson02452 At Yahoo Dot Com
Lizwatson02452 At Yahoo Dot Com
scottmac
Stein At Visibone Dot Com
Stein At Visibone Dot Com
Stein At Visibone Dot Com
Email At Email Dot Com
Emiller At Rsimedical Dot Com
Sharadrb At Yahoo Dot Com
Brandonkahre At Charter Dot Net
Byerly0503 At Gmail Dot Com
OPunWide at hotmail dot com
WS6TA at txlanes dot com
Codeslinger At Compsalot Dot Com
Jmair At Parkcountyre2 Dot Org
Amoo_miki At Yahoo Dot Com
Jaco At Jump Dot Co Dot Za
Jaco At Jump Dot Co Dot Za
Jcmelcher At Gmail Dot Com
Benjamin Dot Azan At Gmail Dot Com
Benjamin Dot Azan At Gmail Dot Com
Stalin Dot Gsk At Gmail Dot Com
Stalin Dot Gsk At Gmail Dot Com
Jungno At Gmail Dot Com
Cappytoi At Yahoo Dot Com
Ekarudito At Gmail Dot Com
Scratch65535 At Att Dot Net
M Dot Bariola At Prodigiweb Dot It
Jean-Yves Dot Deleze At Crealp Dot Vs Dot Ch
Ulmer At Energieagentur Dot Nrw Dot De
Webmaster At Cosmicperl Dot Com
Jp At Chicagowebexperts Dot Com
Bjohnso1 At Usc Dot Edu Dot Au
Michael At Chunkycow Dot Com Dot Au
Andrewm At Rochester Dot Rr Dot Com
Dkeller At Uh Dot Edu
Jamesvl At Trinitylight Dot Com
Bobbyb98 At Gmail Dot Com
Ccongdon At Congdonweb Dot Com
Chris At Crgs Dot Co Dot Uk
Rburghol At Vt Dot Edu
Rburghol At Vt Dot Edu
Noto At Ardentsolutions Dot Co Dot Za
Noto At Ardentsolutions Dot Co Dot Za
scottmac
Chris At Crgs Dot Co Dot Uk
Itahmed At Hotmail Dot Com
Barrp At Hcdat Dot Com
Topgunmm At Comcast Dot Net
Cranderson At Att Dot Net
Anrdaemon At Freemail Dot Ru
Cranderson At Att Dot Net
Chris At Crgs Dot Co Dot Uk
Temp4 At Scottpreston Dot Com
Thorsten At Phpmyfaq Dot De
256512 At Gmail Dot Com
Joecosmoj At Gmail Dot Com
Ricardo Dot Rodrigues At Istimeless Dot Pt
W Dot Ashcroft At Redfoxuk Dot Com
Chris At Crgs Dot Co Dot Uk
Daniel Dot Gaddis At Tlc Dot State Dot Tx Dot Us
Daniel Dot Gaddis At Tlc Dot State Dot Tx Dot Us
Phpbug At Povaddict Dot Com Dot Ar
scottmac
Phpbug At Povaddict Dot Com Dot Ar
Chadworsham At Hotmail Dot Com
Wangyi6854 At Sohu Dot Com
Thorsten At Phpmyfaq Dot De
Csharp Dot Net Dot 2007 At Hotmail Dot Com
Chicken at TheMooFarm dot com
Chicken at TheMooFarm dot com
Thorsten At Phpmyfaq Dot De
scottmac
Thorsten At Phpmyfaq Dot De
Richard At Vottle Dot Com
Richard At Vottle Dot Com
Lferro At Teladigital Dot Pt
Astorni At Softhome Dot Net
Astorni At Softhome Dot Net
Phpuser At Gmail Dot Com
Acosta At Mauricio Dot Net Dot Ar
Dj02 Dot Net At Nbl Dot Fi
Ng Dot Sick Dot No At Gmail Dot Com
scottmac
Romain Dot Burot At Laposte Dot Net
scottmac
Thorsten At Phpmyfaq Dot De
A At Asdf Dot Com
Sghasemi At Mail Dot Com
Xavier At Codewordx Dot Com
Phpuser At Gmail Dot Com
scottmac
Nick Dot Dixon At Gmail Dot Com
Ng Dot Sick Dot No At Gmail Dot Com
Aaronbair At Hotmail Dot Com
tony2001
Selarin At Yandex Dot Ru
Anony At Ousql Dot Cl
Chris At Crgs Dot Co Dot Uk
scottmac
Maxfm At Abv Dot Bg
Ysangkok At Gmail Dot Com
Chris At Crgs Dot Co Dot Uk
scottmac
Chris At Crgs Dot Co Dot Uk
Curthenderson At Hotmail Dot Com
Louis At Steelbytes Dot Com
Roger Dot Weiss At Gmail Dot Com
Chris At Crgs Dot Co Dot Uk
Louis At Steelbytes Dot Com
Php At Stock-Consulting Dot Com
E_remove_paine At Lastfrontiers Dot Com
Sptong At Hotmail Dot Com
Paul At Orac Dot Clara Dot Co Dot Uk
tony2001

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved