PLY file segfault
A specific PLY file segfaults:
How to reproduce (with ParaView)
- run ParaView
- Open cube_quads.ply, Apply
- segfault
ply_get_element: unexpected end of file
/home/glow/dev/vtk/vtk1/src/IO/PLY/vtkPLY.cxx:1566: static bool vtkPLY::ascii_get_element(PlyFile*, char*): Assertion `0' failed.
Program received signal SIGABRT, Aborted.
0x00007ffff785e64c in ?? () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff785e64c in ?? () from /usr/lib/libc.so.6
#1 0x00007ffff780e938 in raise () from /usr/lib/libc.so.6
#2 0x00007ffff77f853d in abort () from /usr/lib/libc.so.6
#3 0x00007ffff77f845c in ?? () from /usr/lib/libc.so.6
#4 0x00007ffff7807486 in __assert_fail () from /usr/lib/libc.so.6
#5 0x00007ffff64ed76b in vtkPLY::ascii_get_element (plyfile=0x5555560bd790, elem_ptr=0x7fffffffd010 "\020w\vVU\004")
at /home/glow/dev/vtk/vtk1/src/IO/PLY/vtkPLY.cxx:1566
#6 0x00007ffff64ec717 in vtkPLY::ply_get_element (plyfile=0x5555560bd790, elem_ptr=0x7fffffffd010) at /home/glow/dev/vtk/vtk1/src/IO/PLY/vtkPLY.cxx:1021
#7 0x00007ffff64f3f2c in vtkPLYReader::RequestData (this=0x555555fd0260, outputVector=0x555555fd1950)
at /home/glow/dev/vtk/vtk1/src/IO/PLY/vtkPLYReader.cxx:488
#8 0x00007ffff2339f08 in vtkPolyDataAlgorithm::ProcessRequest (this=0x555555fd0260, request=0x555555fd22e0, inputVector=0x0, outputVector=0x555555fd1950)
at /home/glow/dev/vtk/vtk1/src/Common/ExecutionModel/vtkPolyDataAlgorithm.cxx:88
#9 0x00007ffff230ecbb in vtkExecutive::CallAlgorithm (this=0x555555fd1820, request=0x555555fd22e0, direction=1, inInfo=0x0, outInfo=0x555555fd1950)
at /home/glow/dev/vtk/vtk1/src/Common/ExecutionModel/vtkExecutive.cxx:735
#10 0x00007ffff2305048 in vtkDemandDrivenPipeline::ExecuteData (this=0x555555fd1820, request=0x555555fd22e0, inInfo=0x0, outInfo=0x555555fd1950)
at /home/glow/dev/vtk/vtk1/src/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx:462