Result Segmentation fault.

Support/Development for PHP
DarkF@der
Forum Regular
Forum Regular
Posts: 313
Joined: Thu May 07, 2009 12:46 pm

Result Segmentation fault.

Unread post by DarkF@der »

I have created a core file with gdb after getting some Program terminated with signal 11, Segmentation fault errors.
My result is:

Code: Select all

#0  _zend_mm_free_int (heap=0x7fc04e762500, p=0x7fc0498a1330) at /usr/src/debug/php-5.4.32/Zend/zend_alloc.c:2100
#1  0x00007fc02cdc6d5a in _zval_dtor (zval_ptr=0x7fc01c3661e8) at /usr/src/debug/php-5.4.32/Zend/zend_variables.h:35
#2  _zval_ptr_dtor (zval_ptr=0x7fc01c3661e8) at /usr/src/debug/php-5.4.32/Zend/zend_execute_API.c:436
#3  0x00007fc02cde1adb in zend_hash_destroy (ht=0x7fc01c3cf070) at /usr/src/debug/php-5.4.32/Zend/zend_hash.c:560
#4  0x00007fc02cdcb878 in destroy_zend_class (pce=<value optimized out>) at /usr/src/debug/php-5.4.32/Zend/zend_opcode.c:297
#5  0x00007fc02cde1adb in zend_hash_destroy (ht=0x7fc04e762e60) at /usr/src/debug/php-5.4.32/Zend/zend_hash.c:560
#6  0x00007fc02cdd513d in zend_shutdown () at /usr/src/debug/php-5.4.32/Zend/zend.c:819
#7  0x00007fc02cd76bfa in php_module_shutdown () at /usr/src/debug/php-5.4.32/main/main.c:2375
#8  0x00007fc02cd76cb9 in php_module_shutdown_wrapper (sapi_globals=<value optimized out>) at /usr/src/debug/php-5.4.32/main/main.c:2343
#9  0x00007fc02ce7e411 in php_apache_child_shutdown (tmp=<value optimized out>) at /usr/src/debug/php-5.4.32/sapi/apache2handler/sapi_apache2.c:398
#10 0x00007fc0382d299e in apr_pool_destroy () from /usr/lib64/libapr-1.so.0
#11 0x00007fc03980d6ee in clean_child_exit (code=0) at /usr/src/debug/httpd-2.2.15/server/mpm/prefork/prefork.c:196
#12 0x00007fc03980dddb in just_die (sig=<value optimized out>) at /usr/src/debug/httpd-2.2.15/server/mpm/prefork/prefork.c:328
#13 <signal handler called>
#14 0x00007fc02cc7c770 in php_pcre_exec (argument_re=0x7fc04fc6b290, extra_data=<value optimized out>, subject=<value optimized out>, length=<value optimized out>,
    start_offset=29935, options=8192, offsets=0x7fc05007dbf8, offsetcount=9) at /usr/src/debug/php-5.4.32/ext/pcre/pcrelib/pcre_exec.c:6664
#15 0x00007fc02cc83948 in php_pcre_match_impl (pce=0x7fc04fc6bac0,
    subject=0x7fc050526640 "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"nl-nl\" lang=\"nl-nl\" >\n<he"..., subject_len=1559212, return_value=0x7fc04f4121e8, subpats=0x7fc01bf8e8a0,
    global=<value optimized out>, use_flags=0, flags=0, start_offset=29935) at /usr/src/debug/php-5.4.32/ext/pcre/php_pcre.c:659
#16 0x00007fc02cc84348 in php_do_pcre_match (ht=3, return_value=0x7fc04f4121e8, return_value_ptr=<value optimized out>, this_ptr=<value optimized out>,
    return_value_used=<value optimized out>, global=1) at /usr/src/debug/php-5.4.32/ext/pcre/php_pcre.c:553
#17 0x00007fc02ce5096c in zend_do_fcall_common_helper_SPEC (execute_data=<value optimized out>) at /usr/src/debug/php-5.4.32/Zend/zend_vm_execute.h:643
#18 0x00007fc02ce3e2a8 in execute (op_array=0x7fc01bfe9488) at /usr/src/debug/php-5.4.32/Zend/zend_vm_execute.h:410
#19 0x00007fc02ce50ef8 in zend_do_fcall_common_helper_SPEC (execute_data=<value optimized out>) at /usr/src/debug/php-5.4.32/Zend/zend_vm_execute.h:673
#20 0x00007fc02ce3e2a8 in execute (op_array=0x7fc01bfe7d90) at /usr/src/debug/php-5.4.32/Zend/zend_vm_execute.h:410
#21 0x00007fc02cdc8f3c in zend_call_function (fci=0x7fffb04efb10, fci_cache=<value optimized out>) at /usr/src/debug/php-5.4.32/Zend/zend_execute_API.c:956
#22 0x00007fc02cd16187 in zif_call_user_func_array (ht=<value optimized out>, return_value=0x7fc04f239688, return_value_ptr=<value optimized out>,
    this_ptr=<value optimized out>, return_value_used=<value optimized out>) at /usr/src/debug/php-5.4.32/ext/standard/basic_functions.c:4750
