[Mesa-dev] VTK Offscreen Segfaults
Kevin H. Hobbs
hobbsk at ohiou.edu
Wed Aug 4 13:52:27 PDT 2010
On 08/04/2010 04:21 PM, tom fogal wrote:
>
> Can you try valgrind? Perhaps somehow the generated dispatch
> code is jumping into lalaland and somehow magically ends up in
> vbo_exec_EvalCoord1fv (pretty far-fetched, but I'm out of ideas
> here...).
>
valgrind suggested I add --leak-check=full which certainly added some
information :
$ valgrind --trace-children=yes --leak-check=full
/home/kevin/kitware/VTK_Build/bin/RenderingCxxTests TestOSConeCxx -D
/home/kevin/kitware/VTKData -T
/home/kevin/kitware/VTK_Build/Testing/Temporary -V
Baseline/Rendering/TestOSConeCxx.png
==5240== Memcheck, a memory error detector
==5240== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==5240== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
==5240== Command: /home/kevin/kitware/VTK_Build/bin/RenderingCxxTests
TestOSConeCxx -D /home/kevin/kitware/VTKData -T
/home/kevin/kitware/VTK_Build/Testing/Temporary -V
Baseline/Rendering/TestOSConeCxx.png
==5240==
Mesa: Mesa 7.9-devel DEBUG build Aug 4 2010 15:25:34
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
compression/decompression unavailable
Mesa: Initializing x86-64 optimizations
Mesa: User error: GL_INVALID_VALUE in glPixelMapusv(mapsize)
==5240== Invalid read of size 1
==5240== at 0x4A06A68: memcpy (mc_replace_strmem.c:497)
==5240== by 0x8A7F05F: _mesa_unpack_bitmap (image.c:1215)
==5240== by 0x8A7F0E8: _mesa_unpack_polygon_stipple (image.c:1140)
==5240== by 0x8A8B7D4: _mesa_polygon_stipple (polygon.c:202)
==5240== by 0x8A8BEAA: _mesa_PolygonStipple (polygon.c:222)
==5240== by 0x5033646: vtkOpenGLRenderWindow::OpenGLInit()
(vtkOpenGLRenderWindow.cxx:242)
==5240== by 0x508D45D:
vtkXOpenGLRenderWindow::CreateOffScreenWindow(int, int)
(vtkXOpenGLRenderWindow.cxx:951)
==5240== by 0x508D8DC: vtkXOpenGLRenderWindow::Initialize()
(vtkXOpenGLRenderWindow.cxx:1066)
==5240== by 0x508DCE2: vtkXOpenGLRenderWindow::Start()
(vtkXOpenGLRenderWindow.cxx:1185)
==5240== by 0x4F55FC0: vtkRenderWindow::DoStereoRender()
(vtkRenderWindow.cxx:687)
==5240== by 0x4F55F91: vtkRenderWindow::DoFDRender()
(vtkRenderWindow.cxx:676)
==5240== by 0x4F55991: vtkRenderWindow::DoAARender()
(vtkRenderWindow.cxx:563)
==5240== Address 0xb74 is not stack'd, malloc'd or (recently) free'd
==5240==
==5240==
==5240== Process terminating with default action of signal 11 (SIGSEGV)
==5240== Access not within mapped region at address 0xB74
==5240== at 0x4A06A68: memcpy (mc_replace_strmem.c:497)
==5240== by 0x8A7F05F: _mesa_unpack_bitmap (image.c:1215)
==5240== by 0x8A7F0E8: _mesa_unpack_polygon_stipple (image.c:1140)
==5240== by 0x8A8B7D4: _mesa_polygon_stipple (polygon.c:202)
==5240== by 0x8A8BEAA: _mesa_PolygonStipple (polygon.c:222)
==5240== by 0x5033646: vtkOpenGLRenderWindow::OpenGLInit()
(vtkOpenGLRenderWindow.cxx:242)
==5240== by 0x508D45D:
vtkXOpenGLRenderWindow::CreateOffScreenWindow(int, int)
(vtkXOpenGLRenderWindow.cxx:951)
==5240== by 0x508D8DC: vtkXOpenGLRenderWindow::Initialize()
(vtkXOpenGLRenderWindow.cxx:1066)
==5240== by 0x508DCE2: vtkXOpenGLRenderWindow::Start()
(vtkXOpenGLRenderWindow.cxx:1185)
==5240== by 0x4F55FC0: vtkRenderWindow::DoStereoRender()
(vtkRenderWindow.cxx:687)
==5240== by 0x4F55F91: vtkRenderWindow::DoFDRender()
(vtkRenderWindow.cxx:676)
==5240== by 0x4F55991: vtkRenderWindow::DoAARender()
(vtkRenderWindow.cxx:563)
==5240== If you believe this happened as a result of a stack
==5240== overflow in your program's main thread (unlikely but
==5240== possible), you can try to increase the size of the
==5240== main thread stack using the --main-stacksize= flag.
==5240== The main thread stack size used in this run was 10485760.
==5240== Invalid free() / delete / delete[]
==5240== at 0x4A04D72: free (vg_replace_malloc.c:325)
==5240== by 0x3E5052CAAA: ??? (in /lib64/libc-2.12.so)
==5240== by 0x3E5052C641: ??? (in /lib64/libc-2.12.so)
==5240== by 0x480162B: _vgnU_freeres (vg_preloaded.c:62)
==5240== by 0xA6DD2CF: ???
==5240== by 0x8A7F05F: _mesa_unpack_bitmap (image.c:1215)
==5240== by 0x8A7F0E8: _mesa_unpack_polygon_stipple (image.c:1140)
==5240== by 0x8A8B7D4: _mesa_polygon_stipple (polygon.c:202)
==5240== by 0x8A8BEAA: _mesa_PolygonStipple (polygon.c:222)
==5240== by 0x5033646: vtkOpenGLRenderWindow::OpenGLInit()
(vtkOpenGLRenderWindow.cxx:242)
==5240== by 0x508D45D:
vtkXOpenGLRenderWindow::CreateOffScreenWindow(int, int)
(vtkXOpenGLRenderWindow.cxx:951)
==5240== by 0x508D8DC: vtkXOpenGLRenderWindow::Initialize()
(vtkXOpenGLRenderWindow.cxx:1066)
==5240== Address 0x854f390 is not stack'd, malloc'd or (recently) free'd
==5240==
==5240==
==5240== HEAP SUMMARY:
==5240== in use at exit: 8,928,115 bytes in 2,120 blocks
==5240== total heap usage: 2,778 allocs, 659 frees, 9,011,811 bytes
allocated
==5240==
==5240== 192 bytes in 1 blocks are definitely lost in loss record 1,209
of 1,363
==5240== at 0x4A04481: calloc (vg_replace_malloc.c:418)
==5240== by 0x8A9128E: _mesa_new_renderbuffer (renderbuffer.c:1428)
==5240== by 0x8A3C96D: OSMesaMakeCurrent (osmesa.c:1000)
==5240== by 0x508E1E6: vtkXOpenGLRenderWindow::MakeCurrent()
(vtkXOpenGLRenderWindow.cxx:1318)
==5240== by 0x508D3A1:
vtkXOpenGLRenderWindow::CreateOffScreenWindow(int, int)
(vtkXOpenGLRenderWindow.cxx:831)
==5240== by 0x508D8DC: vtkXOpenGLRenderWindow::Initialize()
(vtkXOpenGLRenderWindow.cxx:1066)
==5240== by 0x508DCE2: vtkXOpenGLRenderWindow::Start()
(vtkXOpenGLRenderWindow.cxx:1185)
==5240== by 0x4F55FC0: vtkRenderWindow::DoStereoRender()
(vtkRenderWindow.cxx:687)
==5240== by 0x4F55F91: vtkRenderWindow::DoFDRender()
(vtkRenderWindow.cxx:676)
==5240== by 0x4F55991: vtkRenderWindow::DoAARender()
(vtkRenderWindow.cxx:563)
==5240== by 0x4F54DA1: vtkRenderWindow::Render()
(vtkRenderWindow.cxx:376)
==5240== by 0x5090742: vtkXOpenGLRenderWindow::Render()
(vtkXOpenGLRenderWindow.cxx:1845)
==5240==
==5240== LEAK SUMMARY:
==5240== definitely lost: 192 bytes in 1 blocks
==5240== indirectly lost: 0 bytes in 0 blocks
==5240== possibly lost: 0 bytes in 0 blocks
==5240== still reachable: 8,927,923 bytes in 2,119 blocks
==5240== suppressed: 0 bytes in 0 blocks
==5240== Reachable blocks (those to which a pointer was found) are not
shown.
==5240== To see them, rerun with: --leak-check=full --show-reachable=yes
==5240==
==5240== For counts of detected and suppressed errors, rerun with: -v
==5240== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 6 from 6)
Segmentation fault (core dumped)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100804/1ceaec60/attachment.pgp>
More information about the mesa-dev
mailing list