summaryrefslogtreecommitdiffstats
path: root/tools/valgrind/build-valgrind-for-chromium.sh
Commit message (Collapse)AuthorAgeFilesLines
* Remove old Valgrind build scripts and patches.timurrrr@chromium.org2010-01-261-209/+6
| | | | | | Review URL: http://codereview.chromium.org/543213 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37151 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed the tcmalloc patch for Valgrind.glider@chromium.org2009-12-181-0/+2
| | | | | | | | | Now Valgrind is able to intercept bash and Python allocation functions. This prevents ui_tests from crashing because of mismatched malloc/sh_malloc/free/sh_free calls inside Bash. Review URL: http://codereview.chromium.org/502029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34943 0039d316-1c4b-4281-b951-d872f2087c98
* Patch Valgrind to intercept libtcmalloc memory functions.timurrrr@chromium.org2009-12-041-0/+4
| | | | | | | | | | | | | | tools/valgrind/intercept_tcmalloc.patch modifies Valgrind's coregrind/m_replacemalloc/vg_replace_malloc.c to intercept the allocation/deallocation functions introduced by tcmalloc. This patch was prepared by Alexander Potapenko (cc'ed) and originally reviewed as http://codereview.chromium.org/434118 TBR=dank Review URL: http://codereview.chromium.org/467020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33831 0039d316-1c4b-4281-b951-d872f2087c98
* Update ThreadSanitizer to rev1250timurrrr@chromium.org2009-11-261-1/+1
| | | | | | Review URL: http://codereview.chromium.org/399073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33200 0039d316-1c4b-4281-b951-d872f2087c98
* Update valgrind to fix one problem with 64 bit code, and a regression ↵dkegel@google.com2009-10-211-0/+8
| | | | | | | | | | | running wine. BUG=valgrind_210481, valgrind_205541 TEST=valgrind net_unittests --gtest_filter=ProxyResolverV8Test.LoadLog ; valgrind wine's unit tests and see no HEAP_CreateSubHeap valgrind warnings Review URL: http://codereview.chromium.org/306020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29655 0039d316-1c4b-4281-b951-d872f2087c98
* Don't use -j4 to build gdb, it seems unsafe on mac.dank@chromium.org2009-10-071-9/+14
| | | | | | | | Also don't install anything until everything is built. Review URL: http://codereview.chromium.org/262012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28326 0039d316-1c4b-4281-b951-d872f2087c98
* Increase valgrind's redzone from 16 to 64 bytes.dank@chromium.org2009-09-221-11/+18
| | | | | | | | | | | | | If https://bugs.kde.org/show_bug.cgi?id=208197 is ever fixed, we can get rid of the patch and change the redzone size with a commandline option instead. Install to /usr/local/valgrind-10880-redzone to make it easier to tell which machines have the updated valgrind. Add DIRNAME variable to valgrind build script to simplify changing name of tarball/build dir/install dir. Also give -f option to mv because macosx's mv is timid about overwriting symlinks. Review URL: http://codereview.chromium.org/216048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26849 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes for building and running valgrind on Ubuntuevan@chromium.org2009-09-221-0/+8
| | | | | | | | | | | - valgrind.sh is a bash script - Look for ld.single as well as ld.orig when searching for !gold ld Patch by Joel Stanley <joel@jms.id.au> Review URL: http://codereview.chromium.org/209009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26785 0039d316-1c4b-4281-b951-d872f2087c98
* Don't include symlink to /usr/share/autofoo-baz/install-sh in valgrind tarball.dkegel@google.com2009-09-181-0/+7
| | | | | | | | | | | This avoids a problem building valgrind using MAKE_TARBLL=yes and USE_TARBALL=yes on a different system. BUG=none TEST=install valgrind as documented in our bot setup page on a system without auto* installed. Review URL: http://codereview.chromium.org/208027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26605 0039d316-1c4b-4281-b951-d872f2087c98
* Update to valgrind-3.5.0. From timur, http://codereview.chromium.org/190008dkegel@google.com2009-09-031-5/+5
| | | | | | | | | | Also use it if present. Especially use its new xml suppression record if present, which is more correct than the one we synthesize. Also fix a warning about global use before declare in memcheck_analyze.py. Review URL: http://codereview.chromium.org/191006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25353 0039d316-1c4b-4281-b951-d872f2087c98
* Bundle a gdb that doesn't crash during line number lookup dank@chromium.org2009-09-011-0/+24
| | | | | | | | | | when presented with Chrome built with -O1. (The gdb lives in /usr/local/valgrind-10771/bin, so should not interfere with the system gdb.) Review URL: http://codereview.chromium.org/178042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25069 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 24548 without the symlink code which broke the build.dank@chromium.org2009-08-271-0/+4
| | | | | | | | | We can add a fixed version of that later after release builds work with gdb again. Review URL: http://codereview.chromium.org/174578 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24573 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 24548.dank@chromium.org2009-08-261-4/+0
| | | | | | Review URL: http://codereview.chromium.org/174576 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24551 0039d316-1c4b-4281-b951-d872f2087c98
* Fix gdb line number lookup on the mac.dank@chromium.org2009-08-261-0/+4
| | | | | | | | | | 1) need to quote filenames 2) need to know what address each library was loaded at 3) need to manually add symlink to chromium framework .dSYM file Review URL: http://codereview.chromium.org/174362 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24548 0039d316-1c4b-4281-b951-d872f2087c98
* Add license information to our shell scripts.agl@chromium.org2009-08-251-0/+5
| | | | | | | | | | Downstream packagers are (rightly) careful about the license of code that they distribute and so we want to dot our i's. http://codereview.chromium.org/174372 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24311 0039d316-1c4b-4281-b951-d872f2087c98
* Quote a few more uses of the paths to make sure things work with spaces in dirs.thomasvl@chromium.org2009-08-171-32/+35
| | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/172017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23539 0039d316-1c4b-4281-b951-d872f2087c98
* Move blocks of build-valgrind-for-chromium.sh around to let it build and use ↵dank@chromium.org2009-08-121-58/+89
| | | | | | | | | | source tarballs, needed for deploying on jailed bots Also change usage message to match last commit Review URL: http://codereview.chromium.org/164434 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23251 0039d316-1c4b-4281-b951-d872f2087c98
* Update to current Valgrind and tsan.dank@chromium.org2009-08-121-17/+11
| | | | | | | | | | | | | | | | | | | | | New fork and possible patches from Timur. Accept new xml output format. Use --xml-file option if present. Drop two patches already in trunk. Remove obsolete --generate_suppressions code. Accept but ignore --generate_dsym option on non-darwin platforms, so scripts don't need conditionals Switch to using svn revision numbers rather than dates, because svn uses the local timezone to interpret the dates, and this caused patches to fail. Feh. Check to make sure a good copy of valgrind was found before trying to use valgrind. Review URL: http://codereview.chromium.org/160392 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23214 0039d316-1c4b-4281-b951-d872f2087c98
* build-valgrind-for-chrome.sh: Don't install valgrind to /usr/bin anymoredkegel@google.com2009-08-111-18/+41
| | | | | | | | | | | | | | (wasn't useful on Goobuntu anyway, where some other valgrind came first in the PATH) Don't hardcode versions/dates. Add usage message. Remove URLs to some patches (they go stale fast) chrome_tests.sh: use the valgrind built by build-valgrind-for-chrome.sh by default, but provide way to override Review URL: http://codereview.chromium.org/165317 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23076 0039d316-1c4b-4281-b951-d872f2087c98
* Cherrypick valgrind patch to fix thinko that keptdkegel@google.com2009-07-281-0/+4
| | | | | | | | | | leak suppressions from being tallied. BUG=17890 TEST=run sh tools/valgrind/chrome_tests.sh -t base --tool_flags="--nocleanup_on_exit" & look at <suppcounts> in valgrind.tmp/* before and after sh tools/valgrind/build-valgrind-for-chromium.sh, verify leak suppressions show up after. Review URL: http://codereview.chromium.org/160275 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21868 0039d316-1c4b-4281-b951-d872f2087c98
* Add experimental TSAN support (off by default)dkegel@google.com2009-07-271-0/+13
| | | | | | Review URL: http://codereview.chromium.org/160042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21659 0039d316-1c4b-4281-b951-d872f2087c98
* change smoke test to run true rather than /bin/true to make macosx happydkegel@google.com2009-07-231-1/+1
| | | | | | Review URL: http://codereview.chromium.org/159258 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21387 0039d316-1c4b-4281-b951-d872f2087c98
* Add new option --show-possible to valgrind for later use by valgrind_test.py ↵dank@chromium.org2009-07-231-0/+5
| | | | | | | | | | | to speed up log processing. BUG=17484 TEST=run to install new valgrind; sh tools/valgrind/chrome_tests.sh -t base --tool_flags="--nocleanup_on_exit --show-possible=no"; grep PossiblyLost valgrind.tmp/* should find no matches. Review URL: http://codereview.chromium.org/159251 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21365 0039d316-1c4b-4281-b951-d872f2087c98
* Use ld.orig if present to build valgrind rather than making user switch back ↵dkegel@google.com2009-07-221-2/+13
| | | | | | | | | | | to ld.orig manually. BUG=https://bugs.kde.org/show_bug.cgi?id=193413 TEST=script should build working valgrind even if user installed gold with install-build-deps.sh Review URL: http://codereview.chromium.org/159218 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21315 0039d316-1c4b-4281-b951-d872f2087c98
* Give slightly more helpful error message if gold is present.dkegel@google.com2009-07-221-1/+1
| | | | | | | | | | | We should fix valgrind to build properly with gold; it might be too hard. BUG=https://bugs.kde.org/show_bug.cgi?id=193413 TEST=valgrind /bin/true should not fail Review URL: http://codereview.chromium.org/159217 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21309 0039d316-1c4b-4281-b951-d872f2087c98
* Patch from timur. Properly terminate XML output document in case of an exec. dkegel@google.com2009-07-221-1/+16
| | | | | | | | | | | | | This makes the python scripts happier. Also add some safeguards against building valgrind with gold, which generates a broken valgrind. BUG=17453 TEST=build and install new valgrind; sh tools/valgrind/chrome_tests.sh -t base, verify no "valgrind did not finish" warnings Review URL: http://codereview.chromium.org/159200 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21290 0039d316-1c4b-4281-b951-d872f2087c98
* Use local copies of files from bug tracker (URL still in comments); avoids ↵dkegel@google.com2009-07-211-7/+11
| | | | | | | | wget dependency Review URL: http://codereview.chromium.org/159175 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21238 0039d316-1c4b-4281-b951-d872f2087c98
* Script to build valgrind for chromiumdank@chromium.org2009-07-211-0/+34
Review URL: http://codereview.chromium.org/155848 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21170 0039d316-1c4b-4281-b951-d872f2087c98