Project

General

Profile

Bug #499

Gallery 2 broken for some users - apache segmentation fault

Added by cpg over 10 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
04/06/2010
Due date:
% Done:

100%


Description

one user (greenapple, aka rjw24) has an installation of gallery 2 that is broken with an apache segmentation fault.

he seems to have his php up to the latest. i tried to downgrade it, however, it was not without risks, so i decided not to do it.

this bug seems directly related http://gallery.menalto.com/node/95244

the purported fix in gallery2 at the moment by gboudreau (exit(); just before ?> at the end of main.php did not seem to help in this case.

i also tried to get some of modules from modules/ out of there, however, with like 70 modules, i could not find a subset that would fix this and not break the app completely.

History

#1 Updated by cpg over 10 years ago

the error occurs when trying to login to the app (as admin, as this is a fresh install).

his php is:

[root@localhost modules]# rpm -qa | grep php
php-cli-5.3.2-1.fc12.i686
php-ldap-5.3.2-1.fc12.i686
php-pdo-5.3.2-1.fc12.i686
php-mysql-5.3.2-1.fc12.i686
php-mbstring-5.3.2-1.fc12.i686
php-gd-5.3.2-1.fc12.i686
php-common-5.3.2-1.fc12.i686
php-5.3.2-1.fc12.i686
[root@localhost modules]# 

apache says, at the moment we try to login to it:

[Tue Apr 06 23:58:52 2010] [notice] child pid 5361 exit signal Segmentation fault (11)

#2 Updated by cpg over 10 years ago

here are my rpms related to php (i have more due to development):

$ rpm -qa | grep php
php-pear-HTTP-Request-1.4.4-1.fc12.noarch
php-cli-5.3.2-1.fc12.x86_64
php-pear-Log-1.11.6-1.fc12.noarch
php-mbstring-5.3.2-1.fc12.x86_64
php-pear-Net-SMTP-1.4.2-1.fc12.noarch
php-pear-MDB2-2.4.1-4.fc12.noarch
php-gd-5.3.2-1.fc12.x86_64
php-mcrypt-5.3.2-1.fc12.x86_64
php-pear-DB-1.7.13-3.fc12.noarch
php-pear-Mail-mimeDecode-1.5.1-1.fc12.noarch
php-pear-Mail-Mime-1.5.3-1.fc12.noarch
php-pear-Auth-SASL-1.0.4-1.fc12.noarch
php-soap-5.3.2-1.fc12.x86_64
php-pear-Net-Socket-1.0.9-3.fc12.noarch
php-snmp-5.3.2-1.fc12.x86_64
php-pear-Mail-1.2.0-1.fc12.noarch
php-common-5.3.2-1.fc12.x86_64
php-process-5.3.2-1.fc12.x86_64
php-pear-File-1.3.0-3.fc12.noarch
php-5.3.2-1.fc12.x86_64
php-mysql-5.3.2-1.fc12.x86_64
php-pear-Net-URL-1.0.15-3.fc12.noarch
php-pear-1.9.0-3.fc12.noarch
php-pdo-5.3.2-1.fc12.x86_64
php-pear-Date-1.4.7-4.fc12.noarch
php-imap-5.3.2-1.fc12.x86_64

note that this bug is not hitting me, near as i can tell.

i reinstalled gallery 2 and then it did.

also, the sed patch in the current installer did not work for me out of the box.
however, when i applied it, the app worked, including logging in as admin.

suggestion to greenapple: update your machine to the latest and it may work.

#3 Updated by gboudreau over 10 years ago

Here's two PHP bugs entries that are related to this:

http://bugs.php.net/50382
http://bugs.php.net/50519

Sadly, a fix for #50519 is included in PHP 5.3.2, and so this shouldn't happen in 5.3.2 or later. But it does happen; my gdb backtrace shows I'm using php-5.3.2.

# Details: (gdb) bt
#0 zval_mark_grey (pz=<value optimized out>) at /usr/src/debug/php-5.3.2/Zend/zend_gc.c:360
#1 0x00000000005be8e5 in gc_mark_roots () at /usr/src/debug/php-5.3.2/Zend/zend_gc.c:417
#2 gc_collect_cycles () at /usr/src/debug/php-5.3.2/Zend/zend_gc.c:628
#3 0x00000000005a1bc5 in zend_deactivate () at /usr/src/debug/php-5.3.2/Zend/zend.c:900
#4 0x00000000005500d5 in php_request_shutdown (dummy=<value optimized out>) at /usr/src/debug/php-5.3.2/main/main.c:1633
#5 0x0000000000629ba4 in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/php-5.3.2/sapi/cli/php_cli.c:1373

#4 Updated by gboudreau over 10 years ago

Added this in the custom web options of the Gallery 2 app:
php_value zend.enable_gc off

This turns off the Zend garbage collector which is crashing.
We should be able to remove that once PHP fixed this issue for good.

#5 Updated by gboudreau over 10 years ago

If you still have this problem, even after reinstalling Gallery 2, here's how you can help us help you:

http://wiki.amahi.org/index.php/Apache_Core_Dump

#6 Updated by gboudreau over 10 years ago

  • Status changed from New to Resolved
  • Assignee set to gboudreau
  • % Done changed from 0 to 100

For those with an error/empty page when trying to login: the issue has been fixed.

Uninstall/re-install Gallery2, or just run the following command (as root):

cd /var/hda/web-apps/gallery2
sed -ie "s/'mysqli'/'mysql'/" html/config.php

#7 Updated by greenapple over 10 years ago

Thanks for the fix. I reinstalled and everything is working.

#8 Updated by bigfoot65 almost 7 years ago

  • Status changed from Resolved to Closed

Corrected.

Also available in: Atom