static compiled example exits with segfault

Hello @Vincent,

Welcome to the ITK community! :sun_with_face:

This can cause issues. If a binary that just works across many linux platforms is desired, check out dockbuild.

Otherwise, -static is used with the executables generated, add -DITK_DYNAMIC_LOADING:BOOL=OFF to your ITK CMake configuration flags. But, dockbuild is preferred :-).

HTH,
Matt