|
From: Nuno L. <nun...@sa...> - 2007-01-11 14:46:07
|
>> > which also contains a suggested fix, near the end. Can you let me >> > know whether this helps for you. >> >> My problem is unrelated with _intel_fast_memcpy. I had _intel_fast_memcmp >> generating warnings, but that on was easy to suppress (Memcheck:Cond\n >> fun:_intel_fast_memcmp). >> My problem is that valgrind isn't fetching the function name (maybe >> because >> it isn't global, as it lookups the _intel_fast_memcmp symbol correctly). > > I am not convinced the root cause is _intel_fast_memcmp. It might be, or > there might be multiple problems here. Did you try the change I > suggested? I have now tried it, but the _intel_fast_memcmp warnings still appear. reports without suppressions: http://gcov.php.net/~nlopess/vg1.txt - test execution with valgrind 3.2.1 http://gcov.php.net/~nlopess/vg2.txt - same, but with your patch http://gcov.php.net/~nlopess/array_bind_004.mem - execution of the test through our test suite http://gcov.php.net/~nlopess/array_bind_004-2.mem - same, but with valgrind patched http://gcov.php.net/viewer.php?version=PHP_5_2&func=valgrind&file=ext%2Foci8%2Ftests%2Farray_bind_004.phpt - report from the test suite, but with suppressions It is strange that the bug that is bugging me ("Invalid read of size 8") only appears when the tests are run through the test suite. The test suite runs a slight different command that the one I was running. I simply run: valgrind ./sapi/cli/php ext/oci8/tests/array_bind_004.php > vg1.txt 2>&1 The test suite: valgrind -q --tool=memcheck --trace-children=yes --log-file-exactly=/p2/var/php_gcov/PHP_5_2/ext/oci8/tests/array_bind_003.mem /p2/var/php_gcov/PHP_5_2/sapi/cli/php -f /p2/var/php_gcov/PHP_5_2/ext/oci8/tests/array_bind_004.php" 2>&1 So, is it the pipe forwarding that is causing the problems? the --log-file--exactly? really strange.. > Do you have a way I can reproduce this for further investigation here? > That would be the most helpful. Well it is not that easy for you to reproduce it.. This envolves compiling php with the oracle libs (which are free) and running a php test case, as the one found in the page mentioned above. I can provide you the binaries, but even so you would need an oracle server (XE is free as well) to connect to. Nuno |