ID:               20388
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Feedback
 Bug Type:         *XML functions
 Operating System: FreeBSD 4.6
 PHP Version:      4.2.3
 New Comment:

Hello,

I think you're recursivley calling a function somewhere, would it be
possible to tar the whole package up so that we can try to reproduce
it?

Derick


Previous Comments:
------------------------------------------------------------------------

[2002-11-12 10:40:49] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

and NOT the 'STABLE' ones..


------------------------------------------------------------------------

[2002-11-12 10:36:23] [EMAIL PROTECTED]

Yes, I tried with php4-STABLE-200211121230 from snaps. Same result.

------------------------------------------------------------------------

[2002-11-12 10:33:16] [EMAIL PROTECTED]

It looks that it's XML related and not sockets.

Did you try it with the latest snapshoot ?
http://snaps.php.net

------------------------------------------------------------------------

[2002-11-12 08:05:26] [EMAIL PROTECTED]

Afternoon:
 
I'm having problems with PHP CGI crashing and I have no idea why. The
script I'm running hasn't changed, nor has the server setup. It ran
fine for several weeks and then started crashing. I rebooted the server
and it was fine for a couple of days... now its crashing again.

The script is a daemon that listens on a port for incoming XML
fragments (you can see pieces of this XML at the end of the backtrace)
- so this could be Socket or XML related.
 
I was running PHP 4.2.1. I upgraded to 4.2.3 and its still doing it. I
have also upgraded to the latest snapshot and ran this through PHP
4.3.0-cli - same result.

./configure --with-mysql --enable-debug --enable-shared=yes
--without-apache --enable-ftp --with-mcrypt --with-curl
--enable-sockets
 
Here is a backtrace, but its all greek to me. Can anyone explain what
on earth all this means?

#0  0x28353386 in localeconv () from /usr/lib/libc.so.4
#1  0x28364ee1 in strtod () from /usr/lib/libc.so.4
#2  0x8127ac1 in is_numeric_string (str=0x81fe224 "SELECT", length=6,
lval=0xbbc00164, dval=0xbbc00158, allow_errors=0 '\000')
    at zend_operators.h:94
#3  0x81276fa in zendi_smart_strcmp (result=0xbbc00348, s1=0xbe84f24,
s2=0x82bd4fc) at zend_operators.c:1653
#4  0x8126346 in compare_function (result=0xbbc00348, op1=0xbe84f24,
op2=0x82bd4fc) at zend_operators.c:1128
#5  0x8126c2a in is_equal_function (result=0xbbc00348, op1=0xbe84f24,
op2=0x82bd4fc) at zend_operators.c:1276
#6  0x814d64f in execute (op_array=0x82b9d24) at ./zend_execute.c:1114
#7  0x8150337 in execute (op_array=0x82ca224) at ./zend_execute.c:1638
#8  0x8150337 in execute (op_array=0x82065a4) at ./zend_execute.c:1638
#9  0x8150337 in execute (op_array=0x82065a4) at ./zend_execute.c:1638

.... (another 59,052 of these) ...

#59061 0x8150337 in execute (op_array=0x82065a4) at
./zend_execute.c:1638
#59062 0x8150337 in execute (op_array=0x82065a4) at
./zend_execute.c:1638
#59063 0x8150337 in execute (op_array=0x82065a4) at
./zend_execute.c:1638
#59064 0x8150337 in execute (op_array=0x82065a4) at
./zend_execute.c:1638
#59065 0x8150337 in execute (op_array=0x82065a4) at
./zend_execute.c:1638
#59066 0x8150337 in execute (op_array=0x8206b24) at
./zend_execute.c:1638
#59067 0x81208b3 in call_user_function_ex (function_table=0x821a698,
object_pp=0x81fcc30, function_name=0x81fdd24,
    retval_ptr_ptr=0xbfbfd810, param_count=3, params=0x826bc64,
no_separation=1, symbol_table=0x0) at zend_execute_API.c:517
#59068 0x812019d in call_user_function (function_table=0x81ac040,
object_pp=0x82a6b60, function_name=0x821eae4,
    retval_ptr=0x826bda4, param_count=3, params=0xbfbfd8a8) at
zend_execute_API.c:373
#59069 0x80f1f21 in xml_call_handler (parser=0x82a6b24,
handler=0x821eae4, argc=3, argv=0xbfbfd8a8) at xml.c:375



