[PFunc] Crash from infinite loop program

Jeremiah Willcock jewillco at osl.iu.edu
Tue Aug 28 17:04:32 EDT 2012


I get a crash (infinite recursion within get_task in PFunc) from the 
following program; note that I never create any tasks:

int main(int, char**) {
   typedef pfunc::generator<pfunc::cilkS, pfunc::use_default, pfunc::use_default> pfunc_type;
   unsigned int thr[2] = {1, 1};
   pfunc_type::taskmgr m(2, thr);
   while (true) {}
   return 0;
}

I would expect it to infinite-loop, but not cause a segmentation fault. 
Is this kind of loop not supported?  Thanks for your help.

-- Jeremiah Willcock


More information about the PFunc mailing list