[Mesa-dev] [Bug 92467] Program for dumping images crashes at OSMesa library giving floating exception in Linux(OpenSuse 13.2 and Centos 6.6)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Oct 15 02:11:36 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=92467

            Bug ID: 92467
           Summary: Program for dumping images crashes at OSMesa library
                    giving floating exception in Linux(OpenSuse 13.2 and
                    Centos 6.6)
           Product: Mesa
           Version: 10.3
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: pawan24ghildiyal at gmail.com
        QA Contact: mesa-dev at lists.freedesktop.org

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 at entry=0x2ec10620,
v0=v0 at entry=816, v1=v1 at entry=817, v2=v2 at 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

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20151015/5de339d4/attachment-0001.html>


More information about the mesa-dev mailing list