#37349 [Opn->Asn]: memory corruption within run-tests.php

From: Date: Sat, 10 Jun 2006 23:31:25 +0000
Subject: #37349 [Opn->Asn]: memory corruption within run-tests.php
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-98264@lists.php.net to get a copy of this message
ID: 37349 Updated by: nlopess@php.net Reported By: nlopess@php.net -Status: Open +Status: Assigned Bug Type: Streams related Operating System: n/a PHP Version: 6CVS-2006-05-07 (CVS) Assigned To: pollita New Comment: I've updated the valgrind report, now with ICU 3.5-cvs (contains a fix to a related bug I've reported). Now the report is smaller. IMHO, this is surely a streams problem. as fair as I can see the code isn't calculaing the buffer length correctly when passing that value to u_memchr(). Sara, can you please check this problem? You are the best (if not the only) person who can fix this. Previous Comments: ------------------------------------------------------------------------ [2006-05-27 09:56:19] nlopess@php.net I've upgraded ICU to version 3.4.1 and I still get the same problems: http://mega.ist.utl.pt/~ncpl/php6-tidy-valgrind.txt ------------------------------------------------------------------------ [2006-05-27 09:40:35] nlopess@php.net no, Tony, I'm not :) I'll update ICU to check if that is the problem. ------------------------------------------------------------------------ [2006-05-27 09:33:51] tony2001@php.net Nuno, you must be kidding: ----- [24 May 9:53pm UTC] tony2001@php.net <..> I can't reproduce it with the latest CVS. ----- I said I don't see any valgrind warnings with any of tidy tests, what's the point to refer to your first post? What exactly do you get? ------------------------------------------------------------------------ [2006-05-26 18:03:44] nlopess@php.net Tony: its in my first comment :) You just need to run valgrind on run-tests.php while testing the tidy/tests/020.phpt file. This produces a nice error message: 'BORK TEST', along with a huge valgrind report. (also, the problem might be in ICU. I haven't look further though) ------------------------------------------------------------------------ [2006-05-26 06:38:27] tony2001@php.net Okay, but how to reproduce it? ------------------------------------------------------------------------ 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/37349 -- Edit this bug report at http://bugs.php.net/?id=37349&edit=1

« previous php.bugs (#98264) next »