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

Roman Lebedev via cfe-dev cfe-dev at lists.llvm.org
Mon Apr 8 00:38:14 PDT 2019


export UBSAN_OPTIONS="print_stacktrace=1"
might help

On Mon, Apr 8, 2019 at 10:30 AM Zhoulai Fu at Gmail via cfe-dev
<cfe-dev at lists.llvm.org> wrote:
>
> Hi,
>
> 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:
>
>     /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:517:55:
>     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?
>
> Thanks.
>
> Zhoulai
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev



More information about the cfe-dev mailing list