php seg faults if both php5-xcache and php-apc installed

Bug #681167 reported by R. Tolga Korkunçkaya
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
php-apc (Ubuntu)
Confirmed
Low
Unassigned
php5 (Ubuntu)
Confirmed
Low
Unassigned
xcache (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: php5

There is a conflict in package dependencies for php5-xcache and php-apc packages. They both can be installed without warning, but php gives a segmentation fault with both installed.

Here is the error message:

PHP Warning: Cannot load module 'XCache' because conflicting module 'apc' is already loaded in Unknown on line 0
Segmentation fault

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: php5 5.3.3-1ubuntu9.1
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic i686
Architecture: i386
Date: Wed Nov 24 14:44:49 2010
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: php5

Revision history for this message
R. Tolga Korkunçkaya (tolga) wrote :
Chuck Short (zulcss)
affects: php5 (Ubuntu) → xcache (Ubuntu)
Revision history for this message
Michal Čihař (nijel) wrote :

The segfault is clearly a PHP bug, xcache module properly defines this conflict and PHP should just fail to load it.

Revision history for this message
Michal Čihař (nijel) wrote :

I've just commited conflict to php5-xcache package, fix will be part of next upload.

Changed in xcache (Ubuntu):
status: New → Fix Committed
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

I do agree that the two should conflict, but the segfault is a different issue that may still be a problem with xcache:

(gdb) run
Starting program: /usr/bin/php
[Thread debugging using libthread_db enabled]
PHP Warning: Cannot load module 'XCache' because conflicting module 'apc' is already loaded in Unknown on line 0

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff561de50 in ?? ()
(gdb) bt
#0 0x00007ffff561de50 in ?? ()
#1 0x000000000068fa69 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /build/buildd/php5-5.3.3/Zend/zend.c:1258
#2 0x000000000063ca73 in php_execute_script (primary_file=0x7fffffffdd30) at /build/buildd/php5-5.3.3/main/main.c:2288
#3 0x0000000000729694 in main (argc=-5000, argv=0x0) at /build/buildd/php5-5.3.3/sapi/cli/php_cli.c:1196

Still I think its most likely that PHP or php-apc is handling the error condition poorly since xcache clearly isn't getting loaded.

Interestingly enough, php -i does not segfault, so its only when we try to execute a script.

Marking Confirmed in php5 *and* php-apc. Setting Importance to Low, since there are very few conflicting zend caching modules.

Changed in php5 (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
Changed in xcache (Ubuntu):
importance: Undecided → Low
Changed in php-apc (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xcache - 1.3.1-2

---------------
xcache (1.3.1-2) experimental; urgency=low

  * Add conflict with php-apc (LP: #681167).

xcache (1.3.1-1) experimental; urgency=low

  * New upstream version.
  * Fix privileges on installed PHP files.
 -- Daniel Bond <email address hidden> Wed, 08 Dec 2010 21:33:46 +0000

Changed in xcache (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.