NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
DBG and phped 3.3.3 linux


Joined: 20 Apr 2005
Posts: 32
Location: Belgium
Reply with quote
Just wondering if this should work, to get the php 5.1.2 on FC 5 debugging working ?

It does nothing at the moment.

Greetings
View user's profileFind all posts by johandewitSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
What debugger version do you use? 2.16.20?
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 20 Apr 2005
Posts: 32
Location: Belgium
Reply with quote
Hi Dmitrie,

2.16.20 only has support till php 5.0.4.
The free version 2.11.32 does all php version.

The webserver I use has php 5.1.1
My development (fc5) has 5.1.2

Since the free version supports those version, I compiled dbg.so 2.11.13. When I start debugging, I only get an errormessage something is wrong, but I cannot find something in the http/php error logs. If I use dbg 2.18, phped tells me I have to use the 2.16.

I just wanted to know if it is possible to use the 2.11 version with phped 3.3.3 on linux.
Or is this just impossible.

Since the 4.x upgrade for linux is not something for tomorrow, I thought this could be a good temporary solution.

I just want the 5.1 version support because I'm doing almost everything a bit OO oriented, and there is better support for it in the 5.1 versions.

Or should the dbg 2.16.20 for php 5.0.4 be used, and will it work for almost 95 %. (Should be fine for me pto debug).

BTW whatever version I use, phpinfo shows the correct information.

I hope I didnt confuse you too much.

Greeting

Johan
View user's profileFind all posts by johandewitSend private message


Joined: 20 Apr 2005
Posts: 32
Location: Belgium
Reply with quote
I just tested the 2.16.20 dbg.

I got this error :
[07-Apr-2006 09:39:25] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/dbg.so-5.0.4' - /usr/lib/php/modules/dbg.so-5.0.4: undefined symbol: _zval_dtor in Unknown on line 0

If you like I can send the phpinfo output of the default FC5 php installation.

Greatings

Johan
View user's profileFind all posts by johandewitSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
updated debugger modules will be available to all customers who purchased phped for linux. Check your account Smile
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 20 Apr 2005
Posts: 32
Location: Belgium
Reply with quote
Hi Dmitrie,

Got it, but still has no success in debugging. I did get the folowing error, and it seems the default php.ini file is changed. So I follwed the solution as given in [url]http://forum.nusphere.com/viewtopic.php?t=1657&highlight=lookup+failed[/url]

[quote]
DBG 2.16.20
Failed to run DBG session
Reason: client ip address [NULL] lookup failed
Not sure what it means? Visit http://www.nusphere.com/dbg/ for troubleshooting.
Debugger request: "388146013025900003;d=1,p=0"
Request found in: "query_string"
Target PHP version: "5.1.2"
Server API: "Apache 2.0 Handler"
Extensions API: "220051025"
Modules API: "20050922"
PHP API: "20041225"[/quote]

- Setting the host in setting->tools>debugger to localhost did work, until stepping through the code. The output is empty, so I assume connection to dbg is working.
( F7/F8 does not step through the code, just ends the debug session)

- This is what the http_error_log file generates when I press F7/F8 :

[quote][Fri Apr 07 15:36:17 2006] [notice] child pid 5045 exit signal Segmentation fault (11)[/quote]
and the ps command just before this gives :
[quote]root 5041 1 0 15:03 ? 00:00:00 /usr/sbin/httpd
apache 5045 5041 0 15:03 ? 00:00:00 /usr/sbin/httpd
apache 5046 5041 0 15:03 ? 00:00:00 /usr/sbin/httpd
apache 5047 5041 0 15:03 ? 00:00:00 /usr/sbin/httpd
apache 5048 5041 0 15:03 ? 00:00:00 /usr/sbin/httpd
apache 5049 5041 0 15:03 ? 00:00:00 /usr/sbin/httpd
apache 5050 5041 0 15:03 ? 00:00:00 /usr/sbin/httpd
apache 5051 5041 0 15:03 ? 00:00:00 /usr/sbin/httpd
[/quote]

Looks not so good.

==== For reference ===
=== /etc/php.d/debugger.ini
extension=dbg.so-5.1.2
[debugger]
debugger.enabled=on
debugger.profiler_enabled=on
debugger.hosts_allow=127.0.0.1 localhost bthxba
;debugger.hosts_deny=
debugger.ports=7869, 10000/16

==== My PHPINFO() partially
PHP Version 5.1.2

