Software Archive
Read-only legacy content
17061 Discussions

Two compiler crashes

Wei_Pan
Beginner
632 Views
The following tests cause compiler crashes, although they should be incorrect uses of _Cilk_spwan. (The spec seemly does not exclude the first test).
icc version 12.1.4 (gcc version 4.6.0 compatibility)
(1)
// a.cpp
int foo(int i) {
  return i;
}
int a = _Cilk_spawn foo(0);
int main() {
  return a;
}
Error message:
(0): internal error: backend signals
compilation aborted for a.cpp (code 4)
(2) 
// Found by my colleague Ben Langmuir
// b.cpp
int main() {
  _Cilk_spawn 0;
  return 0;
}
Error Message:
b.cpp(2): internal error: assertion failed at: "shared/cfe/edgcpfe/expr.c", line 28299
    _Cilk_spawn 0;
                ^
compilation aborted for b.cpp (code 4)
0 Kudos
4 Replies
Barry_T_Intel
Employee
632 Views
Thanks for reporting the problems.  I've reproduced the problems and submitted them to the compiler group:

First program:
DPD200235415 - CILK: Compiler internal error reported by customer - backend signals

Second program:
DPD200235416 - CILK: Compiler internal error reported by customer - assertion failed

Are either of these holding you back?

    - Barry
0 Kudos
Wei_Pan
Beginner
632 Views
No, since they should be invalid uses. Thanks! 
0 Kudos
Barry_T_Intel
Employee
632 Views
May our developer working on the GCC implementation of Cilk Plus include them in the tests he submits to GCC?  They'd be included with the GCC source distribution and have to be under the GPL V2 license.

    - Barry
0 Kudos
Wei_Pan
Beginner
632 Views
Sure, go ahead!
0 Kudos
Reply