# Chapel 2.8 infinite loop

**URL:** <https://chapel.discourse.group/t/chapel-2-8-infinite-loop/49461>\
**Category:** Users\
**Created:** [May 8, 2026, 6:57pm UTC](https://chapel.discourse.group/t/chapel-2-8-infinite-loop/49461 "2026-05-08T18:57:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![00shiv](https://yyz2.discourse-cdn.com/free1/user_avatar/chapel.discourse.group/00shiv/32/747_2.png) [@00shiv](https://chapel.discourse.group/u/00shiv)\
**Post date:** [May 8, 2026, 6:57pm UTC](https://chapel.discourse.group/t/chapel-2-8-infinite-loop/49461/1 "2026-05-08T18:57:37Z")

</div>

Is it just me or is anybody else frequently seeing chapel 2.8 going into infinite loops?

I see different patterns at different times.

Once it was because of a pattern like this:

```chapel
const ref xt : [0..#H, 0..#W] real( 32 ) = A[1..#H, 3..#W];

```

from inside a recursive routine.

Another time it was because of a pattern like this:

```Chapel
proc foo () : (real( 32 ), int( 32 )) {
  ..;
  if .. {
    return (0, 0);
  } else {
    ..;
    return (x, y);
  }
}

proc recgoo () {
  const (a, b) = foo ();
  recgoo ();
}

```

Since the terminal would fill up with the infinite loop of error messages, it took some well timed ctrl-c's to find the offending line number.

However I doubt the above examples are MWEs.

--shiv--

---

<div class="post-metadata">

**Author:** ![jabraham](https://yyz2.discourse-cdn.com/free1/user_avatar/chapel.discourse.group/jabraham/32/430_2.png) [@jabraham](https://chapel.discourse.group/u/jabraham)\
**Post date:** [May 11, 2026, 2:01pm UTC](https://chapel.discourse.group/t/chapel-2-8-infinite-loop/49461/2 "2026-05-11T14:01:07Z")

</div>

Hi @00shiv,

Are these regressions you are seeing in chpl 2.8 from chpl 2.7? Or has it always not worked and we are just now finding the bugs?

Regardless, these are patterns that should be fixed. Even if you don't have a MWE, if you are able to share reproducers that will help us fix the issue.

Thanks!  
-Jade

---

<div class="post-metadata">

**Author:** ![00shiv](https://yyz2.discourse-cdn.com/free1/user_avatar/chapel.discourse.group/00shiv/32/747_2.png) [@00shiv](https://chapel.discourse.group/u/00shiv)\
**Post date:** [May 11, 2026, 6:56pm UTC](https://chapel.discourse.group/t/chapel-2-8-infinite-loop/49461/3 "2026-05-11T18:56:39Z")

</div>

Once I did try the code on 2.7 and it had the same issue. Next time I run into this I will directly the send the code. It is a single file compilation, but it is not runnable without large data files. Hopefully that will be enough.  
Thanks!  
--shiv--
