CGNS Writer can segfault when writing surfaces
CGNS Writer can segfault when writing surfaces
Steps to reproduce:
- mpirun -np 2 ./bin/server
- run ParaView
- connect to server
- open channelBump_solution.cgns for ParaView testing data, load surface and volume
- File -> SaveData -> test.cgns
- Segfault
Thread 1 "pvserver" received signal SIGSEGV, Segmentation fault.
0x00007ffff5bd24da in (anonymous namespace)::Flatten (mergedMB=..., collected=std::vector of length 2, capacity 2 = {...}) at /home/glow/dev/paraview/pv1/src/VTKExtensions/IOParallelCGNS/vtkPCGNSWriter.cxx:112
112 append->SetOutputDataSetType(grid->GetDataObjectType());
(gdb) bt
#0 0x00007ffff5bd24da in (anonymous namespace)::Flatten (mergedMB=..., collected=std::vector of length 2, capacity 2 = {...}) at /home/glow/dev/paraview/pv1/src/VTKExtensions/IOParallelCGNS/vtkPCGNSWriter.cxx:112
#1 0x00007ffff5bd29bc in (anonymous namespace)::Flatten (mergedMB=..., collected=std::vector of length 2, capacity 2 = {...}) at /home/glow/dev/paraview/pv1/src/VTKExtensions/IOParallelCGNS/vtkPCGNSWriter.cxx:148
#2 0x00007ffff5bd3e6e in vtkPCGNSWriter::WriteData (this=0x555557e1adf0) at /home/glow/dev/paraview/pv1/src/VTKExtensions/IOParallelCGNS/vtkPCGNSWriter.cxx:341
#3 0x00007ffff4be67f3 in vtkCGNSWriter::RequestData (this=0x555557e1adf0, request=0x55555a2b1090, inputVector=0x55555a2aa630) at /home/glow/dev/paraview/pv1/src/VTKExtensions/IOCGNS/vtkCGNSWriter.cxx:1242
#4 0x00007ffff5bd387e in vtkPCGNSWriter::ProcessRequest (this=0x555557e1adf0, request=0x55555a2b1090, inputVector=0x55555a2aa630, outputVector=0x55555a2b7b40) at /home/glow/dev/paraview/pv1/src/VTKExtensions/IOParallelCGNS/vtkPCGNSWriter.cxx:265
#5 0x00007ffff4c8be4b in vtkExecutive::CallAlgorithm (this=0x555557e787f0, request=0x55555a2b1090, direction=1, inInfo=0x55555a2aa630, outInfo=0x55555a2b7b40) at /home/glow/dev/paraview/pv1/src/VTK/Common/ExecutionModel/vtkExecutive.cxx:735
#6 0x00007ffff4c821d8 in vtkDemandDrivenPipeline::ExecuteData (this=0x555557e787f0, request=0x55555a2b1090, inInfo=0x55555a2aa630, outInfo=0x55555a2b7b40) at /home/glow/dev/paraview/pv1/src/VTK/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx:462
#7 0x00007ffff4c75411 in vtkCompositeDataPipeline::ExecuteData (this=0x555557e787f0, request=0x55555a2b1090, inInfoVec=0x55555a2aa630, outInfoVec=0x55555a2b7b40) at /home/glow/dev/paraview/pv1/src/VTK/Common/ExecutionModel/vtkCompositeDataPipeline.cxx:163
#8 0x00007ffff4c81785 in vtkDemandDrivenPipeline::ProcessRequest (this=0x555557e787f0, request=0x55555a2b1090, inInfoVec=0x55555a2aa630, outInfoVec=0x55555a2b7b40) at /home/glow/dev/paraview/pv1/src/VTK/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx:261
#9 0x00007ffff4dd8032 in vtkStreamingDemandDrivenPipeline::ProcessRequest (this=0x555557e787f0, request=0x55555a2b1090, inInfoVec=0x55555a2aa630, outInfoVec=0x55555a2b7b40) at /home/glow/dev/paraview/pv1/src/VTK/Common/ExecutionModel/vtkStreamingDemandDrivenPipeline.cxx:344
#10 0x00007ffff4c81fbd in vtkDemandDrivenPipeline::UpdateData (this=0x555557e787f0, outputPort=-1) at /home/glow/dev/paraview/pv1/src/VTK/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx:419
#11 0x00007ffff4dd83c2 in vtkStreamingDemandDrivenPipeline::Update (this=0x555557e787f0, port=-1, requests=0x0) at /home/glow/dev/paraview/pv1/src/VTK/Common/ExecutionModel/vtkStreamingDemandDrivenPipeline.cxx:418
#12 0x00007ffff4dd824b in vtkStreamingDemandDrivenPipeline::Update (this=0x555557e787f0, port=-1) at /home/glow/dev/paraview/pv1/src/VTK/Common/ExecutionModel/vtkStreamingDemandDrivenPipeline.cxx:381
#13 0x00007ffff4c895b1 in vtkExecutive::Update (this=0x555557e787f0) at /home/glow/dev/paraview/pv1/src/VTK/Common/ExecutionModel/vtkExecutive.cxx:298
#14 0x00007ffff4c81880 in vtkDemandDrivenPipeline::Update (this=0x555557e787f0) at /home/glow/dev/paraview/pv1/src/VTK/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx:290
#15 0x00007ffff4dd8216 in vtkStreamingDemandDrivenPipeline::Update (this=0x555557e787f0) at /home/glow/dev/paraview/pv1/src/VTK/Common/ExecutionModel/vtkStreamingDemandDrivenPipeline.cxx:375
#16 0x00007ffff4dd84e9 in vtkStreamingDemandDrivenPipeline::UpdateWholeExtent (this=0x555557e787f0) at /home/glow/dev/paraview/pv1/src/VTK/Common/ExecutionModel/vtkStreamingDemandDrivenPipeline.cxx:454
#17 0x00007ffff4c6ab28 in vtkAlgorithm::UpdateWholeExtent (this=0x555557e1adf0) at /home/glow/dev/paraview/pv1/src/VTK/Common/ExecutionModel/vtkAlgorithm.cxx:1605
#18 0x00007fffe3fd5638 in vtkWriter::Write (this=0x555557e1adf0) at /home/glow/dev/paraview/pv1/src/VTK/IO/Core/vtkWriter.cxx:73