MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0004954 | CMake | CMake | public | 2007-04-30 16:01 | 2008-09-09 14:05 |
Reporter | Sean McBride | ||||
Assigned To | Bill Hoffman | ||||
Priority | low | Severity | feature | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0004954: Support GuardMalloc on Mac OS X (MemoryCheckCommand) | ||||
Description | GuardMalloc is similar to valgrind. It checks for memory-related bugs. If I type the following: ctest -T memcheck -V -N It says: Site: banshee.local Build name: Darwin-c++ Add coverage exclude regular expressions. Add coverage exclude: vtk.*TCLInit.cxx Add coverage exclude: vtk[^\.]+Tcl.cxx Create new tag: 20070430-1953 - Experimental Start processing tests Memory check project /Users/sean/kitware/VTK-pristine-bin Memory checker (MemoryCheckCommand) not set, or cannot find the specified program. Errors while running CTest My understanding is that this is because MallocDebug is not supported. The wiki seems to confirm this: <http://www.cmake.org/Wiki/CMake_Testing_With_CTest#Dynamic_Analysis> [^] as it does not mention anything for Mac OS X. Supporting GuardMalloc would be pretty easy I believe. Basically, you set an environment variable then launch your process. It runs about 100x times slower, but is more likely to crash if you have memory-related bugs. The important env var is: DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib See 'man libgmalloc' for more info. I would very much like to be able to test VTK with GuardMalloc enabled. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2008-09-02 14:04 | Bill Hoffman | Note Added: 0013256 | |||
2008-09-02 16:44 | Sean McBride | Note Added: 0013257 | |||
2008-09-02 17:30 | Bill Hoffman | Note Added: 0013258 | |||
2008-09-02 17:58 | Sean McBride | Note Added: 0013259 | |||
2008-09-02 21:19 | Bill Hoffman | Note Added: 0013264 | |||
2008-09-03 11:54 | Sean McBride | Note Added: 0013276 | |||
2008-09-09 14:05 | Bill Hoffman | Status | assigned => closed | ||
2008-09-09 14:05 | Bill Hoffman | Resolution | open => fixed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|