System Linux bthxba 2.6.15-1.2054_FC5 #1 Tue Mar 14 15:48:33 EST 2006 i686
Build Date Feb 28 2006 06:22:03
Configure Command './configure' '--build=i386-redhat-linux' '--host=i386-redhat-linux' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--with-mime-magic=/etc/httpd/conf/magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--without-odbc' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php.ini
Scan this dir for additional .ini files /etc/php.d
additional .ini files parsed /etc/php.d/debugger.ini, /etc/php.d/dom.ini, /etc/php.d/ldap.ini, /etc/php.d/mysql.ini, /etc/php.d/mysqli.ini, /etc/php.d/pdo.ini, /etc/php.d/pdo_mysql.ini, /etc/php.d/pdo_sqlite.ini, /etc/php.d/xmlreader.ini, /etc/php.d/xmlwriter.ini, /etc/php.d/xsl.ini
PHP API 20041225
PHP Extension 20050922
Zend Extension 220051025
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, http, ftp, compress.bzip2, compress.zlib, https, ftps
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, convert.iconv.*, bzip2.*, zlib.*

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
with DBG v2.16.20, (C) 2000,2004, by Dmitri Dmitrienko

PHP Credits
Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference Off Off
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors On On
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log /var/log/httpd/php_error_log /var/log/httpd/php_error_log
error_prepend_string no value no value
error_reporting 2047 2047
expose_php On On
extension_dir /usr/lib/php/modules /usr/lib/php/modules
file_uploads On On
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/share/pear .:/usr/share/pear
log_errors On On
log_errors_max_len 1024 1024
magic_quotes_gpc Off Off
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
mail.force_extra_parameters no value no value
max_execution_time 30 30
max_input_time 60 60
memory_limit 64M 64M
open_basedir no value no value
output_buffering 4096 4096
output_handler no value no value
post_max_size 8M 8M
precision 14 14
realpath_cache_size 16K 16K
realpath_cache_ttl 120 120
register_argc_argv On On
register_globals Off Off
register_long_arrays On On
report_memleaks On On
report_zend_debug On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
zend.ze1_compatibility_mode Off Off

apache2handler
Apache Version Apache/2.2.0 (Fedora)
Apache API Version 20051115
Server Administrator root@localhost
Hostname:Port bthxba.absp.alcatel.be:0
User/Group apache(48)/48
Max Requests Per Child: 4000 - Keep Alive: off - Max Per Connection: 100
Timeouts Connection: 120 - Keep-Alive: 15
Virtual Server No
Server Root /etc/httpd
Loaded Modules core prefork http_core mod_so mod_auth_basic mod_auth_digest mod_authn_file mod_authn_alias mod_authn_anon mod_authn_dbm mod_authn_default mod_authz_host mod_authz_user mod_authz_owner mod_authz_groupfile mod_authz_dbm mod_authz_default util_ldap mod_authnz_ldap mod_include mod_log_config mod_logio mod_env mod_ext_filter mod_mime_magic mod_expires mod_deflate mod_headers mod_usertrack mod_setenvif mod_mime mod_dav mod_status mod_autoindex mod_info mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_proxy mod_proxy_balancer mod_proxy_ftp mod_proxy_http mod_proxy_connect mod_cache mod_suexec mod_disk_cache mod_file_cache mod_mem_cache mod_cgi mod_auth_kerb mod_auth_mysql mod_authz_ldap mod_perl mod_php5 mod_proxy_ajp mod_python mod_ssl

Directive Local Value Master Value
engine 1 1
last_modified 0 0
xbithack 0 0

Apache Environment
Variable Value
HTTP_HOST localhost
HTTP_USER_AGENT Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060313 Fedora/1.5.0.1-9 Firefox/1.5.0.1 pango-text
HTTP_ACCEPT text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_KEEP_ALIVE 300
HTTP_CONNECTION keep-alive
HTTP_REFERER http://localhost/
PATH /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE <address>Apache/2.2.0 (Fedora) Server at localhost Port 80</address>
SERVER_SOFTWARE Apache/2.2.0 (Fedora)
SERVER_NAME localhost
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 127.0.0.1
DOCUMENT_ROOT /var/www/html
SERVER_ADMIN root@localhost
SCRIPT_FILENAME /var/www/html/phpinfo.php
REMOTE_PORT 59852
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /phpinfo.php
SCRIPT_NAME /phpinfo.php

