Re: php/httpd segfaults after 5.2 upgrade (trace inline)

2012-11-06 Thread Martin Pelikan
2012/11/6 André Stöbe :
>> PHP web interface (installed with the zabbix-web package). Upon
> The functions
>
> execute
> suhosin_execute_ex
> zend_do_fcall_common_helper_SPEC
>
> loop over and over again, in exactly this order.

Hi,
I had the same problem a while ago with Cacti. I don't remember
exactly what solved it in the end, but there was mysql involved.
Database permissions, or maybe I forgot to create some of the
tables/views it accessed, or something like that. I fixed it by
repeating the installation procedure as written in the manual.
Because I have no intentions of learning the guts of the PHP
interpreter, the method I used back then was the stupidest of them
all, adding die("hard"); after every suspicious line in the execution
path. The function that failed was a MySQL one, IIRC. You can try
repeating that...
-- 
Martin Pelikan



Re: php/httpd segfaults after 5.2 upgrade (trace inline)

2012-11-06 Thread André Stöbe
> I'm running a freshly upgraded OpenBSD 5.2 inside a ESXi 5.0.0 VM. The
> machine serves mainly as a Zabbix monitoring server.
> 
> Shortly after upgrading I experienced problems with the corresponding
> PHP web interface (installed with the zabbix-web package). Upon
> visiting the URL, the serving httpd child exited with a segfault.

So, in order to be actually able to paste this somewhere, I've removed most of 
the trace output.

The functions

execute
suhosin_execute_ex
zend_do_fcall_common_helper_SPEC

loop over and over again, in exactly this order.

Just see the gdb output below. Hope that helps, if not, please download the 
complete trace from that shitty website for now.

Regards
André


$ sudo gdb httpd
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-unknown-openbsd5.2"...(no debugging symbols 
found)

(gdb) run -DSSL -X
Starting program: /usr/sbin/httpd -DSSL -X

Program received signal SIGSEGV, Segmentation fault.
0x000210ce8ecc in vspprintf () from /usr/local/lib/php-5.3/libphp5.so
(gdb) backtrace 
#0  0x000210ce8ecc in vspprintf () from /usr/local/lib/php-5.3/libphp5.so
#1  0x000210d52e1a in zend_spprintf () from 
/usr/local/lib/php-5.3/libphp5.so
#2  0x000210d32750 in _convert_to_string () from 
/usr/local/lib/php-5.3/libphp5.so
#3  0x000210d3baf4 in zend_make_printable_zval () from 
/usr/local/lib/php-5.3/libphp5.so
#4  0x000210d322b3 in concat_function () from 
/usr/local/lib/php-5.3/libphp5.so
#5  0x000210d8012d in ZEND_CONCAT_SPEC_TMP_CV_HANDLER () from 
/usr/local/lib/php-5.3/libphp5.so
#6  0x000210d64380 in execute () from /usr/local/lib/php-5.3/libphp5.so
#7  0x000210cb2e6c in suhosin_execute_ex () from 
/usr/local/lib/php-5.3/libphp5.so
#8  0x000210d64d9c in zend_do_fcall_common_helper_SPEC () from 
/usr/local/lib/php-5.3/libphp5.so
#9  0x000210d64380 in execute () from /usr/local/lib/php-5.3/libphp5.so
#10 0x000210cb2e6c in suhosin_execute_ex () from 
/usr/local/lib/php-5.3/libphp5.so
#11 0x000210d64d9c in zend_do_fcall_common_helper_SPEC () from 
/usr/local/lib/php-5.3/libphp5.so
#12 0x000210d64380 in execute () from /usr/local/lib/php-5.3/libphp5.so
#13 0x000210cb2e6c in suhosin_execute_ex () from 
/usr/local/lib/php-5.3/libphp5.so
#14 0x000210d64d9c in zend_do_fcall_common_helper_SPEC () from 
/usr/local/lib/php-5.3/libphp5.so

8<
   LOOP
>8

#23619 0x000210d64380 in execute () from /usr/local/lib/php-5.3/libphp5.so
#23620 0x000210cb2e6c in suhosin_execute_ex () from 
/usr/local/lib/php-5.3/libphp5.so
#23621 0x000210d69a8b in ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER () from 
/usr/local/lib/php-5.3/libphp5.so
#23622 0x000210d64380 in execute () from /usr/local/lib/php-5.3/libphp5.so
#23623 0x000210cb2e6c in suhosin_execute_ex () from 
/usr/local/lib/php-5.3/libphp5.so
#23624 0x000210d3a23e in zend_execute_scripts () from 
/usr/local/lib/php-5.3/libphp5.so
#23625 0x000210ce3bda in php_execute_script () from 
/usr/local/lib/php-5.3/libphp5.so
#23626 0x000210dcc0bf in apache_php_module_main () from 
/usr/local/lib/php-5.3/libphp5.so
#23627 0x000210dcd1be in send_php () from /usr/local/lib/php-5.3/libphp5.so
#23628 0x000210dcd423 in send_parsed_php () from 
/usr/local/lib/php-5.3/libphp5.so
#23629 0x00440398 in ap_invoke_handler ()
#23630 0x0045169c in ap_die ()
#23631 0x00434a0d in ssl_expr_yylex ()
#23632 0x00440398 in ap_invoke_handler ()
#23633 0x0045169c in ap_die ()
#23634 0x004518bb in ap_process_request ()
#23635 0x00448bd6 in ap_kill_timeout ()
#23636 0x00449047 in ap_kill_timeout ()
#23637 0x0044912f in ap_kill_timeout ()
#23638 0x00449f93 in ap_init_mutex_method ()
#23639 0x0044acee in main ()
(gdb) quit