Bug 92467 - Program for dumping images crashes at OSMesa library giving floating exception in Linux(OpenSuse 13.2 and Centos 6.6)
Summary: Program for dumping images crashes at OSMesa library giving floating exceptio...
Status: RESOLVED MOVED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/swrast (show other bugs)
Version: 10.3
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-15 09:11 UTC by pawan
Modified: 2019-09-18 18:45 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description pawan 2015-10-15 09:11:36 UTC
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
Comment 1 GitLab Migration User 2019-09-18 18:45:38 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/320.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.