Hi, thank you all very much for your replies.
@Hartmut I did add the code you suggested and the result is the same as before. @Praveen, Thomas I am using Ubuntu 17.04 with gcc 6.3.0. I did try it with disabled stack protector with a new clean build and get the same result as before. make VERBOSE=1 shows me that the compiler gets called with the flag (/usr/bin/c++ -g -fno-stack-protector -Wall .....) for Container and main so it should be disabled. I did look again at the hello_world_component example and the hello.sh bash script that compiles it. The -fno-stack-protector flag is not set and it compiles and runs without a problem on my machine. So if its the gcc stack protection shouldn't it fail too? The only differences i see between the example and my code is that the example uses a struct and i am using a class. Also the example uses typedef while i am using "using" as stated in the docu <http://stellar-group.github.io/hpx/docs/html/hpx/manual/components/components_client.html> Best Regards, Tobias On 2 June 2017 at 08:06, Thomas Heller <thom.hel...@gmail.com> wrote: > 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 >
_______________________________________________ hpx-users mailing list hpx-users@stellar.cct.lsu.edu https://mail.cct.lsu.edu/mailman/listinfo/hpx-users