TecPlot table reader segfault in a specific file
Using the following file (which seems corret format wise), the TecPlot table reader segfaults.
Steps to reproduce:
- run ParaView
- Open RK4-NUC6_wave_packet__F-C-F__beta1.5_t___0.0.dat
- Set "Skip #column name fields" to 2, other param are fine
- Apply
- Segfault
Thread 1 "paraview" received signal SIGSEGV, Segmentation fault.
0x00007fffe92a109d in vtkGenericDataArray<vtkAOSDataArrayTemplate<double>, double>::InsertValue (this=0x0, valueIdx=-1, value=nan(0x8000000000000)) at /home/glow/work/paraview/pv2/src/VTK/Common/Core/vtkGenericDataArray.txx:794
794 vtkIdType tuple = valueIdx / this->NumberOfComponents;
(gdb) bt
#0 0x00007fffe92a109d in vtkGenericDataArray<vtkAOSDataArrayTemplate<double>, double>::InsertValue (this=0x0, valueIdx=-1, value=nan(0x8000000000000)) at /home/glow/work/paraview/pv2/src/VTK/Common/Core/vtkGenericDataArray.txx:794
#1 0x00007fffe929ba23 in (anonymous namespace)::DelimitedTextIterator::InsertField (this=0x7fffffffc2f0) at /home/glow/work/paraview/pv2/src/VTK/IO/TecplotTable/vtkTecplotTableReader.cxx:308
#2 0x00007fffe929ae3b in (anonymous namespace)::DelimitedTextIterator::operator= (this=0x7fffffffc2f0, value=@0x7fffffffc1e4: 10) at /home/glow/work/paraview/pv2/src/VTK/IO/TecplotTable/vtkTecplotTableReader.cxx:159
#3 0x00007fffec81216a in vtkTextCodec::ToUnicode (this=0x55555d61b4a0, inputStream=..., output=...) at /home/glow/work/paraview/pv2/src/VTK/IO/Core/vtkTextCodec.cxx:74
#4 0x00007fffe929c484 in vtkTecplotTableReader::RequestData (this=0x555558eaed60, outputVector=0x55555ca5db60) at /home/glow/work/paraview/pv2/src/VTK/IO/TecplotTable/vtkTecplotTableReader.cxx:437
#5 0x00007ffff23a58b4 in vtkTableAlgorithm::ProcessRequest (this=0x555558eaed60, request=0x55555827ce80, inputVector=0x0, outputVector=0x55555ca5db60)
at /home/glow/work/paraview/pv2/src/VTK/Common/ExecutionModel/vtkTableAlgorithm.cxx:57
#6 0x00007ffff22a2957 in vtkExecutive::CallAlgorithm (this=0x55555943cd40, request=0x55555827ce80, direction=1, inInfo=0x0, outInfo=0x55555ca5db60) at /home/glow/work/paraview/pv2/src/VTK/Common/ExecutionModel/vtkExecutive.cxx:746
#7 0x00007ffff229a444 in vtkDemandDrivenPipeline::ExecuteData (this=0x55555943cd40, request=0x55555827ce80, inInfo=0x0, outInfo=0x55555ca5db60)
at /home/glow/work/paraview/pv2/src/VTK/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx:462
#8 0x00007ffff228e999 in vtkCompositeDataPipeline::ExecuteData (this=0x55555943cd40, request=0x55555827ce80, inInfoVec=0x0, outInfoVec=0x55555ca5db60)
at /home/glow/work/paraview/pv2/src/VTK/Common/ExecutionModel/vtkCompositeDataPipeline.cxx:162
#9 0x00007ffff2299afb in vtkDemandDrivenPipeline::ProcessRequest (this=0x55555943cd40, request=0x55555827ce80, inInfoVec=0x0, outInfoVec=0x55555ca5db60)
at /home/glow/work/paraview/pv2/src/VTK/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx:261
#10 0x00007ffff23a03f3 in vtkStreamingDemandDrivenPipeline::ProcessRequest (this=0x55555943cd40, request=0x55555827ce80, inInfoVec=0x0, outInfoVec=0x55555ca5db60)
at /home/glow/work/paraview/pv2/src/VTK/Common/ExecutionModel/vtkStreamingDemandDrivenPipeline.cxx:343
#11 0x00007ffff229132f in vtkCompositeDataPipeline::ForwardUpstream (this=0x55555d6ebd90, request=0x55555827ce80) at /home/glow/work/paraview/pv2/src/VTK/Common/ExecutionModel/vtkCompositeDataPipeline.cxx:727
#12 0x00007ffff22999f1 in vtkDemandDrivenPipeline::ProcessRequest (this=0x55555d6ebd90, request=0x55555827ce80, inInfoVec=0x55555596fb10, outInfoVec=0x55555d6e4de0)
at /home/glow/work/paraview/pv2/src/VTK/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx:247
#13 0x00007ffff23a03f3 in vtkStreamingDemandDrivenPipeline::ProcessRequest (this=0x55555d6ebd90, request=0x55555827ce80, inInfoVec=0x55555596fb10, outInfoVec=0x55555d6e4de0)
at /home/glow/work/paraview/pv2/src/VTK/Common/ExecutionModel/vtkStreamingDemandDrivenPipeline.cxx:343
#14 0x00007ffff229a273 in vtkDemandDrivenPipeline::UpdateData (this=0x55555d6ebd90, outputPort=0) at /home/glow/work/paraview/pv2/src/VTK/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx:419
#15 0x00007ffff23a078e in vtkStreamingDemandDrivenPipeline::Update (this=0x55555d6ebd90, port=0, requests=0x0) at /home/glow/work/paraview/pv2/src/VTK/Common/ExecutionModel/vtkStreamingDemandDrivenPipeline.cxx:417
#16 0x00007ffff23a0617 in vtkStreamingDemandDrivenPipeline::Update (this=0x55555d6ebd90, port=0) at /home/glow/work/paraview/pv2/src/VTK/Common/ExecutionModel/vtkStreamingDemandDrivenPipeline.cxx:380
#17 0x00007ffff593df6e in vtkSISourceProxy::UpdatePipeline (this=0x555557f08850, port=0, time=0, doTime=true) at /home/glow/work/paraview/pv2/src/Remoting/ServerManager/vtkSISourceProxy.cxx:255
#18 0x00007fffede20421 in vtkSISourceProxyCommand (arlu=0x555555964ef0, ob=0x555557f08850, method=0x555555eba089 "UpdatePipeline", msg=..., resultStream=...)
at CMakeFiles/vtkRemotingServerManagerCS/vtkSISourceProxyClientServer.cxx:142
#19 0x00007ffff4349d42 in vtkClientServerInterpreter::CallCommandFunction (this=0x555555964ef0, cname=0x7ffff5afeb52 "vtkSISourceProxy", ptr=0x555557f08850, method=0x555555eba089 "UpdatePipeline", msg=..., result=...)
at /home/glow/work/paraview/pv2/src/Remoting/ClientServerStream/vtkClientServerInterpreter.cxx:810
#20 0x00007ffff43482ed in vtkClientServerInterpreter::ProcessCommandInvoke (this=0x555555964ef0, css=..., midx=0) at /home/glow/work/paraview/pv2/src/Remoting/ClientServerStream/vtkClientServerInterpreter.cxx:424
#21 0x00007ffff43477d0 in vtkClientServerInterpreter::ProcessOneMessage (this=0x555555964ef0, css=..., message=0) at /home/glow/work/paraview/pv2/src/Remoting/ClientServerStream/vtkClientServerInterpreter.cxx:265
#22 0x00007ffff4347633 in vtkClientServerInterpreter::ProcessStream (this=0x555555964ef0, css=...) at /home/glow/work/paraview/pv2/src/Remoting/ClientServerStream/vtkClientServerInterpreter.cxx:235
#23 0x00007ffff58f0886 in vtkPVSessionCore::ExecuteStreamInternal (this=0x555555962d00, stream=..., ignore_errors=false) at /home/glow/work/paraview/pv2/src/Remoting/ServerManager/vtkPVSessionCore.cxx:620
#24 0x00007ffff58f063c in vtkPVSessionCore::ExecuteStream (this=0x555555962d00, location=1, stream=..., ignore_errors=false) at /home/glow/work/paraview/pv2/src/Remoting/ServerManager/vtkPVSessionCore.cxx:590
#25 0x00007ffff58ecb80 in vtkPVSessionBase::ExecuteStream (this=0x555555ec5910, location=1, stream=..., ignore_errors=false) at /home/glow/work/paraview/pv2/src/Remoting/ServerManager/vtkPVSessionBase.cxx:165
#26 0x00007ffff5a444ca in vtkSMProxy::ExecuteStream (this=0x55555941bd90, stream=..., ignore_errors=false, location=1) at /home/glow/work/paraview/pv2/src/Remoting/ServerManager/vtkSMProxy.cxx:2404
#27 0x00007ffff5a091dc in vtkSMOutputPort::UpdatePipelineInternal (this=0x55555952c090, time=0, doTime=true) at /home/glow/work/paraview/pv2/src/Remoting/ServerManager/vtkSMOutputPort.cxx:294
#28 0x00007ffff5a0909a in vtkSMOutputPort::UpdatePipeline (this=0x55555952c090, time=0) at /home/glow/work/paraview/pv2/src/Remoting/ServerManager/vtkSMOutputPort.cxx:284
#29 0x00007ffff5abbff7 in vtkSMSourceProxy::UpdatePipeline (this=0x55555941bd90, time=0) at /home/glow/work/paraview/pv2/src/Remoting/ServerManager/vtkSMSourceProxy.cxx:360