ID:               32422
 User updated by:  rob at wildlime dot com
 Reported By:      rob at wildlime dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Reproducible crash
 Operating System: Windows XP SP2
 PHP Version:      4.3.10
 New Comment:

Using PHP/4.3.11RC2-dev

(btw, is it intentional that pear installs to c:\php\pear\pear?)

Same result - frequent access violation.

stack trace:
ntdll!RtlpCoalesceFreeBlocks+0x21
ntdll!RtlFreeHeap+0x2e9
msvcrt!free+0xc3
msvcrt!__crtsetenv+0x193
msvcrt!_putenv_lk+0x42
msvcrt!_putenv+0x20
WARNING: Stack unwind information not available. Following frames may
be wrong.
php4ts!php_get_inf+0xfae


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

[2005-03-29 10:27: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 provide the trace when using the snapshot.



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

[2005-03-29 07:53:56] rob at wildlime dot com

Here's another stack trace, using the MS debugger to get access to the
symbol names

ntdll!RtlpCoalesceFreeBlocks+0x21
ntdll!RtlFreeHeap+0x2e9
msvcrt!free+0xc3
msvcrt!__crtsetenv+0x193
msvcrt!_putenv_lk+0x42
msvcrt!_putenv+0x20
WARNING: Stack unwind information not available. Following frames may
be wrong.
php4ts!php_get_inf+0xf6e

Error details from the debugger:
(268.ddc): Access violation - code c0000005 (!!! second chance !!!)
eax=00000418 ebx=00830000 ecx=7ffda000 edx=00830608 esi=0082fd68
edi=00830180
eip=7c910c27 esp=0108d978 ebp=0108d984 iopl=0         nv up ei ng nz na
po cy
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000            
efl=00000287
ntdll!RtlpCoalesceFreeBlocks+0x21:
7c910c27 f6460501         test    byte ptr [esi+0x5],0x1 
ds:0023:0082fd6d=??

(NB still using php 4.3.10)

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

[2005-03-29 02:05:42] rob at wildlime dot com

Installed php 4.3.11 RC1 (windows) to c:\php, but PEAR wont't install. 
The error on running go-pear.bat, accepting the defaults, is: "failed to
write c:\php\pear\data\PEAR\.tmppackage.dtd" 

There is plenty of disk space and I'm using an admin account.

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

[2005-03-23 04:07:10] rob at wildlime dot com

Description:
------------
Experiencing an intermittent (once every 5-10 requests) access
violation.

btw, I have posted this to the PHP bug list rather than the PEAR one as
it is a crash, not just a script error.

Here's the info I can glean from the debugger.  I'm afraid I don't have
the debug builds.

Windows XP pro SP2
Apache/1.3.33 (Win32)
PHP/4.3.10

stack trace:
7C910C27 C:\WINDOWS\system32\ntdll.dll
7C910D5C C:\WINDOWS\system32\ntdll.dll
77C2C2DE C:\WINDOWS\system32\msvcrt.dll
77C39AE9 C:\WINDOWS\system32\msvcrt.dll
77C35F5D C:\WINDOWS\system32\msvcrt.dll
77C35FEC C:\WINDOWS\system32\msvcrt.dll
10047D4E c:\php4\php4ts.dll

or sometimes:
77C46137 C:\WINDOWS\system32\msvcrt.dll
100CA6AE c:\php4\php4ts.dll
60002E50 c:\php4\php4apache.dll
6000186F c:\php4\php4apache.dll

dll base addresses:
0x60000000 php4apache.dll
0x10000000 php4ts.dll

Reproduce code:
---------------
<?php

require_once 'Date.php';

$now =& new Date();

$year = 2005;
$month = 3;
$day = 24;
$time = '09:00';
$s = sprintf("%04d-%02d-%02dT%s:00", $year, $month, $day, $time);               
$date = new Date($s);

$date->before($now);
?>

Expected result:
----------------
nothing - no output, so blank browser window

Actual result:
--------------
Access violation every 5-10 requests. 


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


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

Reply via email to