|
From: Mathias F. <M.F...@sc...> - 2009-09-10 06:56:22
|
Hi all, I have done a small valgrind tool that tests each result of a floating point operation agains inf and nan values. I have written that tool to find problems in some simulation codes at a customer here. Also I used that last weekend to find similar problems in Flightgear (an open source flight simulation). So one might ask if the work of this tool could be done by the usual floating point traps. The problem with the hardware traps is that they are asyncronous. That means you get them a little later than when the problem happens - I believe at the next fpu instruction past the error. Which means that you sometimes get a usable hint where the problem is but sometomes you get signaled somewhere completely different. That tool prooved to be much more useful since it really points you to the *exact* source code line where the problem happens. I would like to know if there is any chance to get such a tool into the public valgrind tree. And if so, what to do to get that stuff reviewed, contributed ... GReetings Mathias -- Dr. Mathias Fröhlich, science + computing ag, Software Solutions Hagellocher Weg 71-75, D-72070 Tuebingen, Germany Phone: +49 7071 9457-268, Fax: +49 7071 9457-511 -- Vorstand/Board of Management: Dr. Bernd Finkbeiner, Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Michel Lepert Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196 |