#22774 [Com]: PHP crashes when exiting (long XML doc)

2003-03-27 Thread rrichards at digarc dot com
 ID:   22774
 Comment by:   rrichards at digarc dot com
 Reported By:  fgarcia at uef dot es
 Status:   Open
 Bug Type: DOM XML related
 Operating System: Windows 2000
 PHP Version:  4.3.2RC1
 New Comment:

Finally able to reproduce this using a simplified script:
?php
if (!extension_loaded(domxml)) @dl(php_domxml.dll);
$domR=domxml_new_doc('1.0');
$nItinerario = $domR-create_element(itinerario);
$domR-append_child($nItinerario);
?

If the extension is NOT loaded via the php.ini file, upon shutdown,
php_free_xml_doc is called first and then php_free_xml_node for the
created element is called which causes the blow up. If read from the
ini file, php_free_xml_node is called first and then php_free_xml_doc.

Seems to be some issue with the external loading of the extension.


Previous Comments:


[2003-03-24 05:02:02] rrichards at digarc dot com

Am not able to reproduce in Win 2K. Ran it for 10,000 and 20,000
iterations without a problem. Finally ran it for 1,000,000 iterations
until the machine ran out of memory (was over a Gig of used memory at
that point).
Once getting a fatal emalloc error memory returned back to normal
(exact amount used prior to running).

Tested against latest cvs code as well as a php4-3.0-dev build from jun
2002.

using libxml2-2.4.22



[2003-03-21 05:43:43] [EMAIL PROTECTED]

looks like a mem-leak

linux normally doesn't segfault on memleaks. Windows does... that's the
difference ;)

I try to look at it



[2003-03-21 04:31:56] fgarcia at uef dot es

If you see DrWatson output there is the function zend_timeout 

I don't know if that matchs something.



[2003-03-21 04:28:48] fgarcia at uef dot es

I've updated to 4.3.2-RC1 version, and updated php4ts.dll on
winnt/system
Same bug.


php -v:
PHP 4.3.2-RC (cgi-fcgi), Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies



[2003-03-20 17:47:43] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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

And make sure you really update it. Especially the php4ts.dll file.




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/22774

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



#22774 [Com]: PHP crashes when exiting (long XML doc)

2003-03-24 Thread rrichards at digarc dot com
 ID:   22774
 Comment by:   rrichards at digarc dot com
 Reported By:  fgarcia at uef dot es
 Status:   Open
 Bug Type: DOM XML related
 Operating System: Windows 2000
 PHP Version:  4.3.2RC1
 New Comment:

Am not able to reproduce in Win 2K. Ran it for 10,000 and 20,000
iterations without a problem. Finally ran it for 1,000,000 iterations
until the machine ran out of memory (was over a Gig of used memory at
that point).
Once getting a fatal emalloc error memory returned back to normal
(exact amount used prior to running).

Tested against latest cvs code as well as a php4-3.0-dev build from jun
2002.

using libxml2-2.4.22


Previous Comments:


[2003-03-21 05:43:43] [EMAIL PROTECTED]

looks like a mem-leak

linux normally doesn't segfault on memleaks. Windows does... that's the
difference ;)

I try to look at it



[2003-03-21 04:31:56] fgarcia at uef dot es

If you see DrWatson output there is the function zend_timeout 

I don't know if that matchs something.



[2003-03-21 04:28:48] fgarcia at uef dot es

I've updated to 4.3.2-RC1 version, and updated php4ts.dll on
winnt/system
Same bug.


php -v:
PHP 4.3.2-RC (cgi-fcgi), Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies



[2003-03-20 17:47:43] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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

And make sure you really update it. Especially the php4ts.dll file.




[2003-03-20 11:32:41] fgarcia at uef dot es

DrWatson output:
(in spanish, sorry)


Excepción de aplicación ocurrida:
Aplicación:  (pid=2100)
Fecha y hora: 20/03/2003 a las 18:32:17.205
Número de excepción: c005 (infracción de acceso)

* Información del sistema *
Nombre de equipo: UP086817
Nombre de usuario: UF265250
Número de procesadores: 1
Tipo de procesador: x86 Family 6 Model 8 Stepping 6
Versión de Windows 2000 : 5.0
Versión actual: 2195
Service Pack: 1
Tipo actual: Uniprocessor Free
Organización registrada: Unión Fenosa
Propietario registrado: Unión Fenosa

* Lista de tareas *
   0 Idle.exe
   8 System.exe
 140 SMSS.exe
 164 csrss.exe
 184 WINLOGON.exe
 212 services.exe
 224 LSASS.exe
 388 svchost.exe
 416 SPOOLSV.exe
 504 svchost.exe
 588 regsvc.exe
 604 mstask.exe
 616 trcboot.exe
 668 WinMgmt.exe
 764 pcs_agnt.exe
 752 naimas32.exe
1828 wpctrl.exe
1776 naimag32.exe
1804 editplus.exe
 680 CMD.exe
1796 taskmgr.exe
1232 CMD.exe
 532 NLNOTES.exe
1876 msaccess.exe
 488 Avsynmgr.exe
 696 VSStat.exe
 804 vshwin32.exe
 892 Mcshield.exe
 880 Avconsol.exe
1696 notepad.exe
 684 ExamDiff.exe
2072 msaccess.exe
1020 explorer.exe
1012 netadmin.exe
1268 netadmin.exe
1560 hh.exe
2192 winhlp32.exe
2124 DRWTSN32.exe
2016 DRWTSN32.exe
2100 php.exe
 196 DRWTSN32.exe
   0 _Total.exe

(0040 - 00405000) 
(77F8 - 7800) 
(1000 - 10127000) 
(77E8 - 77F3F000) 
(77E1 - 77E74000) 
(77F4 - 77F7C000) 
(7500 - 75009000) 
(74FE - 74FF4000) 
(7800 - 78046000) 
(77DB - 77E0A000) 
(77D4 - 77DB) 
(74FD - 74FD8000) 
(77A5 - 77B45000) 
(779B - 77A45000) 
(1F7D - 1F804000) 
(76B1 - 76B4D000) 
(77C7 - 77CBA000) 
(77B5 - 77BD9000) 
(7759 - 777D8000) 
(1F8C - 1F8D8000) 
(00FD - 0102C000) 
(0103 - 01043000) 

Muestra de estado para identificador de subproceso 0x808

eax=0118ee78 ebx=00862518 ecx=0001 edx=0012fb54 esi=00e18ec8
edi=00862518
eip=00fd1bc7 esp=0012fb3c ebp=00df5778 iopl=0 nv up ei pl nz na
po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs=
efl=0206


función: nosymbols
00fd1bb9 5e   pop esi
00fd1bba c3   ret
00fd1bbb 90   nop
00fd1bbc 90   nop
00fd1bbd 90   nop
00fd1bbe 90   nop
00fd1bbf 90   nop
00fd1bc0 8b442404 mov eax,[esp+0x4] 
ss:00bfd113=
00fd1bc4 56   pushesi
00fd1bc5 8b30 mov esi,[eax] 
ds:0118ee78=00e18ec8
ERROR - 00fd1bc7 8b4614   mov eax,[esi+0x14]
ds:018e649e=
00fd1bca 85c0 testeax,eax
00fd1bcc 751a jnz 00fda6e8
00fd1bce 8b4e0c   mov ecx,[esi+0xc] 
ds:018e649e=
00fd1bd1 51   pushecx
00fd1bd2 e879ff