#59070 0x80f2922 in _xml_startElementHandler (userData=0x82a6b24,
name=0x81f3a40 "event", attributes=0x82a6c10) at xml.c:657
#59071 0x80f7b53 in doContent (parser=0x81bfc00, startTagLevel=0,
enc=0x816ebc0,
    s=0x82e617a "<event date=\"20021112 16:15:00\"
venue=\"Newmarket\"><outcome price=\"SP\" id=\"31,PAI370676\"
saddlecloth=\"1\" /><outcome price=\"SP\" id=\"31,PAI370677\"
saddlecloth=\"2\" /><outcome price=\"NR\" id=\"31,PAI370678\" "...,
end=0x82e9779 "",
    nextPtr=0x0) at xmlparse.c:1659
#59072 0x80f705a in contentProcessor (parser=0x81bfc00,
    start=0x82e504a "<bdml memberid=\"11\" password=\"good9top\"><event
date=\"20021112 13:05:00\" venue=\"Huntingdon\"><outcome price=\"SP\"
id=\"31,PAI370737\" saddlecloth=\"1\" /><outcome price=\"SP\"
id=\"31,PAI370738\" saddlecloth=\"2\""...,
    end=0x82e9779 "", endPtr=0x0) at xmlparse.c:1349
#59073 0x80f9ee2 in doProlog (parser=0x81bfc00, enc=0x816ebc0,
    s=0x82e504a "<bdml memberid=\"11\" password=\"good9top\"><event
date=\"20021112 13:05:00\" venue=\"Huntingdon\"><outcome price=\"SP\"
id=\"31,PAI370737\" saddlecloth=\"1\" /><outcome price=\"SP\"
id=\"31,PAI370738\" saddlecloth=\"2\""..., end=0x82e9779 "",
    tok=29,
    next=0x82e504a "<bdml memberid=\"11\" password=\"good9top\"><event
date=\"20021112 13:05:00\" venue=\"Huntingdon\"><outcome price=\"SP\"
id=\"31,PAI370737\" saddlecloth=\"1\" /><outcome price=\"SP\"
id=\"31,PAI370738\" saddlecloth=\"2\""..., nextPtr=0x0)
---Type <return> to continue, or q <return> to quit---
    at xmlparse.c:2687
#59074 0x80f9a54 in prologProcessor (parser=0x81bfc00,
    s=0x82e5024 "<?xml version=\"1.0\" encoding=\"utf-8\"?><bdml
memberid=\"11\" password=\"good9top\"><event date=\"20021112 13:05:00\"
venue=\"Huntingdon\"><outcome price=\"SP\" id=\"31,PAI370737\"
saddlecloth=\"1\" /><outcome price="..., end=0x82e9779 "",
    nextPtr=0x0) at xmlparse.c:2523
#59075 0x80f99ea in prologInitProcessor (parser=0x81bfc00,
    s=0x82e5024 "<?xml version=\"1.0\" encoding=\"utf-8\"?><bdml
memberid=\"11\" password=\"good9top\"><event date=\"20021112 13:05:00\"
venue=\"Huntingdon\"><outcome price=\"SP\" id=\"31,PAI370737\"
saddlecloth=\"1\" /><outcome price="..., end=0x82e9779 "",
    nextPtr=0x0) at xmlparse.c:2512
#59076 0x80f68c8 in php_XML_Parse (parser=0x81bfc00,
    s=0x82e5024 "<?xml version=\"1.0\" encoding=\"utf-8\"?><bdml
memberid=\"11\" password=\"good9top\"><event date=\"20021112 13:05:00\"
venue=\"Huntingdon\"><outcome price=\"SP\" id=\"31,PAI370737\"
saddlecloth=\"1\" /><outcome price="..., len=18261, isFinal=1)
    at xmlparse.c:1103
#59077 0x80f4864 in zif_xml_parse (ht=3, return_value=0x81fdc24,
this_ptr=0x0, return_value_used=1) at xml.c:1341
#59078 0x8150156 in execute (op_array=0x82060a4) at
./zend_execute.c:1598
#59079 0x8150337 in execute (op_array=0x81f6f24) at
./zend_execute.c:1638
#59080 0x8129bd5 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at zend.c:812
#59081 0x8063bed in php_execute_script (primary_file=0xbfbffab8) at
main.c:1383
#59082 0x80612a4 in main (argc=4, argv=0xbfbffb34) at cgi_main.c:778
#59083 0x80603bd in _start ()

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=20388&edit=1

Reply via email to