Hi Tobias, On Donnerstag, 1. Juni 2017 14:49:58 CEST Tobias Gauweiler wrote: > Hello, > <snip> > After compiling and running the code below i get the error message "*** > stack smashing detected ***". > > I would highly appreciate it if you could help me. > > Best regards > Tobias Gauweiler > > > hpx:version: > > Versions: > HPX: V1.1.0 (AGAS: V3.0), Git: 73d25941cf > Boost: V1.62.0 > Hwloc: V1.11.0 > MPI: OpenMPI V2.0.2, MPI V3.1 > > Build: > Type: release > Date: May 16 2017 10:42:26 > Platform: linux > Compiler: GNU C++ version 6.3.0 20170406 > Standard Library: GNU libstdc++ version 20170406 > Allocator: tcmalloc
I would like to know which OS (or Linux distribution) you are using. As Praveen pointed out correctly, this is due to the gcc stack protection. Unfortunately, it results in a false positive for HPX code. This is due to our user level context switch (which replaces the stack pointer) and gcc's stack protector feature just panics. More unfortunately (at least for HPX) is that some Linux distributions ship with -fstack-protector enabled by default. You need to add -fno-stack- protector to your CMAKE_CXX_COMPILE_FLAGS (at the first cmake invocation time, changing the compiler flags requires a completely fresh build directory). This should fix your issue. Cheers, Thomas _______________________________________________ hpx-users mailing list hpx-users@stellar.cct.lsu.edu https://mail.cct.lsu.edu/mailman/listinfo/hpx-users