HTTP Headers Information
HTTP Request Headers
HTTP Request GET /phpinfo.php HTTP/1.1
Host localhost
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060313 Fedora/1.5.0.1-9 Firefox/1.5.0.1 pango-text
Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
Referer http://localhost/
HTTP Response Headers
X-Powered-By PHP/5.1.2
Connection close
Transfer-Encoding chunked
Content-Type text/html; charset=UTF-8


==== the DBG part
dbg
DBG php debugger, version 2.16.20, Copyright 2001, 2005 Dmitri Dmitrienko, http://www.nusphere.com/dbg

Version 2.16.20
Linked as a shared library.
Dbg security enabled.
Profiler compiled, enabled
Target PHP version 5.1.2
Server API Apache 2.0 Handler
Extensions API 220051025
Modules API 20050922
PHP API 20041225

Directive Local Value Master Value
debugger.enable_session_cookie On On
debugger.enabled On On
debugger.fail_silently On On
debugger.hosts_allow protected value protected value
debugger.hosts_deny protected value protected value
debugger.ignore_nops Off Off
debugger.JIT_enabled Off Off
debugger.JIT_host clienthost clienthost
debugger.JIT_level 3 3
debugger.JIT_port 7869 7869
debugger.net.chunksize 48000 48000
debugger.net.maxpacketsize 4096000 4096000
debugger.ports protected value protected value
debugger.profiler_enabled On On
debugger.session_nocache On On
debugger.timeout_seconds 300 300
View user's profileFind all posts by johandewitSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
The combimation you're trying to get up, wont' work together:

PHP API: Server API Apache 2.0 Handler
Apache Version: Apache/2.2.0

You need Apache 2.0, not 2.2.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 20 Apr 2005
Posts: 32
Location: Belgium
Reply with quote
Hi dmitrie

Just downgraded to 2.0.54/5.1.2

Same result Dbg crashes.
I'm now looking how to add debugging information from httpd.

Greetings

Johan

dbg part phpinfo
dbg
DBG php debugger, version 2.16.20, Copyright 2001, 2005 Dmitri Dmitrienko, http://www.nusphere.com/dbg

the errorlog:
[Tue Apr 11 09:23:52 2006] [notice] Apache/2.0.54 (Fedora) configured -- resuming normal operations
[Tue Apr 11 09:24:06 2006] [notice] child pid 6137 exit signal Segmentation fault (11)

Version 2.16.20
Linked as a shared library.
Dbg security enabled.
Profiler compiled, enabled
Target PHP version 5.1.2
Server API Apache 2.0 Handler
Extensions API 220051025
Modules API 20050922
PHP API 20041225

Directive Local Value Master Value
debugger.enable_session_cookie On On
debugger.enabled On On
debugger.fail_silently On On
debugger.hosts_allow protected value protected value
debugger.hosts_deny protected value protected value
debugger.ignore_nops Off Off
debugger.JIT_enabled Off Off
debugger.JIT_host clienthost clienthost
debugger.JIT_level 3 3
debugger.JIT_port 7869 7869
debugger.net.chunksize 48000 48000
debugger.net.maxpacketsize 4096000 4096000
debugger.ports protected value protected value
debugger.profiler_enabled On On
debugger.session_nocache On On
debugger.timeout_seconds 300 300


phpinfo header

PHP Version 5.1.2

System Linux bthxba 2.6.15-1.2054_FC5 #1 Tue Mar 14 15:48:33 EST 2006 i686
Build Date Apr 10 2006 21:24:03
Configure Command './configure' '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--with-mime-magic=/etc/httpd/conf/magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--without-odbc' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php.ini
Scan this dir for additional .ini files /etc/php.d
additional .ini files parsed /etc/php.d/debugger.ini, /etc/php.d/dom.ini, /etc/php.d/ldap.ini, /etc/php.d/mysql.ini, /etc/php.d/mysqli.ini, /etc/php.d/pdo.ini, /etc/php.d/pdo_mysql.ini, /etc/php.d/pdo_sqlite.ini, /etc/php.d/xmlreader.ini, /etc/php.d/xmlwriter.ini, /etc/php.d/xsl.ini
PHP API 20041225
PHP Extension 20050922
Zend Extension 220051025
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, http, ftp, compress.bzip2, compress.zlib, https, ftps
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, convert.iconv.*, bzip2.*, zlib.*

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
with DBG v2.16.20, (C) 2000,2004, by Dmitri Dmitrienko

