![]() |
|
php 5.5.3 segfault - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: php 5.5.3 segfault (/thread-11384.html) |
php 5.5.3 segfault - pgauret - 2013-09-30 Hello, I'm getting a systematic php segmentation fault when accessing my zenphoto album (fresh install). Interestingly enough, if the albums/ folder is empty, no segfault, as soon as I create even an empty album, segfaults. Accessing any page that does not relates to albums (e.g. config pages) always works fine. OS : Ubuntu Saucy The same code/config combo runs fine with php 5.3.10 on another server. I got the following from running gdb on the core dump, but am frankly at loss as to what to do next to debug / troubleshoot. Any help welcome :-) (gdb) bt 0 zval_delref_p (pz=) at /build/buildd/php5-5.5.3+dfsg/Zend/zend.h:4091 zend_pzval_unlock_func (unref=1, should_free=, z=0x0) at /build/buildd/php5-5.5.3+dfsg/Zend/zend_execute.c:722 _get_zval_ptr_ptr_var (should_free=, execute_data=0x7fddc2d28b28, var=) at /build/buildd/php5-5.5.3+dfsg/Zend/zend_execute.c:3843 ZEND_FETCH_DIM_R_SPEC_VAR_CONST_HANDLER (execute_data=0x7fddc2d28b28) at /build/buildd/php5-5.5.3+dfsg/Zend/zend_vm_execute.h:147834 0x00007fddbb473928 in execute_ex (execute_data=0x7fddc2d28b28) at /build/buildd/php5-5.5.3+dfsg/Zend/zend_vm_execute.h:3565 0x00007fddbb44b760 in zend_execute_scripts (type=type@entry=8, retval=retval@entry=0x0, file_count=file_count@entry=3) at /build/buildd/php5-5.5.3+dfsg/Zend/zend.c:13166 0x00007fddbb3eba95 in php_execute_script (primary_file=primary_file@entry=0x7fff77a9be20) at /build/buildd/php5-5.5.3+dfsg/main/main.c:24847 0x00007fddbb4fb8ca in php_handler (r=) at /build/buildd/php5-5.5.3+dfsg/sapi/apache2handler/sapi_apache2.c:6678 0x00007fddc2f1f320 in ap_run_handler ()9 0x00007fddc2f1f6f9 in ap_invoke_handler ()10 0x00007fddc2f3458a in ap_process_async_request ()11 0x00007fddc2f34874 in ap_process_request ()12 0x00007fddc2f31302 in ?? ()13 0x00007fddc2f28210 in ap_run_process_connection ()14 0x00007fddbbe1a767 in ?? () from /usr/lib/apache2/modules/mod_mpm_prefork.so15 0x00007fddbbe1a9a6 in ?? () from /usr/lib/apache2/modules/mod_mpm_prefork.so16 0x00007fddbbe1aa06 in ?? () from /usr/lib/apache2/modules/mod_mpm_prefork.so17 0x00007fddbbe1b6f0 in ?? () from /usr/lib/apache2/modules/mod_mpm_prefork.so18 0x00007fddc2f064ae in ap_run_mpm ()19 0x00007fddc2effc66 in main ()php 5.5.3 segfault - sbillard - 2013-09-30 Best guess then is that there is a problem with image re-sizing. a segmentation fault is the result of the application (PHP) trying to do an address fetch beyond its legitimate data. That could be a flawed PHP build, probably in the graphics library or it could be corrupted images (and the graphics library not gracefully handling them--something that is unfortunately too common for the GD library.) php 5.5.3 segfault - pgauret - 2013-09-30 Thanks for the help. I think some of the tests I did ruled out the image maniuplation issue:
Another idea? :-) php 5.5.3 segfault - sbillard - 2013-10-01 I have no idea if this is it, but https://bugs.php.net/bug.php?id=61165 If so, then the only solution is to upgrade the PHP version. php 5.5.3 segfault - pgauret - 2013-10-01 Indeed whatever is causing the segfault is fixed by upgrading to php 5.5.4. Thanks a lot for Zenphoto and for your help! |