Software Archive
Read-only legacy content
17061 Discussions

cilk_for and executable stacks (GCC 4.8.1 20130520)

Hegde__Nikhil
Beginner
534 Views

Hi All,

I am new to the forum and have been using Intel Cilk Plus with GCC for some time now. 

I installed GCC Cilk Plus as per the instructions in https://www.cilkplus.org/build-gcc-cilkplus. 

I get a segmentation fault in a program having cilk_for when I use the linker option -Wl,-z,noexecstack. The program works fine without this linker option.

Does cilk_for require executable stacks to be enabled?

 

Thank you

-Nikhil

0 Kudos
3 Replies
Hansang_B_Intel
Employee
534 Views

I don't think there exist such restrictions.

Can you try newer GCC version (5 or later) and see if it is reproducible?

0 Kudos
Hegde__Nikhil
Beginner
534 Views

Hi Hansang,

Thank you for your suggestion. I compiled my program using GCC 5.5 compiler and was able to run the program without any segmentation fault (even after enabling -Wl,-z,noexecstack).

So, I think what I saw earlier is a problem with the compiler built using cilkplus-4_8-branch based on the GCC4.8 version.

-Nikhil

0 Kudos
TimP
Honored Contributor III
534 Views

A new response to one of my bug reports against cilkplus hinted that bug fixes may not happen due to the debate about removing support entirely from gcc 8.  Responders pointed out that my reproducer fails in different ways under gcc and g++, although it works under icc and icpc.  It was hinted to be an issue with the inherent type of a reducer not being the same as its arguments.

I suppose if Intel has marked Cilk(tm) plus as deprecated in the current release, there is little support for continued gcc cilkplus.

When I build gcc under WSL, it continues to attempt to build cilkplus, but the result is broken.

0 Kudos
Reply