PHP Credits
Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference Off Off
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors On On
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log /var/log/httpd/php-error-log /var/log/httpd/php-error-log
error_prepend_string no value no value
error_reporting 2047 2047
expose_php On On
extension_dir /usr/lib/php/modules /usr/lib/php/modules
file_uploads On On
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/share/pear .:/usr/share/pear
log_errors On On
log_errors_max_len 1024 1024
magic_quotes_gpc Off Off
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
mail.force_extra_parameters no value no value
max_execution_time 30 30
max_input_time 60 60
memory_limit 64M 64M
open_basedir no value no value
output_buffering 4096 4096
output_handler no value no value
post_max_size 8M 8M
precision 14 14
realpath_cache_size 16K 16K
realpath_cache_ttl 120 120
register_argc_argv Off Off
register_globals Off Off
register_long_arrays Off Off
report_memleaks On On
report_zend_debug On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
zend.ze1_compatibility_mode Off Off

apache2handler
Apache Version Apache/2.0.54 (Fedora)
Apache API Version 20020903
Server Administrator root@localhost
Hostname:Port bthxba.absp.alcatel.be:0
User/Group apache(48)/48
Max Requests Per Child: 4000 - Keep Alive: off - Max Per Connection: 100
Timeouts Connection: 120 - Keep-Alive: 15
Virtual Server No
Server Root /etc/httpd
Loaded Modules core prefork http_core mod_so mod_access mod_auth mod_auth_anon mod_auth_dbm mod_auth_digest util_ldap mod_auth_ldap mod_include mod_log_config mod_logio mod_env mod_mime_magic mod_cern_meta mod_expires mod_deflate mod_headers mod_usertrack mod_setenvif mod_mime mod_dav mod_status mod_autoindex mod_asis mod_info mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_proxy proxy_ftp proxy_http proxy_connect mod_cache mod_suexec mod_disk_cache mod_file_cache mod_mem_cache mod_cgi mod_php5 mod_ssl

Directive Local Value Master Value
engine 1 1
last_modified 0 0
xbithack 0 0

Apache Environment
Variable Value
HTTP_HOST localhost
HTTP_USER_AGENT Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060313 Fedora/1.5.0.1-9 Firefox/1.5.0.1 pango-text
HTTP_ACCEPT text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_KEEP_ALIVE 300
HTTP_CONNECTION keep-alive
HTTP_REFERER http://localhost/
PATH /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE <address>Apache/2.0.54 (Fedora) Server at localhost Port 80</address>
SERVER_SOFTWARE Apache/2.0.54 (Fedora)
SERVER_NAME localhost
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 127.0.0.1
DOCUMENT_ROOT /var/www/html
SERVER_ADMIN root@localhost
SCRIPT_FILENAME /var/www/html/phpinfo.php
REMOTE_PORT 47430
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /phpinfo.php
SCRIPT_NAME /phpinfo.php

HTTP Headers Information
HTTP Request Headers
HTTP Request GET /phpinfo.php HTTP/1.1
Host localhost
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060313 Fedora/1.5.0.1-9 Firefox/1.5.0.1 pango-text
Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
Referer http://localhost/
HTTP Response Headers
X-Powered-By PHP/5.1.2
Connection close
Transfer-Encoding chunked
Content-Type text/html; charset=UTF-8
View user's profileFind all posts by johandewitSend private message


Joined: 20 Apr 2005
Posts: 32
Location: Belgium
Reply with quote
And here some coredump output

Loaded symbols for /usr/lib/php/modules/xsl.so
Reading symbols from /usr/lib/libexslt.so.0...done.
Loaded symbols for /usr/lib/libexslt.so.0
Reading symbols from /usr/lib/libxslt.so.1...done.
Loaded symbols for /usr/lib/libxslt.so.1
Reading symbols from /usr/lib/libgcrypt.so.11...done.
Loaded symbols for /usr/lib/libgcrypt.so.11
Reading symbols from /usr/lib/libgpg-error.so.0...done.
Loaded symbols for /usr/lib/libgpg-error.so.0
#0 0x01183fd5 in zend_assign_to_variable (result=0x880673c, op1=0x8806750, op2=0x8806764, value=0x8806768, type=1, Ts=0xbf9e7a40)
at /usr/src/debug/php-5.1.2/Zend/zend_execute.c:269
269 zval ***ptr = &CV_OF(node->u.var);
(gdb) Quit
(gdb)

