ID:               35886
 Updated by:       [EMAIL PROTECTED]
 Reported By:      chris at lodesys dot com
-Status:           Assigned
+Status:           Verified
 Bug Type:         Reproducible crash
 Operating System: Windows
 PHP Version:      5CVS-2006-01-03 (snap)
 Assigned To:      nlopess
 New Comment:

OK, the problem is in the MapViewOfFile() call in
php_stdiop_set_option(), because it is mapping less data than we've
asked.
It seems a windows problem to me, but I'm leaving open because this can
be a serious bug (although I'm not able to fix it..).


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

[2006-01-05 00:26:24] [EMAIL PROTECTED]

OK, back from the school exams, the problem seems to be in
php_stdiop_set_option(), because it is allocating one less byte than it
should. (and that mmap code is specific for windows).

I'll try to investigate the problem further and produce a patch.

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

[2006-01-04 01:25:08] [EMAIL PROTECTED]

Nuno, if you can reproduce -> provide the backtrace.

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

[2006-01-04 00:11:14] [EMAIL PROTECTED]

I'm able to reproduce the crash on Windows XP.

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

[2006-01-03 23:50:54] chris at lodesys dot com

Not in a position to buy/snag a copy of the Microsoft compiler (let me
know if MSVC6 is something else), so will have to let it go unless
someone else can duplicate it.  Too bad you can't get the info. you
need from Dr. Watson.

Have worked around it on my own project by changing the size of the
fetch (just need the first 6KB of  12-200 KB text files).  Thanks for
your help!

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

[2006-01-03 22:47:53] [EMAIL PROTECTED]

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.

Works perfectly fine here.

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

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

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

Reply via email to