MantisBT - CMake
View Issue Details
0008153CMakeCTestpublic2008-11-24 11:542009-05-27 11:14
J. Bedouet 
Bill Hoffman 
normalminoralways
closedfixed 
CMake-2-6 
 
0008153: Patch proposal for Purify (Source/CTest/cmCTestMemCheckHandler.cxx)
When CTest read Purify output, this output is all on one line (visible under CDash). So, CTest can't analyse Purify output and no problems are detected.

I solved this bug by adding a newline after each line read in output.


Now, CTest could analyse output. CTest prints some errors about EXI and EXH
*** Unknown Purify memory fault: EXI
*** Unknown Purify memory fault: EXH
EXI and EXH messages are not really faults. It indicates that an exception is thrown (EXI, Ignored Exception) or catched (EXH, Handled Exception).
I have sent an email to IBM to ask how to suppress, under Windows, these messages by specifying a suppression file.
Context:
Purify 7 under Windows.

I can't test under Linux because I can't manage to run Purify when making MemCheck tests. I don't know what I make wrong. I must explore it.
I have no problem to run purified tests with ctest -D ExperimentalTest.
No tags attached.
patch cmCTestMemCheckHandler.cxx.patch (285) 2008-11-24 11:54
https://public.kitware.com/Bug/file/1864/cmCTestMemCheckHandler.cxx.patch
? cmCTestMemCheckHandler.cxx.patch.2 (1,276) 2009-01-05 10:56
https://public.kitware.com/Bug/file/1976/cmCTestMemCheckHandler.cxx.patch.2
Issue History
2008-11-24 11:54J. BedouetNew Issue
2008-11-24 11:54J. BedouetFile Added: cmCTestMemCheckHandler.cxx.patch
2008-11-24 17:47J. BedouetNote Added: 0014168
2009-01-05 10:56J. BedouetFile Added: cmCTestMemCheckHandler.cxx.patch.2
2009-01-05 11:19J. BedouetNote Added: 0014467
2009-01-07 14:25Bill HoffmanStatusnew => assigned
2009-01-07 14:25Bill HoffmanAssigned To => Bill Hoffman
2009-05-27 11:14Bill HoffmanNote Added: 0016580
2009-05-27 11:14Bill HoffmanStatusassigned => closed
2009-05-27 11:14Bill HoffmanResolutionopen => fixed

Notes
(0014168)
J. Bedouet   
2008-11-24 17:47   
Sorry for the big big fault.
is thrown or caught (and not is thrown or catched)
(0014467)
J. Bedouet   
2009-01-05 11:19   
I modified the patch to be able to specify a suppression file under Windows.
With Purify, it is possible to specify several suppression files. So, I reused the
MEMORYCHECK_SUPPRESSIONS_FILE option to specify one suppression file. It would be better to specify several suppression files but this way mimics valgrind.
(0016580)
Bill Hoffman   
2009-05-27 11:14   
$ cvs commit -m "BUG: fix for bug 0008153 add purify suppression file and fix output to not be one big line" cmCTestMemCheckHandler.cxx
Committer: Bill Hoffman <bill.hoffman@kitware.com>
/cvsroot/CMake/CMake/Source/CTest/cmCTestMemCheckHandler.cxx,v <-- cmCTestMemCheckHandler.cxx
new revision: 1.23; previous revision: 1.22