SIGSEGV when spawning many processes
The following program triggers a SIGSEGV:
class async Runner {
fn async run {}
}
class async Main {
fn async main {
let mut i = 0
while i < 1_000_000 {
Runner {}.run
i += 1
}
}
}
The exact location varies between runs and appears in seemingly random places. It appears the problem doesn't occur when setting INKO_PROCESS_THREADS=0
(meaning only the main thread runs), suggesting a process might be running multiple times in parallel.