Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 355611 - dev-php5/pecl-apc-3.1.7: please stabilize
Summary: dev-php5/pecl-apc-3.1.7: please stabilize
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords: STABLEREQ
Depends on:
Blocks:
 
Reported: 2011-02-19 19:02 UTC by Hanno Böck
Modified: 2011-03-24 17:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Böck gentoo-dev 2011-02-19 19:02:33 UTC
php-team, this one should be okay for stabilization, in tree for > 30 days and no open bugs.
Comment 1 Ole Markus With (RETIRED) gentoo-dev 2011-02-23 16:31:43 UTC
Sure. Go ahead, arch teams
Comment 2 Agostino Sarubbo gentoo-dev 2011-02-24 11:50:20 UTC
amd64 works;

In configure phase i see:
ac-wrapper: warning: invalid WANT_AUTOCONF 'latest'; ignoring.

If is not a problem, ignore this ;)
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2011-02-28 18:48:33 UTC
amd64 done. Thanks Agostino
Comment 4 Han Boetes 2011-03-03 12:47:32 UTC
And now I am running into this bug:

http://forums.gentoo.org/viewtopic-t-849038.html

Since the latest upgrade to 3.1.7

And my customers are unhappy. Restarting apache helps for a while.

Downgrading fails with
[blocks B     ] =dev-lang/php-5.2.17 ("=dev-lang/php-5.2.17" is blocking dev-php5/pecl-apc-3.1.6)

So please fix this issue ASAP.
Comment 5 Ole Markus With (RETIRED) gentoo-dev 2011-03-03 13:24:56 UTC
(In reply to comment #4)
> Downgrading fails with
> [blocks B     ] =dev-lang/php-5.2.17 ("=dev-lang/php-5.2.17" is blocking
> dev-php5/pecl-apc-3.1.6)
> 
> So please fix this issue ASAP.
> 

How about dev-php5/pecl-apc-3.1.6-r1?
Comment 6 Han Boetes 2011-03-03 13:30:59 UTC
I'm running it now, but it takes some time to reproduce this issue. And if you look at the other bug-report I think this is a problem which has existed for some more time.
Comment 7 Ole Markus With (RETIRED) gentoo-dev 2011-03-03 13:35:20 UTC
(In reply to comment #6)
> I'm running it now, but it takes some time to reproduce this issue. And if you
> look at the other bug-report I think this is a problem which has existed for
> some more time.
>

We used to have this issue earlier, before we moved to mmap-based apc. After we switched to mmap those errors stopped.
Comment 8 Han Boetes 2011-03-03 13:41:28 UTC
~% equery u pecl-apc
[ Searching for packages matching pecl-apc... ]
[ Colour Code : set unset ]
[ Legend : Left column  (U) - USE flags from make.conf              ]
[        : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for dev-php5/pecl-apc-3.1.6-r1 ]
 U I
 + + mmap               : Adds mmap (memory map) support
 + + php_targets_php5-2 : Build against PHP 5.2
 - - php_targets_php5-3 : Build against PHP 5.3

We've been using it with mmap all along.
Comment 9 Han Boetes 2011-03-03 14:04:12 UTC
Switching to dev-php5/pecl-apc-3.1.6-r1 does not resolve the issue.
Comment 10 Ole Markus With (RETIRED) gentoo-dev 2011-03-03 14:08:45 UTC
(In reply to comment #8)
> ~% equery u pecl-apc
> [ Searching for packages matching pecl-apc... ]
> [ Colour Code : set unset ]
> [ Legend : Left column  (U) - USE flags from make.conf              ]
> [        : Right column (I) - USE flags packages was installed with ]
> [ Found these USE variables for dev-php5/pecl-apc-3.1.6-r1 ]
>  U I
>  + + mmap               : Adds mmap (memory map) support
>  + + php_targets_php5-2 : Build against PHP 5.2
>  - - php_targets_php5-3 : Build against PHP 5.3
> 
> We've been using it with mmap all along.
> 

The USE flag is only for mmap *support*. You need to configure APC to actually use mmap as well. Add something like this to you apc.ini:

apc.shm_size=128M
apc.mmap_file_mask=/tmp/apc.XXXXXX

Comment 11 Han Boetes 2011-03-03 14:19:06 UTC
Ah, that might make a difference. OK, running now with the suggested settings on 3.1.7 again. Will let you know as soon as something happens.
Comment 12 Han Boetes 2011-03-03 14:35:57 UTC
[03-Mar-2011 15:35:07] PHP Warning:  include() [<a href='function.include'>function.include</a>]: Unable to allocate memory for pool. in /var/www/localhost/htdocs/roundcubemail/index.php on line 250

It's still happening.
Comment 13 Ole Markus With (RETIRED) gentoo-dev 2011-03-03 15:03:01 UTC
Then it is nothing I can do to help you with in this but. Please open a new bug and I will see what can be done. At least I will track the upstream bug about this issue.
Comment 14 Han Boetes 2011-03-03 15:50:59 UTC
I found a solid fix: emerge --depclean pecl-apc

"APC is a free, open, and robust framework for caching and optimizing PHP intermediate code."
Comment 15 Thomas Kahle (RETIRED) gentoo-dev 2011-03-11 13:51:23 UTC
for x86: should we stable anyway, or wait?
Comment 16 Myckel Habets 2011-03-13 18:19:32 UTC
(In reply to comment #15)
> for x86: should we stable anyway, or wait?

Current stable (2.1.6-r1) is not broken, right? Then I would wait. No need to force a possible broken minor update.
Comment 17 Ole Markus With (RETIRED) gentoo-dev 2011-03-13 18:35:54 UTC
Personally, I have had no problem with 3.1.7 and I use it in a high load environment on a number of boxes with varied use. When I have seen the issue that was reported earlier, it has always been a configuration issue. I am quite comfortable with going ahead with the stabilisation.

For the records, 3.1.6 and 3.1.7 are equally affected according to the reporters in the upstream bug.
Comment 18 Thomas Kahle (RETIRED) gentoo-dev 2011-03-18 09:12:09 UTC
Ok, x86 stable. Thanks everybody.
Comment 19 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2011-03-24 17:50:33 UTC
ppc/ppc64 stable, last arch closing