• Segfault imagick+php5.4+apache2.4?

    @deusdeorum Автор вопроса
    ну, без XCache за 30 минут ни одного segfault
  • Segfault imagick+php5.4+apache2.4?

    @deusdeorum Автор вопроса
    Еще один backtrace
    #0  execute (op_array=0x80119b180, tsrm_ls=0x80104e100) at /root/source/php-5.4.9/Zend/zend_vm_execute.h:363
    	execute_data = (zend_execute_data *) 0x0
    	nested = 0 '\0'
    	original_in_execution = 0 '\0'
    #1  0x00000008027300ee in zend_execute_scripts (type=2, tsrm_ls=0x80104e100, retval=0x0, file_count=1)
        at /root/source/php-5.4.9/Zend/zend.c:1309
    	params = {0x534500}
    	retval2 = (zval *) 0x50
    	old_exception = (zval *) 0x50
    	files = {{gp_offset = 40, fp_offset = 32767, overflow_arg_area = 0x7fffffffe370, 
        reg_save_area = 0x7fffffffe280}}
    	i = 0
    	file_handle = (zend_file_handle *) 0x7fffffffe390
    	orig_op_array = (zend_op_array *) 0x0
    	orig_retval_ptr_ptr = (zval **) 0x0
    #2  0x00000008027eb422 in php_handler (r=0x810df1740)
        at /root/source/php-5.4.9/sapi/apache2handler/sapi_apache2.c:669
    	zfd = {type = ZEND_HANDLE_FILENAME, 
      filename = 0x810df2420 "/var/www/24starcom.ru/http/shop/goodimg/photo.php", opened_path = 0x0, handle = {
        fd = 120, fp = 0x78, stream = {handle = 0x78, isatty = 3, mmap = {len = 34377213352, pos = 34642794304, 
            map = 0x801c3cafe, buf = 0x810df26b0 "php", old_handle = 0x810df3ae0, old_closer = 0}, 
          reader = 0x810df1740, fsizer = 0x801078780, closer = 0x810df1701}}, free_filename = 0 '\0'}
    	__bailout = {{_sjb = {34401595561, 34642794304, 140737488348008, 1, 34642794304, 34377213088, 
          140737488348764, 34501837456, 895, 4386346, 1, 34359738368}}}
    	ctx = (php_struct * volatile) 0x810c76870
    	conf = (void *) 0x801097d00
    	brigade = (apr_bucket_brigade * volatile) 0x8087966e0
    	bucket = <value optimized out>
    	rv = <value optimized out>
    	parent_req = (request_rec * volatile) 0x810c75740
    	tsrm_ls = (void ***) 0x80104e100
    #3  0x000000000044485a in ap_run_handler (r=0x810df1740) at config.c:168
    	n = 1
    	rv = 7
    #4  0x0000000000448492 in ap_invoke_handler (r=0x810df1740) at config.c:432
    	handler = 0x801081400 "application/x-httpd-php"
    	result = 0
    	old_handler = 0x0
    	ignore = <value optimized out>
    #5  0x0000000000458ada in ap_internal_redirect (new_uri=<value optimized out>, r=<value optimized out>)
        at http_request.c:640
    	new = (request_rec *) 0x810df1740
    	access_status = 2400
    #6  0x0000000802257510 in handler_redirect (r=0x810df70a0) at mod_rewrite.c:5039
    No locals.
    #7  0x000000000044485a in ap_run_handler (r=0x810df70a0) at config.c:168
    	n = 0
    	rv = 7
    #8  0x0000000000448492 in ap_invoke_handler (r=0x810df70a0) at config.c:432
    	handler = 0x0
    	result = 0
    	old_handler = 0x80225bf5c "redirect-handler"
    	ignore = <value optimized out>
    #9  0x0000000000458ebe in ap_process_async_request (r=0x810df70a0) at http_request.c:317
    	i = 0
    	t_h = (const apr_array_header_t *) 0x7fffffffe65c
    	t_elt = (const apr_table_entry_t *) 0x808784290
    	c = (conn_rec *) 0x808784290
    	access_status = 0
    #10 0x0000000000458fff in ap_process_request (r=0x90) at http_request.c:363
    	bb = <value optimized out>
    	b = <value optimized out>
    	c = (conn_rec *) 0x808784290
    	rv = <value optimized out>
    #11 0x0000000000455c35 in ap_process_http_connection (c=0x808784290) at http_core.c:190
    No locals.
    #12 0x000000000044e2d2 in ap_run_process_connection (c=0x808784290) at connection.c:41
    	n = 1
    	rv = 7
    #13 0x000000000045efba in child_main (child_num_arg=<value optimized out>) at prefork.c:697
    	numdesc = 1
    	pdesc = (const apr_pollfd_t *) 0x8087824e8
    	current_conn = (conn_rec *) 0x808784290
    	csd = (void *) 0x8087840a0
    	thd = (apr_thread_t *) 0x8087820a0
    	osthd = (apr_os_thread_t) 0x8010041c0
    	ptrans = (apr_pool_t *) 0x808784028
    	allocator = (apr_allocator_t *) 0x80100dac0
    	status = <value optimized out>
    	i = <value optimized out>
    	lr = <value optimized out>
    	pollset = (apr_pollset_t *) 0x808782398
    	sbh = (ap_sb_handle_t *) 0x808782390
    	bucket_alloc = (apr_bucket_alloc_t *) 0x808788028
    	last_poll_idx = 1
    	lockfile = <value optimized out>
    #14 0x000000000045f264 in make_child (s=0x80104a1f0, slot=19) at prefork.c:793
    	pid = 0
    #15 0x000000000045fbbd in prefork_run (_pconf=<value optimized out>, plog=<value optimized out>, 
        s=<value optimized out>) at prefork.c:895
    	active_children = <value optimized out>
    	cutoff = <value optimized out>
    	index = <value optimized out>
    	remaining_children_to_start = 0
    	rv = <value optimized out>
    #16 0x000000000042d112 in ap_run_mpm (pconf=0x801015028, plog=0x801085028, s=0x80104a1f0) at mpm_common.c:96
    	n = 0
    	rv = <value optimized out>
    #17 0x0000000000427ed2 in main (argc=3, argv=0x7fffffffea60) at main.c:777
    	exit_status = 0
    	c = 0 '\0'
    	showcompile = 0
    	showdirectives = 0
    	confname = 0x460e6e "conf/httpd.conf"
    	def_server_root = 0x460e7e "/usr/local/apache2.4"
    	temp_error_log = 0x0
    	error = <value optimized out>
    	process = (process_rec *) 0x801013118
    	pconf = (apr_pool_t *) 0x801015028
    	plog = (apr_pool_t *) 0x801085028
    	ptemp = (apr_pool_t *) 0x80104c028
    	pcommands = (apr_pool_t *) 0x801037028
    	opt = (apr_getopt_t *) 0x801037118
    	rv = <value optimized out>
    	opt_arg = 0x246 <Address 0x246 out of bounds>
    



    Сейчас отключу xcache и еще gdb запущу. С префорком гораздо сложнее получить «бектрейсить»: процессов много, чаще они просто завершаются normally.
  • Segfault imagick+php5.4+apache2.4?

    @deusdeorum Автор вопроса
    поторопился:( опять segmentation fault
  • Segfault imagick+php5.4+apache2.4?

    @deusdeorum Автор вопроса
    Переключился на prefork.
    Итоги: segfault'ов больше нет, сайт в целом работает чуть медленнее (неощутимо, прибавилось около 0.04с на страницу), imagick стал работать мгновенно, load averages выросло на глаз где-то с 0.08 до 0.30.
    Спасибо!