[cfe-dev] Locating the root cause of the error detected by UBSan

Zhoulai Fu@Gmail via cfe-dev cfe-dev at lists.llvm.org
Mon Apr 8 00:29:50 PDT 2019


I am running a robotic application on Ubuntu16. The application is compiled
with Clang's UndefinedBehavior sanitizer with an "-g" option. I got a brief
error message which seemed to indicate a bug somewhere:

    runtime error: -nan is outside the range of representable values of
type 'int'

My guess is that the bug is from my application, not from the more mature
QT. How could I determine which line in the source (which I can access) of
the application that triggers this runtime error?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190408/a7ffd545/attachment.html>

More information about the cfe-dev mailing list