[Paraview] BUG in vtkPVDataSetAttributesInformation on Linux ?

R M mlokida at yahoo.fr
Mon Nov 29 07:40:19 EST 2010


Hi,

I use paraview 3.9.0 on a Centos 5 32 bits and also Windows XP.

Here' my problem. I have developed a plugin with temporal data and with windows 
XP it works. But under linux I have a crash of paraview during some time step 
change.
In Debug I have the following error message:

///////////////

Program received signal SIGSEGV, Segmentation fault.
0x04b2d863 in strcasecmp () from /lib/libc.so.6
(gdb) bt
#0  0x04b2d863 in strcasecmp () from /lib/libc.so.6
#1  0x0129e45a in  
vtkPVDataSetAttributesInfromationAlphabeticSorting(vtkPVDataSetAttributesInformationSortArray
  const&, vtkPVDataSetAttributesInformationSortArray const&) ()
   from /home/loki/paraview/ParaView-build/bin/libvtkPVServerCommon.so
#2  0x0129fb33 in void  
std::__introsort_loop<__gnu_cxx::__normal_iterator<vtkPVDataSetAttributesInformationSortArray*,
  std::vector<vtkPVDataSetAttributesInformationSortArray,  
std::allocator<vtkPVDataSetAttributesInformationSortArray> >  >, int, bool 
(*)(vtkPVDataSetAttributesInformationSortArray const&, 
vtkPVDataSetAttributesInformationSortArray  
const&)>(__gnu_cxx::__normal_iterator<vtkPVDataSetAttributesInformationSortArray*,
  std::vector<vtkPVDataSetAttributesInformationSortArray,  
std::allocator<vtkPVDataSetAttributesInformationSortArray> >  >,  
__gnu_cxx::__normal_iterator<vtkPVDataSetAttributesInformationSortArray*, 
std::vector<vtkPVDataSetAttributesInformationSortArray,  
std::allocator<vtkPVDataSetAttributesInformationSortArray> >  >, int, bool 
(*)(vtkPVDataSetAttributesInformationSortArray  const&, 
vtkPVDataSetAttributesInformationSortArray const&)) ()  from  
/home/mra/dev_mra/melodie/paraview_vtk/ParaView-build/bin/libvtkPVServerCommon.so

#3  0x0129ebeb in  
vtkPVDataSetAttributesInformation::CopyFromDataSetAttributes(vtkDataSetAttributes*)
  () from  
/home/mra/dev_mra/melodie/paraview_vtk/ParaView-build/bin/libvtkPVServerCommon.so

#4  0x01296dbd in  vtkPVDataInformation::CopyFromDataSet(vtkDataSet*) () from  
/home/mra/dev_mra/melodie/paraview_vtk/ParaView-build/bin/libvtkPVServerCommon.so

#5  0x01296a9c in vtkPVDataInformation::CopyFromObject(vtkObject*)  () from  
/home/mra/dev_mra/melodie/paraview_vtk/ParaView-build/bin/libvtkPVServerCommon.so

#6  0x01290a94 in  vtkPVCompositeDataInformation::CopyFromObject(vtkObject*) () 
from  
/home/mra/dev_mra/melodie/paraview_vtk/ParaView-build/bin/libvtkPVServerCommon.so

#7  0x01295ed4 in  
vtkPVDataInformation::CopyFromCompositeDataSet(vtkCompositeDataSet*) ()  from  
/home/mra/dev_mra/melodie/paraview_vtk/ParaView-build/bin/libvtkPVServerCommon.so

#8  0x01296a12 in vtkPVDataInformation::CopyFromObject(vtkObject*)  () from  
/home/mra/dev_mra/melodie/paraview_vtk/ParaView-build/bin/libvtkPVServerCommon.so

#9  0x012dc60c in vtkSelfConnection::GatherInformation(unsigned  int, 
vtkPVInformation*, vtkClientServerID) () from  
/home/mra/dev_mra/melodie/paraview_vtk/ParaView-build/bin/libvtkPVServerCommon.so

#10 0x01274447 in  vtkProcessModuleConnectionManager::GatherInformation(int, 
unsigned int,  vtkPVInformation*, vtkClientServerID) ()
///////////////

bool    vtkPVDataSetAttributesInfromationAlphabeticSorting
( const vtkPVDataSetAttributesInformationSortArray & thisArray,
  const vtkPVDataSetAttributesInformationSortArray & thatArray )
{
  
#if defined(_WIN32)
  return  (  stricmp( thisArray.arrayName, thatArray.arrayName )  <=  0  )
          ?  true  :  false;
#else
  return  (  strcasecmp( thisArray.arrayName, thatArray.arrayName )  <=  0  )
          ?  true  :  false;
#endif
}

In linux it use:  (  strcasecmp( thisArray.arrayName, thatArray.arrayName )  <=  
0  ) an d when it crashed, the size of thisArray.arrayName.arrayName is 0 (and 
thatArrayName.arrayName is OK).

So what can it be bone to avoid this crash with Linux ?



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20101129/81264bd8/attachment-0001.htm>


More information about the ParaView mailing list