[CMake] Strange 2.8.4 memcheck result on CDash

Zach Mullen zach.mullen at kitware.com
Fri Apr 29 12:00:34 EDT 2011


CTest version 2.8.4 contains a bug related to dynamic analysis results.  By
default, CTest now compresses test output if the CDash version supports it.
 However, it also erroneously compresses test output during dynamic analysis
testing, and CDash does not decode this output, and it won't be correctly
parsed for errors on the CTest side.

If you run into this problem, as a workaround you can run ctest with the
"--no-compress-output" option.  This bug will be fixed in the next release
of CMake.

Thanks,

-- 
Zach Mullen
R & D Engineer
Kitware Inc.
(919) 969-6990 x314

On Thu, Apr 28, 2011 at 4:11 PM, David Cole <david.cole at kitware.com> wrote:

> Zach,
>
> Can you explain this? (And copy cmake at cmake.org for everyone's benefit?) I
> guess we made some sort of non-backwards-compatible change here?
>
>
> Thanks,
> Dave
>
>
> ---------- Forwarded message ----------
> From: Allen D Byrne <byrn at hdfgroup.org>
> Date: Thu, Apr 28, 2011 at 4:06 PM
> Subject: Re: [CMake] Strange 2.8.4 memcheck result on CDash
> To: David Cole <david.cole at kitware.com>
> Cc: cmake at cmake.org
>
>
>  FOUND IT!
>
> Added --no-compress-output to the ctest command line. Best I can figure,
> someone more knowledgable will need to investigate, but in cmCTest.cxx at
> line 492 the following was removed in cmake 2.8.4:
>
> // call this so that the information is cached up front
>
> // and not the first time EndTest is called.
>
> this->ShouldCompressTestOutput();
>
> I can't verfiy it for sure, but I wonder if this set the
> "-no-compress-output" by default?
>
> Allen
>
> > What version of CDash is your server running?
>
> >
>
> > I'm trying to view it in my web browser to find out for myself, but
>
> > when I try ( http://nei.hdfgroup.uiuc.edu/cdash ), I get a "Problem
>
> > loading page" message from Firefox.
>
> >
>
> > I suspect we're compressing the test results, but CDash is not
>
> > de-compressing them.
>
> >
>
> >
>
> > On Wed, Feb 23, 2011 at 4:55 PM, Allen D Byrne <byrn at hdfgroup.org>
> wrote:
>
> > > Here is a snippet of first the 2.8.2 xml file followed by the 2.8.4
> file:
>
> > >
>
> > > #########################################
>
> > >
>
> > > <Test Status="failed">
>
> > >
>
> > > <Name>testhdf5</Name>
>
> > >
>
> > > <Path>./test</Path>
>
> > >
>
> > > <FullName>./test/testhdf5</FullName>
>
> > >
>
> > > <FullCommandLine>/usr/bin/valgrind -v --tool=memcheck --leak-check=full
>
> > > --track-fds=yes --num-callers=50 --show-reachable=yes
> --track-origins=yes
>
> > > --malloc-fill=0xff --free-fill=0xfe
>
> > >
> /home/hdftest/snapshots-cmake-hdf5_1_8/TestDir/jam/bin/testhdf5</FullCommandLine>
>
> > >
>
> > > <Results>
>
> > >
>
> > > </Results>
>
> > >
>
> > > <Log>
>
> > >
>
> > > ==25013== Memcheck, a memory error detector
>
> > >
>
> > > ==25013== Copyright (C) 2002-2009, and GNU GPL&apos;d, by Julian Seward
> et
>
> > > al.
>
> > >
>
> > > ==25013== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright
> info
>
> > >
>
> > > ==25013== Command:
>
> > > /home/hdftest/snapshots-cmake-hdf5_1_8/TestDir/jam/bin/testhdf5
>
> > >
>
> > > ==25013==
>
> > >
>
> > > ==25013== WARNING: new redirection conflicts with existing -- ignoring
> it
>
> > >
>
> > > --25013-- Valgrind options:
>
> > >
>
> > > --25013-- -v
>
> > >
>
> > > --25013-- --tool=memcheck
>
> > >
>
> > > --25013-- --leak-check=full
>
> > >
>
> > > --25013-- --track-fds=yes
>
> > >
>
> > > --25013-- --num-callers=50
>
> > >
>
> > > --25013-- --show-reachable=yes
>
> > >
>
> > > --25013-- --track-origins=yes
>
> > >
>
> > > --25013-- --malloc-fill=0xff
>
> > >
>
> > > --25013-- --free-fill=0xfe
>
> > >
>
> > > --25013-- Contents of /proc/version:
>
> > >
>
> > > --25013-- Linux version 2.6.18-194.3.1.el5PAE
>
> > > (mockbuild at builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat
>
> > > 4.1.2-48)) #1 SMP Thu May 13 13:48:44 EDT 2010
>
> > >
>
> > > --25013-- Arch and hwcaps: X86, x86-sse1-sse2
>
> > >
>
> > > #########################################
>
> > >
>
> > > <Test Status="failed">
>
> > >
>
> > > <Name>testhdf5</Name>
>
> > >
>
> > > <Path>./test</Path>
>
> > >
>
> > > <FullName>./test/testhdf5</FullName>
>
> > >
>
> > > <FullCommandLine>/usr/bin/valgrind &quot;-v&quot;
>
> > > &quot;--tool=memcheck&quot; &quot;--leak-check=full&quot;
>
> > > &quot;--track-fds=yes&quot; &quot;--num-callers=50&quot;
>
> > > &quot;--show-reachable=yes&quot; &quot;--track-origins=yes&quot;
>
> > > &quot;--malloc-fill=0xff&quot; &quot;--free-fill=0xfe&quot;
>
> > >
> &quot;/home/hdftest/snapshots-cmake-hdf5/TestDir/jam/bin/testhdf5&quot;</FullCommandLine>
>
> > >
>
> > > <Results>
>
> > >
>
> > > </Results>
>
> > >
>
> > > <Log>
>
> > >
>
> > >
> eJylV9tu2zgQfc9XDLAPtYHKkm3ZlrPwYoPc2kXSBnHa7VtAUSOLjSQaJOXE/fod0ndHalOs0ToyeeZwOHdNJt1xfzyeTOAWC54hf3oPDAospFoCKiUVJGiQG6lOJlvsuZwvlZhlBlrnbegFQc+jrzGJlglcf/oC13c375L3EC/hnyoXrIQpPjOVABpgeWeP6YsW5Qy+snymRJl4/c6gEziWGxF/vfz2JyhUVQnPwmTgZZCSPnx7uChTeaBVUZDoKfiZLNDPktSgNr4u2Vxn0miPF+wJPVof+A+0cyGU/50VfixK3yLtxh7diee5R8/b6gdyboQs9eneHn28xdFvz0iZT4q1RY83c2RPntuZpFWev5JVjD95aaInS9THm2VVeJzlOSo9GQTHu3TNZ08h4xmLc6yTX5FLsp8oaw8oiFxyLxV5Pgle0vR4P1WI213c2z2XpcHSaJAp+HMlub8gJclah8a6EWX1Aust6HWGnW5E22Gn3+l2MB/cnV1Cq5D8Ka5EnvztvlF1gw4ncqk7Us3a0JpxvuUISbBngzAKRkEIrXtM4AMzq3UvjNpt+KML09s7eMgquGVL6Pbp32kYnYYhXF48kGx335RnimcuBrNnTqFzCt+i4Xt4iYae1ti1X7099B2bI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obv7bFJKWoO8Lf0MvKDS4whysazOCj/5lKBj012sHNCdo0B6brKGtAQ91h0bqssPqOMgqCHeBA3WssUdHE+XnVtq+qkq+jbNXI9dH1LiiMNPVm6/5s0LhL45NUFIXMoAtY+nGMnbqWvjmYIoYaO8WP1rbrk7IyOw7CM0OWjytHycwry08piTbKa/dMgP8AyATV4g==
>
> > >
>
> > > #########################################
>
> > >
>
> > > Allen
>
> > >
>
> > >> Can you send me (offlist) copies of the DynamicAnalysis.xml files from
>
> > >
>
> > >> each case? Do you still have them?
>
> > >
>
> > >>
>
> > >
>
> > >> If not, no worried. I'll try to reproduce this on our CMake dashboard
>
> > >
>
> > >> by submitting a 2nd valgrind dashboard: same script, just drive it
>
> > >
>
> > >> with 2.8.4. It may take me a few days to get around to this, but I'll
>
> > >
>
> > >> keep you posted.
>
> > >
>
> > >>
>
> > >
>
> > >>
>
> > >
>
> > >> Thanks,
>
> > >
>
> > >> David
>
> > >
>
> > >>
>
> > >
>
> > >>
>
> > >
>
> > >> On Wed, Feb 23, 2011 at 4:31 PM, Allen D Byrne <byrn at hdfgroup.org>
> wrote:
>
> > >
>
> > >> > Further results:
>
> > >
>
> > >> >
>
> > >
>
> > >> > 2.8.2 works with MemoryCheck
>
> > >
>
> > >> >
>
> > >
>
> > >> > 2.8.4 does not display even with MemoryCheck.
>
> > >
>
> > >> >
>
> > >
>
> > >> > Here is out CTestConfig.cmake file:
>
> > >
>
> > >> >
>
> > >
>
> > >> > #############################################
>
> > >
>
> > >> >
>
> > >
>
> > >> > SET (CTEST_PROJECT_NAME "HDF5.1.8")
>
> > >
>
> > >> >
>
> > >
>
> > >> > SET (CTEST_NIGHTLY_START_TIME "20:00:00 CST")
>
> > >
>
> > >> >
>
> > >
>
> > >> > SET (CTEST_DROP_METHOD "http")
>
> > >
>
> > >> >
>
> > >
>
> > >> > SET (CTEST_DROP_SITE "nei.hdfgroup.uiuc.edu")
>
> > >
>
> > >> >
>
> > >
>
> > >> > SET (CTEST_DROP_LOCATION "/cdash/submit.php?project=HDF5.1.8")
>
> > >
>
> > >> >
>
> > >
>
> > >> > SET (CTEST_DROP_SITE_CDASH TRUE)
>
> > >
>
> > >> >
>
> > >
>
> > >> > SET (UPDATE_TYPE svn)
>
> > >
>
> > >> >
>
> > >
>
> > >> > SET (VALGRIND_COMMAND "/usr/bin/valgrind")
>
> > >
>
> > >> >
>
> > >
>
> > >> > SET (VALGRIND_COMMAND_OPTIONS "-v --tool=memcheck --leak-check=full
>
> > >
>
> > >> > --track-fds=yes --num-callers=50 --show-reachable=yes
>
> > >> > --track-origins=yes
>
> > >
>
> > >> > --malloc-fill=0xff --free-fill=0xfe")
>
> > >
>
> > >> >
>
> > >
>
> > >> > SET (MEMORYCHECK_COMMAND "/usr/bin/valgrind")
>
> > >
>
> > >> >
>
> > >
>
> > >> > SET (MEMORYCHECKCOMMAND "/usr/bin/valgrind")
>
> > >
>
> > >> >
>
> > >
>
> > >> > SET (CTEST_MEMORYCHECK_COMMAND_OPTIONS "-v --tool=memcheck
>
> > >> > --leak-check=full
>
> > >
>
> > >> > --track-fds=yes --num-callers=50 --show-reachable=yes
>
> > >> > --track-origins=yes
>
> > >
>
> > >> > --malloc-fill=0xff --free-fill=0xfe")
>
> > >
>
> > >> >
>
> > >
>
> > >> > SET (CTEST_MEMORYCHECKCOMMAND_OPTIONS "-v --tool=memcheck
>
> > >> > --leak-check=full
>
> > >
>
> > >> > --track-fds=yes --num-callers=50 --show-reachable=yes
>
> > >> > --track-origins=yes
>
> > >
>
> > >> > --malloc-fill=0xff --free-fill=0xfe")
>
> > >
>
> > >> >
>
> > >
>
> > >> > SET (CTEST_TESTING_TIMEOUT 3600)
>
> > >
>
> > >> >
>
> > >
>
> > >> > SET (DART_TESTING_TIMEOUT 3600)
>
> > >
>
> > >> >
>
> > >
>
> > >> > #############################################
>
> > >
>
> > >> >
>
> > >
>
> > >> > Allen
>
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110429/191cb8d0/attachment-0001.htm>


More information about the CMake mailing list