(gdb) where
#0 0x01183fd5 in zend_assign_to_variable (result=0x880673c, op1=0x8806750, op2=0x8806764, value=0x8806768, type=1, Ts=0xbf9e7a40)
at /usr/src/debug/php-5.1.2/Zend/zend_execute.c:269
#1 0x011849dd in ZEND_ASSIGN_SPEC_CV_CONST_HANDLER (execute_data=0xbf9e7d78) at /usr/src/debug/php-5.1.2/Zend/zend_vm_execute.h:20727
#2 0x0115ded8 in execute (op_array=0x87feb5c) at /usr/src/debug/php-5.1.2/Zend/zend_vm_execute.h:92
#3 0x0113f6d0 in zend_execute_scripts (type=8, retval=Variable "retval" is not available.
) at /usr/src/debug/php-5.1.2/Zend/zend.c:1101
#4 0x01100388 in php_execute_script (primary_file=0xbf9ea0d4) at /usr/src/debug/php-5.1.2/main/main.c:1720
#5 0x011c2140 in php_handler (r=0x87f2470) at /usr/src/debug/php-5.1.2/sapi/apache2handler/sapi_apache2.c:584
#6 0x00e54d5d in ap_run_handler (r=0x87f2470) at /usr/src/debug/httpd-2.0.54/server/config.c:157
#7 0x00e584b8 in ap_invoke_handler (r=0x87f2470) at /usr/src/debug/httpd-2.0.54/server/config.c:369
#8 0x00e522a8 in ap_process_request (r=0x87f2470) at /usr/src/debug/httpd-2.0.54/modules/http/http_request.c:249
#9 0x00e4ca1f in ap_process_http_connection (c=0x87ec200) at /usr/src/debug/httpd-2.0.54/modules/http/http_core.c:251
#10 0x00e608ad in ap_run_process_connection (c=0x87ec200) at /usr/src/debug/httpd-2.0.54/server/connection.c:43
#11 0x00e609ac in ap_process_connection (c=0x87ec200, csd=0x87ec128) at /usr/src/debug/httpd-2.0.54/server/connection.c:176
#12 0x00e53448 in child_main (child_num_arg=Variable "child_num_arg" is not available.
) at /usr/src/debug/httpd-2.0.54/server/mpm/prefork/prefork.c:610
#13 0x00e536ed in make_child (s=0x861be88, slot=0) at /usr/src/debug/httpd-2.0.54/server/mpm/prefork/prefork.c:704
#14 0x00e537ca in startup_children (number_to_start=8) at /usr/src/debug/httpd-2.0.54/server/mpm/prefork/prefork.c:722
#15 0x00e5419c in ap_mpm_run (_pconf=0x861a0a8, plog=0x8646158, s=0x861be88) at /usr/src/debug/httpd-2.0.54/server/mpm/prefork/prefork.c:941
#16 0x00e5b443 in main (argc=140607776, argv=0x869d278) at /usr/src/debug/httpd-2.0.54/server/main.c:619


I hope you can make something from this.

Greetings

Jo
View user's profileFind all posts by johandewitSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
thanks for the back trace.
It's clear that it's Zend crashed:
#0 zend_assign_to_variable() in /usr/src/debug/php-5.1.2/Zend/zend_execute.c
execution reached this point from Apache and DBG is not involved anyways.

I'd recommend you submit bug in http://bugs.php.net/
They will be happy to see backtrace too.


BTW, before proceeding with it, just cleanup php.ini from any and all php extension (see extension=) and from Zend extension (zend_extension=) entries, restart apache (stop-start) and check if it helped.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 20 Apr 2005
Posts: 32
Location: Belgium
Reply with quote
Hi dmitirie,

No matter waht i enable/disable, always segfaults.

I discovered that everytjing seems to work until I do get to the first variable assignment.

I will compile httpd and php from scratch and see what this gives with differnet php versions.
Everything works if i does not use the debugger.

Any hints ?

Johan
View user's profileFind all posts by johandewitSend private message


Joined: 20 Apr 2005
Posts: 32
Location: Belgium
Reply with quote
Hi dmitire,

It keeps on crashing, no matter what I do. So i compiled with debug info hoping to retrieve more detailed info.

Because I enabled debug for php.

PHP Warning: PHP Startup: dbg: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20050922, debug=1, thread-safety=0
These options need to match

Could you assist in this (if possible)?

Apache 2.0.55
PHP 5.1.2

Thanks
View user's profileFind all posts by johandewitSend private message
DBG and phped 3.3.3 linux
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 2  

  
  
 Reply to topic