[ITK] VS2013 Update 4 (RelWithDebInfo x64) crash with ITK 4.6.1

Мар'ян Климов nekto1989 at gmail.com
Fri Dec 19 09:28:56 EST 2014


Hi,

I've reproduced crash using VS2013 Update 4 (RelWithDebInfo x64) with pure
ITK 4.6.1 code inside FiniteDifferenceImageFilter.

I've reported it to
https://connect.microsoft.com/VisualStudio/feedback/details/1060166/compiler-generates-divpd-instruction-on-non-aligned-data
Can someone check if it's really compiler problem and upvote on connect?
Don't really want to add one more __declspec(align(16)) inside ITK. I'm
attaching .cpp and cmakelists.txt

Best regards,
Marian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20141219/24064acb/attachment.html>
-------------- next part --------------
cmake_minimum_required(VERSION 3.0)

set(CMAKE_CONFIGURATION_TYPES "RelWithDebInfo" CACHE STRING "" FORCE)

project(AlignCrashDivpd)

# itk
if(NOT DEFINED ITK_DIR)
  set(ITK_DIR "ITK_DIR-NOTFOUND" CACHE PATH "Path to UseITK.cmake")
  message(SEND_ERROR "Please specify ITK_DIR")
endif()

find_package(ITK REQUIRED)
include(${ITK_USE_FILE})

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /Zo")

add_executable(AlignCrashDivpd main.cpp)
target_link_libraries(AlignCrashDivpd ${ITK_LIBRARIES})

add_custom_command(TARGET AlignCrashDivpd
  POST_BUILD
    COMMAND ${CMAKE_COMMAND} -E copy ${ITK_INSTALL_PREFIX}/bin/ITKCommon-4.6.dll ${CMAKE_BINARY_DIR}/$(Configuration)/
  COMMENT "Copy itk dlls")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: text/x-c++src
Size: 1548 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20141219/24064acb/attachment.cpp>


More information about the Community mailing list