int main (void) { #pragma omp parallel { #pragma omp for schedule (guided, 10) for (int i = 0; i < 1826; i += 10) ; #pragma omp for schedule (guided, 10) for (int i = 0; i > -1826; i -= 10) ; } return 0; } hangs - after going through all iterations keeps calling GOMP_*_next forever, each time returning true and assigning an empty range.
-- Summary: schedule(guided) loops forever if ((end - start) % incr) != 0 Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: openmp Severity: normal Priority: P3 Component: libgomp AssignedTo: jakub at gcc dot gnu dot org ReportedBy: jakub at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35625