<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 - Program for dumping images crashes at OSMesa library giving floating exception in Linux(OpenSuse 13.2 and Centos 6.6)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=92467">92467</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Program for dumping images crashes at OSMesa library giving floating exception in Linux(OpenSuse 13.2 and Centos 6.6)
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>10.3
          </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>Other
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

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

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>We have cfd code which use VTK for dumping image . We have compiled VTK with
onscreen rendering without mesa and offscreen rendering with Mesa. One with
onscreen rendering worked fine but one with offscreen rendering with mesa is
giving segmentation fault for certain case. It worked fine for many but with
one case it fail randomly. Following is message , i am getting from Mesa

It failed both using system(opensuse 13.2) installed mesa or other mesa 11.0.3
and other 10.3.2 . Similar error occur in Centos 6.6. 

============================================================
configure using this option 

./configure \
        CXXFLAGS="-O2 -g -DDEFAULT_SOFTWARE_DEPTH_BITS=31" \
        CFLAGS="-O2 -g " \
        --enable-shared  \
        --disable-static \
        --enable-texture-float \
        --enable-osmesa  \
        --disable-gallium-llvm \
        --disable-dri \
        --disable-egl \
        --disable-glx \
        --with-gallium-drivers="swrast" \
        --prefix=$MESA_DIR

=============================================

