gdb is start from the command line:
gdb julia
...
...
(gdb) run
...
...
julia>
The run
command can take the arguments you normally start julia with, e.g. run -t 4 --startup=no
etc.
When you interrupt the program you are returned to the (gdb)
prompt, and can type where
, to obtain a stack dump. gdb is very low level.
The list you get from --trace-compile says which precompilations have been started, but they run in parallel, so it’s not necessarily the last one which hangs. This may also be the reason things continue after interrupt, it might be the case that only one of the threads are interrupted, and then releases some resource which the others need. You can try starting julia with -t 1
to run serially (I think that works for precompilations too).
Have you tried running with julia 1.10.8?
I’m in deep water here, someone with more knowledge about the internals of julia compilation should have a look at this.