#23 0x00007fc02ce5096c in zend_do_fcall_common_helper_SPEC (execute_data=<value optimized out>) at /usr/src/debug/php-5.4.32/Zend/zend_vm_execute.h:643
#24 0x00007fc02ce3e2a8 in execute (op_array=0x7fc01bfeb000) at /usr/src/debug/php-5.4.32/Zend/zend_vm_execute.h:410
#25 0x00007fc02ce50ef8 in zend_do_fcall_common_helper_SPEC (execute_data=<value optimized out>) at /usr/src/debug/php-5.4.32/Zend/zend_vm_execute.h:673
#26 0x00007fc02ce3e2a8 in execute (op_array=0x7fc01c122b28) at /usr/src/debug/php-5.4.32/Zend/zend_vm_execute.h:410
#27 0x00007fc02ce50ef8 in zend_do_fcall_common_helper_SPEC (execute_data=<value optimized out>) at /usr/src/debug/php-5.4.32/Zend/zend_vm_execute.h:673
#28 0x00007fc02ce3e2a8 in execute (op_array=0x7fc01c2fae78) at /usr/src/debug/php-5.4.32/Zend/zend_vm_execute.h:410
#29 0x00007fc02ce50ef8 in zend_do_fcall_common_helper_SPEC (execute_data=<value optimized out>) at /usr/src/debug/php-5.4.32/Zend/zend_vm_execute.h:673
#30 0x00007fc02ce3e2a8 in execute (op_array=0x7fc01c32e6b0) at /usr/src/debug/php-5.4.32/Zend/zend_vm_execute.h:410
#31 0x00007fc02ce50ef8 in zend_do_fcall_common_helper_SPEC (execute_data=<value optimized out>) at /usr/src/debug/php-5.4.32/Zend/zend_vm_execute.h:673
#32 0x00007fc02ce3e2a8 in execute (op_array=0x7fc0396b7478) at /usr/src/debug/php-5.4.32/Zend/zend_vm_execute.h:410
#33 0x00007fc02cdd3de0 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/src/debug/php-5.4.32/Zend/zend.c:1315
#34 0x00007fc02cd76a28 in php_execute_script (primary_file=0x7fffb04f2590) at /usr/src/debug/php-5.4.32/main/main.c:2502
#35 0x00007fc02ce7f5d5 in php_handler (r=0x7fc04ec3d008) at /usr/src/debug/php-5.4.32/sapi/apache2handler/sapi_apache2.c:667
#36 0x00007fc0397f9ca0 in ap_run_handler (r=0x7fc04ec3d008) at /usr/src/debug/httpd-2.2.15/server/config.c:158
#36 0x00007fc0397f9ca0 in ap_run_handler (r=0x7fc04ec3d008) at /usr/src/debug/httpd-2.2.15/server/config.c:158
---Type <return> to continue, or q <return> to quit---
#37 0x00007fc0397fd55e in ap_invoke_handler (r=0x7fc04ec3d008) at /usr/src/debug/httpd-2.2.15/server/config.c:376
#38 0x00007fc039808c20 in ap_process_request (r=0x7fc04ec3d008) at /usr/src/debug/httpd-2.2.15/modules/http/http_request.c:282
#39 0x00007fc039805a98 in ap_process_http_connection (c=0x7fc04ec31198) at /usr/src/debug/httpd-2.2.15/modules/http/http_core.c:190
#40 0x00007fc0398017a8 in ap_run_process_connection (c=0x7fc04ec31198) at /usr/src/debug/httpd-2.2.15/server/connection.c:43
#41 0x00007fc03980da67 in child_main (child_num_arg=<value optimized out>) at /usr/src/debug/httpd-2.2.15/server/mpm/prefork/prefork.c:667
#42 0x00007fc03980dd7a in make_child (s=0x7fc03b744860, slot=45) at /usr/src/debug/httpd-2.2.15/server/mpm/prefork/prefork.c:763
#43 0x00007fc03980e9fc in perform_idle_server_maintenance (_pconf=<value optimized out>, plog=<value optimized out>, s=<value optimized out>)
    at /usr/src/debug/httpd-2.2.15/server/mpm/prefork/prefork.c:898
#44 ap_mpm_run (_pconf=<value optimized out>, plog=<value optimized out>, s=<value optimized out>) at /usr/src/debug/httpd-2.2.15/server/mpm/prefork/prefork.c:1102
#45 0x00007fc0397e5980 in main (argc=1, argv=0x7fffb04f2b58) at /usr/src/debug/httpd-2.2.15/server/main.c:760
i see this rule:

Code: Select all

(gdb) frame 15
#15 0x00007fc02cc83948 in php_pcre_match_impl (pce=0x7fc04fc6bac0,
    subject=0x7fc050526640 "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"nl-nl\" lang=\"nl-nl\" >\n<he"..., subject_len=1559212, return_value=0x7fc04f4121e8, subpats=0x7fc01bf8e8a0,
    global=<value optimized out>, use_flags=0, flags=0, start_offset=29935) at /usr/src/debug/php-5.4.32/ext/pcre/php_pcre.c:659
659                     count = pcre_exec(pce->re, extra, subject, subject_len, start_offset,
but that's it no location etc etc

the second core dump file shows:

Code: Select all

#0  zend_mm_remove_from_free_list (heap=0x7f4080278570, mm_block=0x7f407b3b12d0) at /usr/src/debug/php-5.4.32/Zend/zend_alloc.c:833
833                     if (UNEXPECTED(prev->next_free_block != mm_block) || UNEXPECTED(next->prev_free_block != mm_block)) {
I'm using the php.art rpm's:

Code: Select all

PHP 5.4.32 (cli) (built: Aug 30 2014 13:02:23)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
with the ionCube PHP Loader v4.4.1, Copyright (c) 2002-2013, by ionCube Ltd.

Anybody know what's going on or wich script is making this problem?

Thanks in advanced
Post Reply