Quantcast
Channel: Intel® Software - Intel® Graphics Performance Analyzers (Intel® GPA)
Viewing all articles
Browse latest Browse all 294

SIGFPE in libGLHUD.so

$
0
0

Hi Giselle, nice meeting you at siggraph on tuesday.

I tried GPA (linux) on my app, but it crashed with a floating point error.

I suspect your tool does a division by zero somewhere?

As a rule, I run my games with FP exceptions enabled, so that I can catch all cases of NaN.

It should be easy to reproduce on your end, just add this to a linux app:

#include <fenv.h>
feenableexcept( FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW );

The crash:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/home/bram/apps/Armor/armor'.
Program terminated with signal SIGFPE, Arithmetic exception.
#0  0x00007f9044575484 in ?? () from /opt/intel/gpa/SystemAnalyzer/lib/libGLHUD.so
[Current thread is 1 (Thread 0x7f90505f7800 (LWP 15024))]
>>> where
#0  0x00007f9044575484 in ?? () from /opt/intel/gpa/SystemAnalyzer/lib/libGLHUD.so
#1  0x00007f9044579ab4 in ?? () from /opt/intel/gpa/SystemAnalyzer/lib/libGLHUD.so
#2  0x00007f90445508c5 in ?? () from /opt/intel/gpa/SystemAnalyzer/lib/libGLHUD.so
#3  0x00007f9044548faf in ?? () from /opt/intel/gpa/SystemAnalyzer/lib/libGLHUD.so
#4  0x00007f904fe8f515 in ?? () from /opt/intel/gpa/SystemAnalyzer/lib/libGPA.so
#5  0x00007f904feb56aa in glXSwapBuffers () from /opt/intel/gpa/SystemAnalyzer/lib/libGPA.so
#6  0x00007f904f72ed73 in X11_GL_SwapWindow (_this=<optimized out>, window=<optimized out>) at ./src/video/x11/SDL_x11opengl.c:925
#7  0x0000000000405fad in draw_screen () at XWin/main.cpp:45
#8  0x0000000000405ad5 in iterate () at XWin/main.cpp:257
#9  0x0000000000406761 in main (argc=1, argv=0x7ffda78ab968) at XWin/main.cpp:421

 


Viewing all articles
Browse latest Browse all 294

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>