cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

rafal_lewczuk
Journeyman III

valgrind'ing CAL and Brook+

lots of error messages and some leaks but many of them can be false alerts

Hi,

Checking CAL/Brook+ programs with valgrind memory checker generates tons of error messages (some memory leaks are also detected). While I recognize that CAL runtime may use many non-standard (as for ordinary C programs) memory management/access mechanisms (like memory mapped I/O, DMA etc.) and these can be overlooked by memory checker, I'm curious if CAL has been checked for memory errors.

A trivial program calling calInit() and calShutdown() generates some about 20k messages and two small memory leaks. Brook+ samples typically generate twice as much. It would be nice to check if there are real errors and eventually provide a suppress file for false alerts. Valgrind is a good tool for checking C/C++ programs against many flavours of hidden bugs.

BTW, is it possible to set up some bug tracker for CAL SDK and Brook+ ? I have few (suspected) bugs in CAL compiler itself and I suppose that many other developers do. A public bug tracker would provide much more feedback to Stream Team

 

0 Likes
1 Reply

Hi Rafal,

Thanks for the heads up!

I'm going to bring this to the attention of the SDK teams. I think they use Purify, but I have to check to be sure.

And, I am taking bug reports and putting them into our internal bug tracking system. Unfortunately, we don't currently have it setup to allow external viewing/entry.

Michael.
0 Likes