Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#9095 - php-apc crash
Attached to Project:
Arch Linux
Opened by Victor Museteanu (vik) - Friday, 04 January 2008, 22:04 GMT
Last edited by Pierre Schmitz (Pierre) - Saturday, 05 January 2008, 11:45 GMT
Opened by Victor Museteanu (vik) - Friday, 04 January 2008, 22:04 GMT
Last edited by Pierre Schmitz (Pierre) - Saturday, 05 January 2008, 11:45 GMT
|
DetailsDescription:
I Just upgraded a busy web server, including php (5.2.4-2 -> 5.2.5-2), php-apc (3.0.14-4 -> 3.0.16-1). After 10 to 20 minutes, the server (apache) no longer shows php files, just prompts for download. When this happens, in log appears a large block of lines like: [apc-error] apc_sem_lock: semop(4128783) failed: Identifier removed folowed by another one with: [apc-error] apc_sem_lock: semop(4128783) failed: Invalid argument Additional info: pacman -Q | grep php php 5.2.5-2 php-apc 3.0.16-1 php-fileinfo 1.0.4-3 php-suhosin 0.9.22-1 cat /etc/php/conf.d/apc.ini extension=apc.so apc.shm_size=128 apc.ttl = 10800 apc.localcache=1 apc.localcache.size=512 apc.include_once_override=1 All the relevant config files are the same (except obvious like path to php modules) as before the upgrade. In the attached file mrtg shows the increase of sockets usage after the upgrade. I disabled apc now. If any other information is needed I try my best to provide it. |
This task depends upon
semsock.png
However: I have recompiled APC to use Linux Futex locking instead of semaphores. Would be nice if you could test this package: http://users.archlinux.de/~pierre/packages/x86_64/php-apc-3.0.16-2-x86_64.pkg.tar.gz
I recompiled the unpatched source with --enable-apc-futex instead of --enable-apc-sem and it is working for 35 min under lot more stress than tonight. I assume it is going to work ok since the semaphores code is not used, but I'm a little worried about this text from ./configure --help: "Enable linux futex based locks EXPERIMENTAL". I'd rather disable both experimenal futex and buggy sem if patching is not wanted.
I think php-apc-3.0.16-3 should fix your problem.
Thank you very much!