(rogram received signal SIGFPE, Arithmetic exception.
general_triangle (ctx=0x2ec10620, v0=<optimized out>, v1=<optimized out>,
v2=0x319f17a0) at swrast/s_tritemp.h:439
439                       span.attrStepY[attr][c] = oneOverArea * (eMaj.dx *
eBot_da - eMaj_da * eBot.dx);
Missing separate debuginfos, use: zypper install
libICE6-debuginfo-1.0.9-2.1.3.x86_64 libSM6-debuginfo-1.2.2-4.1.2.x86_64
libX11-6-debuginfo-1.6.2-5.1.2.x86_64 libXau6-debuginfo-1.0.8-5.1.2.x86_64
libXext6-debuginfo-1.3.3-2.1.2.x86_64
libpciaccess0-debuginfo-0.13.2-4.1.2.x86_64
libuuid1-debuginfo-2.25.1-13.1.x86_64 libxcb1-debuginfo-1.11-2.1.2.x86_64
libz1-debuginfo-1.2.8-5.1.2.x86_64
(gdb) bt
#0  general_triangle (ctx=0x2ec10620, v0=<optimized out>, v1=<optimized out>,
v2=0x319f17a0) at swrast/s_tritemp.h:439
#1  0x00007fffd27ebb4c in triangle_twoside_rgba (ctx=<optimized out>,
e0=<optimized out>, e1=<optimized out>, e2=<optimized out>) at
swrast_setup/ss_tritmp.h:176
#2  0x00007fffd27a522d in _tnl_render_poly_elts (ctx=0x2ec10620, start=0,
count=3, flags=48) at tnl/t_vb_rendertmp.h:352
#3  0x00007fffd27abbf9 in _tnl_RenderClippedPolygon (ctx=<optimized out>,
elts=<optimized out>, n=<optimized out>) at tnl/t_vb_render.c:246
#4  0x00007fffd27a91ce in clip_tri_4 (ctx=ctx@entry=0x2ec10620,
v0=v0@entry=816, v1=v1@entry=817, v2=v2@entry=818, mask=<optimized out>) at
tnl/t_vb_cliptmp.h:259
#5  0x00007fffd27aa1e8 in clip_render_triangles_verts (ctx=0x2ec10620,
start=<optimized out>, count=1024, flags=<optimized out>) at
tnl/t_vb_rendertmp.h:182
#6  0x00007fffd27a5811 in run_render (ctx=0x2ec10620, stage=<optimized out>) at
tnl/t_vb_render.c:322
#7  0x00007fffd279a8cd in _tnl_run_pipeline (ctx=0x2ec10620) at
tnl/t_pipeline.c:241
#8  0x00007fffd2799f33 in _tnl_draw_prims (ctx=0x2ec10620, prim=0x2de201e0,
nr_prims=1, ib=0x0, index_bounds_valid=<optimized out>, min_index=0,
max_index=1023, tfb_vertcount=0x0, stream=0, indirect=0x0) at tnl/t_draw.c:520
#9  0x00007fffd279772f in vbo_save_playback_vertex_list (ctx=0x2ec10620,
data=0x2fcab688) at vbo/vbo_save_draw.c:310
#10 0x00007fffd2660072 in ext_opcode_execute (node=0x2fcab684, ctx=0x2ec10620)
at main/dlist.c:666
#11 execute_list (ctx=0x2ec10620, list=<optimized out>) at main/dlist.c:7756
#12 0x00007fffd267540a in _mesa_CallList (list=1) at main/dlist.c:9121
#13 0x00007fffda54bf81 in
vtkOpenGLDisplayListPainter::RenderInternal(vtkRenderer*, vtkActor*, unsigned
long, bool) () from
/home/ren2/pawan/OpenFOAM/ThirdParty-dev/VTK/offscreen/VTK-6.2.0/lib/libvtkRenderingOpenGL-6.2.so.1
#14 0x00007fffda54a9ab in
vtkOpenGLClipPlanesPainter::RenderInternal(vtkRenderer*, vtkActor*, unsigned
long, bool) () from
/home/ren2/pawan/OpenFOAM/ThirdParty-dev/VTK/offscreen/VTK-6.2.0/lib/libvtkRenderingOpenGL-6.2.so.1
#15 0x00007fffda574183 in
vtkOpenGLScalarsToColorsPainter::RenderInternal(vtkRenderer*, vtkActor*,
unsigned long, bool) () from
/home/ren2/pawan/OpenFOAM/ThirdParty-dev/VTK/offscreen/VTK-6.2.0/lib/libvtkRenderingOpenGL-6.2.so.1
#16 0x00007fffda57fbca in vtkPainterPolyDataMapper::RenderPiece(vtkRenderer*,
vtkActor*) () from
/home/ren2/pawan/OpenFOAM/ThirdParty-dev/VTK/offscreen/VTK-6.2.0/lib/libvtkRenderingOpenGL-6.2.so.1
#17 0x00007fffe19c41ff in vtkPolyDataMapper::Render(vtkRenderer*, vtkActor*) ()
from
/home/ren2/pawan/OpenFOAM/ThirdParty-dev/VTK/offscreen/VTK-6.2.0/lib/libvtkRenderingCore-6.2.so.1
#18 0x00007fffda548ef4 in vtkOpenGLActor::Render(vtkRenderer*, vtkMapper*) ()
from
/home/ren2/pawan/OpenFOAM/ThirdParty-dev/VTK/offscreen/VTK-6.2.0/lib/libvtkRenderingOpenGL-6.2.so.1
#19 0x00007fffe194b348 in vtkActor::RenderOpaqueGeometry(vtkViewport*) () from
/home/ren2/pawan/OpenFOAM/ThirdParty-dev/VTK/offscreen/VTK-6.2.0/lib/libvtkRenderingCore-6.2.so.1
#20 0x00007fffe19cebc7 in vtkRenderer::UpdateGeometry() () from
/home/ren2/pawan/OpenFOAM/ThirdParty-dev/VTK/offscreen/VTK-6.2.0/lib/libvtkRenderingCore-6.2.so.1
#21 0x00007fffda570052 in vtkOpenGLRenderer::DeviceRender() () from
/home/ren2/pawan/OpenFOAM/ThirdParty-dev/VTK/offscreen/VTK-6.2.0/lib/libvtkRenderingOpenGL-6.2.so.1
#22 0x00007fffe19d0c76 in vtkRenderer::Render() () from
/home/ren2/pawan/OpenFOAM/ThirdParty-dev/VTK/offscreen/VTK-6.2.0/lib/libvtkRenderingCore-6.2.so.1
#23 0x00007fffe19ce10a in vtkRendererCollection::Render() () from
/home/ren2/pawan/OpenFOAM/ThirdParty-dev/VTK/offscreen/VTK-6.2.0/lib/libvtkRenderingCore-6.2.so.1
#24 0x00007fffe19d4e25 in vtkRenderWindow::DoStereoRender() () from
/home/ren2/pawan/OpenFOAM/ThirdParty-dev/VTK/offscreen/VTK-6.2.0/lib/libvtkRenderingCore-6.2.so.1
#25 0x00007fffe19d69e7 in vtkRenderWindow::DoFDRender() () from
/home/ren2/pawan/OpenFOAM/ThirdParty-dev/VTK/offscreen/VTK-6.2.0/lib/libvtkRenderingCore-6.2.so.1
#26 0x00007fffe19d5cda in vtkRenderWindow::DoAARender() () from
/home/ren2/pawan/OpenFOAM/ThirdParty-dev/VTK/offscreen/VTK-6.2.0/lib/libvtkRenderingCore-6.2.so.1
#27 0x00007fffe19d51b7 in vtkRenderWindow::Render() () from
/home/ren2/pawan/OpenFOAM/ThirdParty-dev/VTK/offscreen/VTK-6.2.0/lib/libvtkRenderingCore-6.2.so.1
#28 0x00007fffe4c0e0b8 in Foam::scene::saveImage(vtkRenderWindow*) const ()
from
/home/ren2/pawan/OpenFOAM/OpenFOAM-dev/platforms/linux64Gcc48DPInt32Opt/lib/librunTimePostProcessing.so
#29 0x00007fffe4c0e6df in Foam::scene::loop(vtkRenderer*) () from
/home/ren2/pawan/OpenFOAM/OpenFOAM-dev/platforms/linux64Gcc48DPInt32Opt/lib/librunTimePostProcessing.so
#30 0x00007fffe4c04f8f in Foam::runTimePostProcessing::write() () from
/home/ren2/pawan/OpenFOAM/OpenFOAM-dev/platforms/linux64Gcc48DPInt32Opt/lib/librunTimePostProcessing.so
#31 0x00007fffe4c0d430 in
Foam::OutputFilterFunctionObject<Foam::runTimePostProcessing>::execute(bool) ()
from
/home/ren2/pawan/OpenFOAM/OpenFOAM-dev/platforms/linux64Gcc48DPInt32Opt/lib/librunTimePostProcessing.so
#32 0x00007ffff2f874e9 in Foam::functionObjectList::execute(bool) () from
/home/ren2/pawan/OpenFOAM/OpenFOAM-dev/platforms/linux64Gcc48DPInt32Opt/lib/libOpenFOAM.so
#33 0x0000000000440216 in calc (args=..., runTime=..., mesh=..., fol=...) at
execFlowFunctionObjects.C:246
#34 0x0000000000441e9b in main (argc=1, argv=0x7fffffffc568) at
execFlowFunctionObjects.C:447</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>