php5-cgi crashed with SIGSEGV in virtual_file_ex()

Bug #177191 reported by Motin
14
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: php5

ProblemType: Crash
Architecture: amd64
Date: Tue Dec 18 17:41:39 2007
DistroRelease: Ubuntu 7.10
ExecutablePath: /usr/bin/php5-cgi
Package: php5-cgi 5.2.3-1ubuntu6.2
PackageArchitecture: amd64
ProcCmdline: /usr/bin/php5-cgi
ProcCwd: /var/www/virtual/fantada.com/motin/code/app/webroot
ProcEnviron: PATH=/usr/local/bin:/usr/bin:/bin
Signal: 11
SourcePackage: php5
Stacktrace: #0 0x0000000000604c8d in virtual_file_ex ()
StacktraceTop: virtual_file_ex ()
ThreadStacktrace:

Title: php5-cgi crashed with SIGSEGV in virtual_file_ex()
Uname: Linux sumo.digitalsteam.net 2.6.22-14-server #1 SMP Sun Oct 14 22:09:15 GMT 2007 x86_64 GNU/Linux
UserGroups:

DESCRIPTION:

On a freshly installed Gutsy server 64-bit machine, the latest version of php5-cgi is constantly segfaulting causing internal server 500 error messages!

We have five sites here currently:
 1. A drupal-based site
 2. A very simple single php-script based site
 3. A more complex custom developed php-based site
 4. A CakePHP-alfa based site
 5. A CakePHP-prebeta based site

Interesting thing is that number 1,2 and 4 works fine, but 3 and 5 causes segfaults everytime!

Live report: Logs generated after a visit on site number 3:

/var/log/syslog:
Dec 14 10:35:31 Ubuntu-710-gutsy-64-minimal kernel: [632734.251124] php5-cgi[11686]: segfault at 00007fff5a9b1ff0 rip 00002b8951e62e38 rsp 00007fff5a9b1fb0 error 6

/var/log/apache2/error.log (with LogLevel debug):
[Fri Dec 14 10:35:30 2007] [warn] FastCGI: (dynamic) server "/var/www/fcgi/domain3.com/php5-fcgi-starter" (uid 2006, gid 2006) restarted (pid 11685)
[Fri Dec 14 10:35:33 2007] [warn] FastCGI: (dynamic) server "/var/www/fcgi/domain3.com/php5-fcgi-starter" (pid 11685) termination signaled
[Fri Dec 14 10:35:33 2007] [warn] FastCGI: (dynamic) server "/var/www/fcgi/domain3.com/php5-fcgi-starter" (pid 11685) terminated by calling exit with status '0'

Live report: Logs generated after a visit on site number 5:
/var/log/syslog:
Dec 14 10:37:28 Ubuntu-710-gutsy-64-minimal kernel: [632850.783120] php5-cgi[11572]: segfault at 00007fff0c83a5e8 rip 0000000000604c8d rsp 00007fff0c83a5c0 error 6

/var/log/apache2/error.log (with LogLevel debug):
[Fri Dec 14 10:37:28 2007] [warn] FastCGI: (dynamic) server "/var/www/fcgi/domain5.com/php5-fcgi-starter" (uid 2009, gid 2009) restarted (pid 11854)
[Fri Dec 14 10:37:34 2007] [warn] FastCGI: (dynamic) server "/var/www/fcgi/domain5.com/php5-fcgi-starter" (uid 2009, gid 2009) restarted (pid 11858)
[Fri Dec 14 10:37:40 2007] [warn] FastCGI: (dynamic) server "/var/www/fcgi/domain5.com/php5-fcgi-starter" (uid 2009, gid 2009) restarted (pid 11862)
[Fri Dec 14 10:37:45 2007] [warn] FastCGI: (dynamic) server "/var/www/fcgi/domain5.com/php5-fcgi-starter" (pid 11572) terminated due to uncaught signal '11' (H\x89l$\xe0L\x89l$\xf0H\x89\xfdL\x89t$\xf8H\x89\\$\xd8I\x89\xcdL\x89d$\xe8H\x83\xecHL\x8bgHH\x89T$\x10L\x89OPM\x89\xc6H\x8bD$PH\x89wpH\x89GXI\x83<$), a core file may have been generated

Note: This _may_ be related to https://bugs.launchpad.net/ubuntu/+source/php5/+bug/173817 , but as you see above, the error messages differ.
As this is the 1ubuntu6.2 version, I do not think it is related to https://bugs.launchpad.net/ubuntu/+source/php5/+bug/173043 .

This is not specific to this php-version! I downgraded the following packages:

    apt-get install php5-common=5.2.3-1ubuntu6
    apt-get install \
    libapache2-mod-php5=5.2.3-1ubuntu6 \
    php-pear=5.2.3-1ubuntu6 \
    php5=5.2.3-1ubuntu6 \
    php5-cgi=5.2.3-1ubuntu6 \
    php5-cli=5.2.3-1ubuntu6 \
    php5-curl=5.2.3-1ubuntu6 \
    php5-dev=5.2.3-1ubuntu6 \
    php5-gd=5.2.3-1ubuntu6 \
    php5-mhash=5.2.3-1ubuntu6 \
    php5-mysql=5.2.3-1ubuntu6 \
    php5-pspell=5.2.3-1ubuntu6 \
    php5-recode=5.2.3-1ubuntu6 \
    php5-snmp=5.2.3-1ubuntu6 \
    php5-sqlite=5.2.3-1ubuntu6 \
    php5-tidy=5.2.3-1ubuntu6 \
    php5-xmlrpc=5.2.3-1ubuntu6 \
    php5-xsl=5.2.3-1ubuntu6

   apt-get install \
   php5-idn \
   php5-imagick \
   php5-imap \
   php5-mcrypt \
   php5-memcache \
   php5-ming \
   php5-ps

And it still segfaults in the same manners!

What can I do to help diagnose this further?

Tags: apport-crash
Revision history for this message
Motin (motin) wrote :
description: updated
Revision history for this message
Chuck Short (zulcss) wrote :

Is this still a problem for you in hardy?

Thanks
chuck

Changed in php5:
status: New → Incomplete
Revision history for this message
Motin (motin) wrote :

I don't know since I reverted to 32-bit gutsy instead of 64-bit.

Revision history for this message
Michael Lustfield (michaellustfield) wrote :

Can you try this in Ubuntu 8.10 and tell us if the problem still occurs?

Revision history for this message
Michael Lustfield (michaellustfield) wrote :

Marking invalid due to inactivity.

Changed in php5:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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