Bug #15333 Updated: strndup access violation

From: Date: Mon, 22 Jul 2002 20:07:51 +0000
Subject: Bug #15333 Updated: strndup access violation
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14790@lists.php.net to get a copy of this message
ID: 15333 Updated by: jmoore@php.net Reported By: david@harksystems.com -Status: Critical +Status: Open Bug Type: IIS related Operating System: Windows 2000 Pro PHP Version: 4.2.1 New Comment: Although there seems to be a common failure in strndup this is probably due to a buffer overflow somewhere which is being caused to overflow by strndup, I can never get these IIS bugs to repeat on my system, IIS seems about as stable as possible here, could you all give me your EXACT versions of 2k, IIS etc and Ill do my best to look into it, if not please can someone install MS VC6 and debug the process when it crashes (See technet/msdn on howto debug services) and get a stack trace so we can see where this crash is happening. I dont really think this bug is critical as things have never been that great on IIS and although its a hassle for a lot of people a work around would be to use PHP as CGI. Removing Critical status. - James Previous Comments: ------------------------------------------------------------------------ [2002-07-16 22:26:29] akierum@yahoo.com To restart IIS try to use "Restart IIS" rather than doind stop start. Worked for me :) ------------------------------------------------------------------------ [2002-07-15 19:12:17] david.vidmar@email.si Did you (developers) try to contact MS? I'm sure they would be of some help with this bug! ------------------------------------------------------------------------ [2002-07-15 09:50:56] agustinchernitsky@hotmail.com Okey, this is an update... Interesting one. Since I really need PHP running in ISAPI (for cookies, performance, etc), I reinstalled this weekend our main development server. I installed the server with Windows 2000 Server and applied Service Pack 2. Before we updated the server with the latests security patches from MS, my server was running SP2 and PHP 4.1.2 with no problems. After the Security Patches, everything went wrong. Now, what happened with a Win2k clean installation, with SP2 and PHP 4.2.1: It didn´t work. Got the same PHP Isapi error as before. Hope it helps. ------------------------------------------------------------------------ [2002-07-08 11:45:17] jtate@php.net I looked for the solution to this bug for more time than I had to spend. Problem A is that debugging under IIS is more than a little bit of a hassle. Problem B is that it seems to be a bogus pointer or corrupted memory that causes the access violation, and I wasn't able to track it down. Patches that fix the problem are very welcome, in the mean time, changing the security model to "low" seems to be a valid workaround. ------------------------------------------------------------------------ [2002-07-06 07:46:04] mfischer@php.net Reproduced here. Paying attention is relative. The number of developers under win32 is far less then the number of unix developers, simply. ------------------------------------------------------------------------ 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/15333 -- Edit this bug report at http://bugs.php.net/?id=15333&edit=1

« previous php.bugs (#14790) next »