Dear Satish, Thanks very much for your kind help! Those tons of errors did not show up when I use the valgrind located at /usr/bin/valgrind.
Cheers, Rebecca Quoting Satish Balay <balay at mcs.anl.gov>: > Ubuntu valgrind is at /usr/bin/valgrind. > > /usr/local/bin/valgrind might be a personal install. [perhaps > compiled on 8.04] > > Try: > > ~/soft/petsc-3.1-p4/externalpackages/mpich2-1.0.8/bin/mpiexec -np 2 > /usr/bin/valgrind --tool=memcheck ./ex19.exe -malloc off -da_grid_x > 30 -da_grid_y 30 > > [and then delete valgrind installed at /usr/local] > > Satish > > On Tue, 7 Sep 2010, Rebecca Xuefei Yuan wrote: > >> It is >> >> >> rebecca at YuanWork:~/soft$ which valgrind >> /usr/local/bin/valgrind >> >> >> R >> Quoting Satish Balay <balay at mcs.anl.gov>: >> >> > what do you have for >> > >> > which valgrind >> > >> > Satish >> > >> > On Tue, 7 Sep 2010, Rebecca Xuefei Yuan wrote: >> > >> > > Dear Satish, >> > > >> > > I checked the update the valgrind as >> > > >> > > >> > > rebecca at YuanWork:~/soft$ sudo apt-get install valgrind >> > > [sudo] password for rebecca: >> > > Reading package lists... Done >> > > Building dependency tree >> > > Reading state information... Done >> > > valgrind is already the newest version. >> > > The following packages were automatically installed and are no longer >> > > required: >> > > nabi ttf-wqy-zenhei ttf-takao-mincho libgcj8-dev ttf-alee gcj-4.2 >> > > ttf-takao-gothic gij xfonts-wqy ttf-unfonts-extra ttf-kacst >> > > Use 'apt-get autoremove' to remove them. >> > > 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. >> > > rebecca at YuanWork:~/soft$ dpkg -l valgrind >> > > Desired=Unknown/Install/Remove/Purge/Hold >> > > | >> > > >> Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend >> > > |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) >> > > ||/ Name Version Description >> > > >> +++-==============-==============-============================================ >> > > ii valgrind 1:3.6.0~svn201 A memory debugger and profiler >> > > >> > > >> > > It is a self installed valgrind or installed through ubuntu 10.04? >> > > >> > > Thanks a lot! >> > > >> > > Rebecca >> > > >> > > >> > > >> > > >> > > Quoting Satish Balay <balay at mcs.anl.gov>: >> > > >> > > > On Tue, 7 Sep 2010, Rebecca Xuefei Yuan wrote: >> > > > >> > > > > Dear Satish, >> > > > > >> > > > > I reinstalled PETSc by "rm -rf petsc-3.1-p4" and downloaded >> > > > > "petsc-lite-3.1-p4.tar.gz" to start over. >> > > > > >> > > > > The commands are >> > > > > >> > > > > >> > > > > ./config/configure.py --with-cc=gcc --with-fc=gfortran >> > > > > --download-f-blas-lapack=1 --download-mpich=1 >> > > > > make PETSC_DIR=/home/rebecca/soft/petsc-3.1-p4 >> > > > > PETSC_ARCH=linux-gnu-c-debug >> > > > > all >> > > > > make PETSC_DIR=/home/rebecca/soft/petsc-3.1-p4 >> > > > > PETSC_ARCH=linux-gnu-c-debug >> > > > > test >> > > > > >> > > > > When I check the valgrind version >> > > > > >> > > > > rebecca at YuanWork:~/soft$ valgrind --version >> > > > > valgrind-3.5.0 >> > > > > >> > > > > When I check at >> > > > > http://valgrind.org/ >> > > > > >> > > > > the current release is 3.5.0. How could you get 3.6? >> > > > >> > > > Are you using your own install of valgrind? [and not ubuntu install?] >> > > > If so - did you reinstall it after your OS upgrade? >> > > > >> > > > Looks like valgrind packaged by ubuntu/debian is an SVN snapshot of >> > > > upcoming 3.6 >> > > > >> > > > > > > > > > > > >> > > > balay at petsc:~ $ dpkg -l valgrind >> > > > Desired=Unknown/Install/Remove/Purge/Hold >> > > > | >> > > > >> Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend >> > > > |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) >> > > > ||/ Name Version Description >> > > > >> +++-======================-======================-============================================================ >> > > > ii valgrind 1:3.6.0~svn20100212-0u A memory >> debugger and >> > > > profiler >> > > > balay at petsc:~ $ >> > > > <<<<<<< >> > > > >> > > > So your choice is to either: >> > > > >> > > > 1. install ubuntu valgrind [sudo apt-get install valgrind] - >> and delete >> > > > personal copy >> > > > 2. reinstall valgrind from source [for this upgraded OS] >> > > > >> > > > >> > > > Satish >> > > > >> > > > >> > > > >> > > >> > > >> > > >> > > Rebecca Xuefei YUAN >> > > Department of Applied Physics and Applied Mathematics >> > > Columbia University >> > > Tel:917-399-8032 >> > > www.columbia.edu/~xy2102 >> > > >> > >> > >> > >> >> >> >> Rebecca Xuefei YUAN >> Department of Applied Physics and Applied Mathematics >> Columbia University >> Tel:917-399-8032 >> www.columbia.edu/~xy2102 >> > > > Rebecca Xuefei YUAN Department of Applied Physics and Applied Mathematics Columbia University Tel:917-399-8032 www.columbia.edu/~xy2102