Gallery 2 broken for some users - apache segmentation fault
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.
#1 Updated by cpg over 11 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 11 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 11 years ago
Here's two PHP bugs entries that are related to this:
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
#6 Updated by gboudreau over 11 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):
sed -ie "s/'mysqli'/'mysql'/" html/config.php
Also available in: Atom