[PD-dev] while loop segfault