먼저이 문제를 해결하기 위해 4 일 동안 연구했지만 해결 된 답변을 찾지 못했다고 말하고 싶습니다.Xdebug Segmentation Fault
약 2 주 전에 우분투 웹 서버를 최신 버전으로 업그레이드 할 때가 된 회사로 결정했습니다. 그래서 우리는 업그레이드를 진행했고 모든 것이 매우 부드럽게 진행되는 것처럼 보였습니다. 이것은 xdebug를 사용하여 magento 응용 프로그램을 디버깅 할 때까지 계속되었습니다.
이전 버전의 우분투에서 xdebug를 사용하여 문제없이 완벽하게 디버깅 할 수있었습니다. Magento 웹 사이트를 디버깅 할 때마다 세그먼트 오류 오류가 발생합니다.
php.ini 파일은 아래의 pastebin 링크에서 볼 수 있습니다. 우리는 또한 다음과 같은 옵션이 로컬 PHP는 재정이 있습니다 xdebug.remote_host = localcomputerip xdebug.remote_port = 9001
PHP의 INI 파일 http://pastebin.com/UYLviByW
우리는 우리의 환경에서 디버깅을 위해 모두 Visual Studio 및 넷빈즈를 사용합니다. 디버그 세션을 시작할 때 실제로는 처음에 index.php 파일에서 중단됩니다. 응용 프로그램의 무작위 지점까지 프로세스를 조금씩 진행할 수 있습니다. 이 시점에서 세그먼트 오류는 다음과 같은 아파치 로그 파일에 작성됩니다
[Tue Dec 23 16:09:25.756786 2014] [core:notice] [pid 31832] AH00051: child pid 31838 exit signal Segmentation fault (11), possible coredump in /etc/apache2
당신이 코어 덤프가 발생시피. 당신이 밖으로 두 번째 연결에서 클라이언트 시간을 볼 수 있듯이
Log opened at 2014-12-23 18:30:11
I: Connecting to configured address/port: 10.10.10.144:9001.
I: Connected to client. :-)
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///var/www/magento.dev.com/public_html/index.php" language="PHP" protocol_version="1.0" appid="15222" idekey="netbeans-xdebug"><engine version="2.2.6"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2014 by Derick Rethans]]></copyright></init>
Log opened at 2014-12-23 18:30:36
I: Connecting to configured address/port: 10.10.10.144:9001.
E: Time-out connecting to client. :-(
Log closed at 2014-12-23 18:30:36
: 우리는 또한 Xdebug는 로그 파일에 표시 다음을 얻는다. http://sysadmin.carlusgg.com/?p=197 및
그래서 나는 다음과 같은 출력을 얻을 코어 덤프의 스택 추적을 통해가는 : 나는 다음과 같은 정보를 따랐다 손에 코어 덤프 파일로.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from apache2...Reading symbols from /usr/lib/debug//usr/sbin/apache2...done.
done.
[New LWP 32601]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
warning: the debug information found in "/usr/lib/debug//usr/lib/php5/20121212/mysql.so" does not match "/usr/lib/php5/20121212/mysql.so" (CRC mismatch).
warning: the debug information found in "/usr/lib/debug/usr/lib/php5/20121212/mysql.so" does not match "/usr/lib/php5/20121212/mysql.so" (CRC mismatch).
warning: the debug information found in "/usr/lib/debug//usr/lib/php5/20121212/mysqli.so" does not match "/usr/lib/php5/20121212/mysqli.so" (CRC mismatch).
warning: the debug information found in "/usr/lib/debug/usr/lib/php5/20121212/mysqli.so" does not match "/usr/lib/php5/20121212/mysqli.so" (CRC mismatch).
warning: the debug information found in "/usr/lib/debug//usr/lib/php5/20121212/pdo_mysql.so" does not match "/usr/lib/php5/20121212/pdo_mysql.so" (CRC mismatch).
warning: the debug information found in "/usr/lib/debug/usr/lib/php5/20121212/pdo_mysql.so" does not match "/usr/lib/php5/20121212/pdo_mysql.so" (CRC mismatch).
Core was generated by `/usr/sbin/apache2 -k start'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 xdebug_add_stack_frame ([email protected]=0x7f6757eec398, [email protected]=0x7f6759f54e80, [email protected]=2) at /home/icstech/xdebug-2.2.5/xdebug_stack.c:1112
1112 tmp->var[tmp->varc].name = NULL;
(gdb) bt
#0 xdebug_add_stack_frame ([email protected]=0x7f6757eec398, [email protected]=0x7f6759f54e80, [email protected]=2) at /home/icstech/xdebug-2.2.5/xdebug_stack.c:1112
#1 0x00007f67510e8dcc in xdebug_execute_ex (execute_data=0x7f6757eec4e8) at /home/icstech/xdebug-2.2.5/xdebug.c:1372
#2 0x00007f675138e0aa in ??() from /usr/local/ioncube/ioncube_loader_lin_5.5.so
#3 0x00007f6751386a30 in ??() from /usr/local/ioncube/ioncube_loader_lin_5.5.so
#4 0x00007f675138a127 in ??() from /usr/local/ioncube/ioncube_loader_lin_5.5.so
#5 0x00007f675138e0aa in ??() from /usr/local/ioncube/ioncube_loader_lin_5.5.so
#6 0x00007f6751386a30 in ??() from /usr/local/ioncube/ioncube_loader_lin_5.5.so
#7 0x00007f675138a127 in ??() from /usr/local/ioncube/ioncube_loader_lin_5.5.so
#8 0x00007f675138e0aa in ??() from /usr/local/ioncube/ioncube_loader_lin_5.5.so
#9 0x00007f6751386a30 in ??() from /usr/local/ioncube/ioncube_loader_lin_5.5.so
#10 0x00007f675138a127 in ??() from /usr/local/ioncube/ioncube_loader_lin_5.5.so
#11 0x00007f6753f81310 in zend_do_fcall_common_helper_SPEC (execute_data=0x7f6757eebc80) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#12 0x00007f6753efa9f8 in execute_ex (execute_data=0x7f6757eebc80) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#13 0x00007f6753ec0b69 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#14 0x00007f67510e8fcc in xdebug_execute_ex (execute_data=0x7f6757eebc80) at /home/icstech/xdebug-2.2.5/xdebug.c:1437
#15 0x00007f6753ec2ea1 in zend_call_function ([email protected]=0x7fff4adeef50, fci_cache=<optimized out>, [email protected]=0x7fff4adeef20)
at /build/buildd/php5-5.5.9+dfsg/Zend/zend_execute_API.c:939
#16 0x00007f6753df6592 in zif_call_user_func_array (ht=<optimized out>, return_value=0x7f675afb27d8, return_value_ptr=<optimized out>, this_ptr=<optimized out>,
return_value_used=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/ext/standard/basic_functions.c:4806
#17 0x00007f6753ec0c6b in dtrace_execute_internal (execute_data_ptr=<optimized out>, fci=<optimized out>, return_value_used=<optimized out>)
at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:97
#18 0x00007f67510e9a46 in xdebug_execute_internal (current_execute_data=0x7f6757eeba70, fci=0x0, return_value_used=0) at /home/icstech/xdebug-2.2.5/xdebug.c:1551
#19 0x00007f6753f80cc5 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:552
#20 0x00007f6753efa9f8 in execute_ex (execute_data=0x7f6757eeba70) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#21 0x00007f6753ec0b69 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#22 0x00007f67510e8fcc in xdebug_execute_ex (execute_data=0x7f6757eeba70) at /home/icstech/xdebug-2.2.5/xdebug.c:1437
#23 0x00007f6753f81310 in zend_do_fcall_common_helper_SPEC (execute_data=0x7f6757eeb8e8) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
---Type <return> to continue, or q <return> to quit---
#24 0x00007f6753efa9f8 in execute_ex (execute_data=0x7f6757eeb8e8) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#25 0x00007f6753ec0b69 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#26 0x00007f67510e8fcc in xdebug_execute_ex (execute_data=0x7f6757eeb8e8) at /home/icstech/xdebug-2.2.5/xdebug.c:1437
#27 0x00007f6753f81310 in zend_do_fcall_common_helper_SPEC (execute_data=0x7f6757eeb788) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#28 0x00007f6753efa9f8 in execute_ex (execute_data=0x7f6757eeb788) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#29 0x00007f6753ec0b69 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#30 0x00007f67510e8fcc in xdebug_execute_ex (execute_data=0x7f6757eeb788) at /home/icstech/xdebug-2.2.5/xdebug.c:1437
#31 0x00007f6753f81310 in zend_do_fcall_common_helper_SPEC (execute_data=0x7f6757eeb628) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#32 0x00007f6753efa9f8 in execute_ex (execute_data=0x7f6757eeb628) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#33 0x00007f6753ec0b69 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#34 0x00007f67510e8fcc in xdebug_execute_ex (execute_data=0x7f6757eeb628) at /home/icstech/xdebug-2.2.5/xdebug.c:1437
#35 0x00007f6753f81310 in zend_do_fcall_common_helper_SPEC (execute_data=0x7f6757eeb4c0) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#36 0x00007f6753efa9f8 in execute_ex (execute_data=0x7f6757eeb4c0) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#37 0x00007f6753ec0b69 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#38 0x00007f67510e8fcc in xdebug_execute_ex (execute_data=0x7f6757eeb4c0) at /home/icstech/xdebug-2.2.5/xdebug.c:1437
#39 0x00007f6753f81310 in zend_do_fcall_common_helper_SPEC (execute_data=0x7f6757eeb2a8) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#40 0x00007f6753efa9f8 in execute_ex (execute_data=0x7f6757eeb2a8) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#41 0x00007f6753ec0b69 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#42 0x00007f67510e8fcc in xdebug_execute_ex (execute_data=0x7f6757eeb2a8) at /home/icstech/xdebug-2.2.5/xdebug.c:1437
#43 0x00007f6753f81310 in zend_do_fcall_common_helper_SPEC (execute_data=0x7f6757eeb170) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#44 0x00007f6753efa9f8 in execute_ex (execute_data=0x7f6757eeb170) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#45 0x00007f6753ec0b69 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#46 0x00007f67510e8fcc in xdebug_execute_ex (execute_data=0x7f6757eeb170) at /home/icstech/xdebug-2.2.5/xdebug.c:1437
#47 0x00007f6753f81310 in zend_do_fcall_common_helper_SPEC (execute_data=0x7f6757eeb068) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#48 0x00007f6753efa9f8 in execute_ex (execute_data=0x7f6757eeb068) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#49 0x00007f6753ec0b69 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#50 0x00007f67510e8fcc in xdebug_execute_ex (execute_data=0x7f6757eeb068) at /home/icstech/xdebug-2.2.5/xdebug.c:1437
---Type <return> to continue, or q <return> to quit---
#51 0x00007f6753f81310 in zend_do_fcall_common_helper_SPEC (execute_data=0x7f6757eeae90) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#52 0x00007f6753efa9f8 in execute_ex (execute_data=0x7f6757eeae90) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#53 0x00007f6753ec0b69 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#54 0x00007f67510e8fcc in xdebug_execute_ex (execute_data=0x7f6757eeae90) at /home/icstech/xdebug-2.2.5/xdebug.c:1437
#55 0x00007f6753f81310 in zend_do_fcall_common_helper_SPEC (execute_data=0x7f6757eeac80) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#56 0x00007f6753efa9f8 in execute_ex (execute_data=0x7f6757eeac80) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#57 0x00007f6753ec0b69 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#58 0x00007f67510e8fcc in xdebug_execute_ex (execute_data=0x7f6757eeac80) at /home/icstech/xdebug-2.2.5/xdebug.c:1437
#59 0x00007f6753f81310 in zend_do_fcall_common_helper_SPEC (execute_data=0x7f6757eeab30) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#60 0x00007f6753efa9f8 in execute_ex (execute_data=0x7f6757eeab30) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#61 0x00007f6753ec0b69 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#62 0x00007f67510e8fcc in xdebug_execute_ex (execute_data=0x7f6757eeab30) at /home/icstech/xdebug-2.2.5/xdebug.c:1437
#63 0x00007f6753f81310 in zend_do_fcall_common_helper_SPEC (execute_data=0x7f6757eea9d8) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#64 0x00007f6753efa9f8 in execute_ex (execute_data=0x7f6757eea9d8) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#65 0x00007f6753ec0b69 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#66 0x00007f67510e8fcc in xdebug_execute_ex (execute_data=0x7f6757eea9d8) at /home/icstech/xdebug-2.2.5/xdebug.c:1437
#67 0x00007f6753f81310 in zend_do_fcall_common_helper_SPEC (execute_data=0x7f6757eea838) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#68 0x00007f6753efa9f8 in execute_ex (execute_data=0x7f6757eea838) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#69 0x00007f6753ec0b69 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#70 0x00007f67510e8fcc in xdebug_execute_ex (execute_data=0x7f6757eea838) at /home/icstech/xdebug-2.2.5/xdebug.c:1437
#71 0x00007f6753f81310 in zend_do_fcall_common_helper_SPEC (execute_data=0x7f6757eea6f8) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:584
#72 0x00007f6753efa9f8 in execute_ex (execute_data=0x7f6757eea6f8) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#73 0x00007f6753ec0b69 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#74 0x00007f67510e8fcc in xdebug_execute_ex (execute_data=0x7f6757eea6f8) at /home/icstech/xdebug-2.2.5/xdebug.c:1437
#75 0x00007f6753ed25f0 in zend_execute_scripts ([email protected]=8, [email protected]=0x0, [email protected]=3) at /build/buildd/php5-5.5.9+dfsg/Zend/zend.c:1316
#76 0x00007f6753e724d5 in php_execute_script ([email protected]=0x7fff4adf3240) at /build/buildd/php5-5.5.9+dfsg/main/main.c:2506
#77 0x00007f6753f8294a in php_handler (r=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/sapi/apache2handler/sapi_apache2.c:667
---Type <return> to continue, or q <return> to quit---
#78 0x00007f6758061680 in ap_run_handler (r=0x7f6757eca0a0) at config.c:169
#79 0x00007f6758061bc9 in ap_invoke_handler ([email protected]=0x7f6757eca0a0) at config.c:439
#80 0x00007f675807716a in ap_process_async_request (r=0x7f6757eca0a0) at http_request.c:317
#81 0x00007f6758077444 in ap_process_request ([email protected]=0x7f6757eca0a0) at http_request.c:363
#82 0x00007f6758073f02 in ap_process_http_sync_connection (c=0x7f6757ed0290) at http_core.c:190
#83 ap_process_http_connection (c=0x7f6757ed0290) at http_core.c:231
#84 0x00007f675806acc0 in ap_run_process_connection (c=0x7f6757ed0290) at connection.c:41
#85 0x00007f675806b0a8 in ap_process_connection ([email protected]=0x7f6757ed0290, csd=<optimized out>) at connection.c:202
#86 0x00007f67548a2767 in child_main ([email protected]=3) at prefork.c:704
#87 0x00007f67548a29a6 in make_child (s=0x7f6757fd0de0, [email protected]=3) at prefork.c:800
#88 0x00007f67548a2a06 in startup_children (number_to_start=2) at prefork.c:818
#89 0x00007f67548a36e0 in prefork_run (_pconf=<optimized out>, plog=0x7f6757fcc028, s=0x7f6757fd0de0) at prefork.c:976
#90 0x00007f675804869e in ap_run_mpm (pconf=0x7f6757ffe028, plog=0x7f6757fcc028, s=0x7f6757fd0de0) at mpm_common.c:96
#91 0x00007f6758041e36 in main (argc=3, argv=0x7fff4adf3968) at main.c:777
우리는 내 지식의 팁을 얻는 동안 내 눈이 피가 나기 시작했습니다. 이 문제에 대한 또 하나의 큰 키커가 있습니다. 우리는 같은 서버에 WordPress 사이트를 가지고 있습니다. 때때로 우리는 실제로 WordPress의 전체 세션을 통해 성공적으로 디버그 할 수 있습니다. 다른 시간에 우리는 wordpress를 디버깅 할 수없고 같은 문제를 겪을 수 없습니다. 그것은 그 문제를 더욱 괴상하게 만든다.
내가 겪고있는 문제에 대해 누구나 가지고있는 도움은 놀라 울 것입니다. 이것이 개발 서버이기 때문에 지금 당장은 무엇이든 열려 있습니다.
이 문제를 해결하는 데 필요한 다른 정보가 있으면 알려주십시오. 지금은 var_dump 및 print_r 디버그 메소드로 돌아가겠습니다.
이렇게 긴 질문입니다. 이 문제를 해결하는 방법에 대한 단서가 없지만 제 경험으로는 누군가와 이야기하거나 작성하여 설명을 시작할 때 해결책이 나옵니다. 편하게 하다. – D3Hunter
의견에 감사드립니다. 내가 말했듯이 이것은 나의 지식 장벽을 넘어서고 그것에 대한 약간의 도움을 찾고있었습니다. 저는이 문제에 관한 저의 연구에서 다른 동료들과 이야기를 나누었습니다. 다시 한 번 도움이되는 사람이 제공하는 것에 감사드립니다. –