My interactive root session crashes at the second consecutive call
of the small macro hist_with_fit() that saves a canvas with a histogram and fit function to a root file. Without the fit function or without saving to the root file there is no issue. Subsequent calls work fine. Also the compiled script or an interactive session with root version 5.34.36 work fine.