Earlier quoted context omitted.
> 2) how to create a core dump This is a PITA under Linux, I figured this out but nor happy I had to look. I wish Linux was like OpenBSD, where you get core files by default. This give me yet another reason to switch to OpenBSD, I only wish some other issues I am having with OpenBSD could get solved.
> OpenBSD, where you get core files by default By this, are you referring to the behavior: "By default, this memory image is written to a file named programname.core in the working directory, provided the terminated process had write permission in the directory[...]" (from https://man.openbsd.org/core.5 ) ? Also, do you know if there's a way to obtain a core file from a running process on OpenBSD? I don't see a port…
kill -ABRT pid
should do it