php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45286 Multiple call of copy function crashes OS with bluescreen
Submitted: 2008-06-16 19:00 UTC Modified: 2008-07-08 21:25 UTC
From: michael at mjv dot dk Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.2.6 OS: Windows XP Pro DK SP3
Private report: No CVE-ID: None
 [2008-06-16 19:00 UTC] michael at mjv dot dk
Description:
------------
When I try to call the Copy(src,dest) function multiple times (More than 5 times) on remote files/images, my webserver crashes with bluescreen and the server reboots.
The script works if I call copy(src,dest) less than 5 times.

It crashes on this system:
Os: Windows XP Pro SP3
webserver: Apache 2.2.8
PHP: 5.2.6

It does not crash on the following system:
Os: Debian
webserver: Apache 2.0.53 
PHP: 4.3.10-8Debian

Best Regards Michael

Reproduce code:
---------------
<?php
copy('http://pics2.yobt.com/v2/thumbs/69/86769.jpg','tempimg_15.jpg');
copy('http://pics4.yobt.com/v2/thumbs/60/86760.jpg','tempimg_16.jpg');
copy('http://pics2.yobt.com/v2/thumbs/57/86757.jpg','tempimg_17.jpg');
copy('http://pics5.yobt.com/v2/thumbs/55/86755.jpg','tempimg_18.jpg');
copy('http://pics5.yobt.com/v2/thumbs/53/86753.jpg','tempimg_19.jpg');
copy('http://pics3.yobt.com/v2/thumbs/48/86748.jpg','tempimg_20.jpg');
copy('http://pics4.yobt.com/v2/thumbs/44/86744.jpg','tempimg_21.jpg');
copy('http://pics.yobt.com/v2/thumbs/18/86718.jpg','tempimg_22.jpg');
copy('http://pics1.yobt.com/v2/thumbs/10/86710.jpg','tempimg_23.jpg');
copy('http://pics5.yobt.com/v2/thumbs/15/515.jpg','tempimg_24.jpg');
copy('http://pics4.yobt.com/v2/thumbs/35/535.jpg','tempimg_25.jpg');
copy('http://pics1.yobt.com/v2/thumbs/94/51094.jpg','tempimg_26.jpg');
copy('http://pics5.yobt.com/v2/thumbs/93/86693.jpg','tempimg_27.jpg');
copy('http://pics.yobt.com/v2/thumbs/74/80874.jpg','tempimg_28.jpg');
copy('http://pics4.yobt.com/v2/thumbs/73/80873.jpg','tempimg_29.jpg');
copy('http://pics.yobt.com/v2/thumbs/71/80871.jpg','tempimg_30.jpg');
copy('http://pics1.yobt.com/v2/thumbs/36/59936.jpg','tempimg_31.jpg');
?>

Expected result:
----------------
Files should download to the webserver 

Actual result:
--------------
OS crashes with bluescreen and server reboots.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-04 08:22 UTC] jani@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.


 [2008-07-04 14:25 UTC] jani@php.net
It just means you've loaded too much porn on your machine.
 [2008-07-08 21:25 UTC] michael at mjv dot dk
It Seemed to be a hardware error. I've replaced the NIC and now there are no problems. Everything works great. Sorry about wasting your time....

Best Regards
    Michael
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 03 03:01:29 2024 UTC