<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - all OpenGL application with feenableexcept(FE_DIVBYZERO|FE_OVERFLOW|FE_INVALID) raise SIGFPE"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=96289">96289</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>all OpenGL application with feenableexcept(FE_DIVBYZERO|FE_OVERFLOW|FE_INVALID) raise SIGFPE
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>11.2
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Drivers/DRI/i965
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>idr@freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>joanbe@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=124210" name="attach_124210" title="gdb backtrace">attachment 124210</a> <a href="attachment.cgi?id=124210&action=edit" title="gdb backtrace">[details]</a></span>
gdb backtrace

After Ubuntu upgraded to Mesa 11.2 all OpenGL applications with floating point
exceptions enabled (FE_INVALID) raise a SIGFPE signal at the first drawing
command.
Oibaf Mesa 11.3-git ppa as of (31-may-2016) also shows this behavior.

To test it's necessary to patch glxgears.
---
--- glxgears.c  2016-05-31 12:18:57.175490491 +0200
+++ glxgears_fpe.c      2016-05-31 12:28:30.854798058 +0200
@@ -37,6 +37,9 @@
 #include <GL/glx.h>
 #include <GL/glxext.h>

+#define __USE_GNU
+#include <fenv.h>
+
 #ifndef GLX_MESA_swap_control
 #define GLX_MESA_swap_control 1
 typedef int (*PFNGLXGETSWAPINTERVALMESAPROC)(void);
@@ -731,6 +734,8 @@
    VisualID visId;
    int i;

+   feenableexcept(FE_DIVBYZERO | FE_OVERFLOW | FE_INVALID);
+
    for (i = 1; i < argc; i++) {
       if (strcmp(argv[i], "-display") == 0) {
          dpyName = argv[i+1];
---

My guess
line 301/302 has a 0 by 0 division
unsigned hs_additional = (unsigned)
round(hs_wants * (((double) remaining_space) / total_wants));

Probably it's really uncommon to enable exceptions as neither glxgears, tux
racer, xonotic or web browsers or plasma desktop have this problem.

But until now (Mesa 11.1), neither mesa-radeon or mesa-intel or
nvidia-proprietary-blob had this issue.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>