process interrupted: signal: killed

Viewed 8740

I installed a utility called watcher.

https://github.com/canthefason/go-watcher

It works as expected using VS code.

But when I tried to use it in Goland (from Jetbrains) I get the following:

watcher main.go --port 8080
2020/03/04 14:10:42 build started
Building ....
2020/03/04 14:10:43 build completed
Running ...
2020/03/04 14:10:43 process interrupted: signal: killed

Needless to say go run main.go --port 8080 works.

I use a MAC Catalina.

Any suggestions?

1 Answers

Looks like an error from cmd.Wait()

if err := cmd.Wait(); err != nil {
    log.Printf("process interrupted: %s \n", err)
    ...

A similar report was the OS killing the process because it was out of memory (OOM), and dmesg might have logged the error.

Related