public inbox for goredo-devel@lists.cypherpunks.ru
Atom feed
* redo-ifchange hangs when called with many arguments
@ 2021-10-16 15:58 goredo
  2021-10-19 13:58 ` Sergey Matveev
  0 siblings, 1 reply; 6+ messages in thread
From: goredo @ 2021-10-16 15:58 UTC (permalink / raw)
  To: goredo-devel

Hi,

One of my projects resulted in an inadvertent stress test of how many arguments redo-ifchange can handle.

There was a situation where it was called with 500 arguments which resulted in a strange lockup. redo was started with `-j 5` and REDO_LOG=1. The redo-ifchange process was just sleeping without making progress, like it was waiting for pipe input or something similar. It was not waiting for disk, nor consuming any CPU time, nor launching processes. I killed it with SIGTERM after about 2 minutes. So, it seems it was actively waiting for some file descriptors and terminated normally when asked to.

Limiting the call to 50 arguments resolved the issue. I haven't iteratively narrowed it down, just cut it to 50 directly.

I also noticed before, that killing redo with C-c does not always terminate the process it spawned (through a .do file). So, maybe these two are related and there is some intricate issue with controlling sub-processes, like redo not properly waiting for its sub-processes.

–Michael

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-10-21 10:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-16 15:58 redo-ifchange hangs when called with many arguments goredo
2021-10-19 13:58 ` Sergey Matveev
2021-10-19 14:56   ` goredo
2021-10-19 15:26     ` Sergey Matveev
2021-10-19 16:05       ` goredo
2021-10-21  9:51         ` Sergey Matveev