ID:               48034
 Updated by:       lbarn...@php.net
 Reported By:      ninzya at inbox dot lv
-Status:           Feedback
+Status:           Verified
 Bug Type:         Reproducible crash
 Operating System: Windows XP
 PHP Version:      5.3.0RC1
 New Comment:

It seems related to http://bugs.php.net/bug.php?id=47596 . Not exactly
the same problem, though.
It seems php_stream_open_for_zend() does not mmap() enough for
ZEND_MMAP_AHEAD (PHP_STREAM_OPTION_MMAP_API in plain_wrapper adjusts the
mmap length to the filesize, so ignoring ZEND_MMAP_AHEAD), and this may
crash when the parser reads ahead of the mmap()ed region. 


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

[2009-04-21 12:10:37] paj...@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.



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

[2009-04-21 11:50:51] ninzya at inbox dot lv

PHP is installed as apache module.
No fancy filtering, default php/apache installation.
All php modules disabled.

Bug hits only if file size is 8KB exactly (8192 bytes). PHP 5.2.9 also
is affected.

By the way, Apache 2.2 is not affected. Seems this is apache 2.0
specific problem. Don't know where to post this issue, here, or in
Apache bugtracker.

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

[2009-04-21 11:40:31] j...@php.net

Which apache module? Do you have some fancy filtering going on? Does
this happen with PHP 5.2.9 ? Do you have any shared extensions loaded?
Any Zend extensions like debugger or cache? (disable those and retry)

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

[2009-04-21 11:27:52] ninzya at inbox dot lv

http://www.stepanov.lv/pub/bug48034.txt <-- php file contents
PHP as module.
It crashes by displaying "Apache.exe - Application error" window,
saying "The instruction at 0x0085779c referenced memory at 0x061e2000
(this actually varies). The memory could not be read. Click OK to
terminate the program."

(BTW, what is your formula for bogusness percentage?)

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

[2009-04-21 11:14:48] j...@php.net

Also: Exactly how does it crash? Are you sure it crashes? How did you
configure PHP in Apache? (READ: Not enough information, 99% bogus..)

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

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/48034

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

Reply via email to