[vtkusers] segfault when vtkXMLMultiBlockDataReader reads a .vtm binary mode - bug?

Tanaka Simon tanakas at gmx.ch
Tue Nov 4 16:34:01 EST 2014


Dear Developers,

can somebody confirm the buggy behaviour?

i attached a yet simplified code to reproduce the segfault.

thanks
simon


btw: i use ubuntu 14.04 and gcc 4.7




On 03.11.2014 11:19, Tanaka Simon wrote:
> Dear Developers,
>
> Hello VTK users and developers,
>
> I attached a simple program which segfaults. please also have a look 
> at the comments in the code.
>
> i want to:
> 1) write a vtkMultiBlockDataSet to a file
> 2) load it
>
> it only segfaults if the writer is set to binary mode, and only if the 
> data exceeds a certain size. in ascii mode, everything is fine.
>
>
> this might be related:
> http://www.paraview.org/Bug/print_bug_page.php?bug_id=13294
>
>
> can you confirm that behaviour? what am i doing wrong? and if it is a 
> bug, how can i work around?
>
> thank you very much
> simon

-------------- next part --------------

cmake_minimum_required(VERSION 2.8)

PROJECT(vtk_weird_segfault)

find_package(VTK REQUIRED)
include(${VTK_USE_FILE})

add_executable(vtk_weird_segfault MACOSX_BUNDLE vtk_weird_segfault)

if(VTK_LIBRARIES)
  target_link_libraries(vtk_weird_segfault ${VTK_LIBRARIES})
else()
  target_link_libraries(vtk_weird_segfault vtkHybrid vtkWidgets)
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtk_weird_segfault.cxx
Type: text/x-c++src
Size: 2545 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20141104/46710480/attachment.cxx>


More information about the vtkusers mailing list