php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42220 thread safe problem with the true global list_destructors
Submitted: 2007-08-06 12:06 UTC Modified: 2007-08-24 01:00 UTC
From: mv at binarysec dot com Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5CVS-2007-08-06 (CVS) OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mv at binarysec dot com
New email:
PHP Version: OS:

 

 [2007-08-06 12:06 UTC] mv at binarysec dot com
Description:
------------
Hi,

I have a thread safe problem with the true global list_destructors, sometimes i got some messages like :
<b>Warning</b>:  Unknown list entry type in request shutdown (1882088036) in <b>Unknown</b> on line <b>0</b><br />

It happens very randomly i don't really know how to reproduce the code, but APC looks to help to get the error.

I had a look at list_entry_destructor() zend_list.c +374 why does this function generate this error and it looks that list_destructors isn't thread safe.

I **need** to fix that because sometimes you could get a blank page with APC.


Reproduce code:
---------------
none

Expected result:
----------------
none

Actual result:
--------------
<b>Warning</b>:  Unknown list entry type in request shutdown (1882088036) in <b>Unknown</b> on line <b>0</b><br />

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-12 14:13 UTC] jani@php.net
The question is: Do you get it at all when APC is NOT loaded?
 [2007-08-12 14:13 UTC] jani@php.net
And you didn't mention anything about how you've configured PHP and under what webserver you're using it..
 [2007-08-12 17:41 UTC] mv at binarysec dot com
There is no php.ini defined, i used Apache 2.2.3 -worker- + PHP_5_2 as a module (cvs).
In fact i have saw the problem 2 times on a core 2 duo and many times on  my quad core which i used to develope.

I use nikto & curl to load the server.

Have fun ;)
 [2007-08-16 11:55 UTC] jani@php.net
You need to provide better information how we can reproduce this.
If you don't even use APC why did you even mention it??!
Some code with which it happens and such..it's not necessarily even any thread-safe issue..
 [2007-08-24 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 10:01:30 2024 UTC