Francesco Potortì writes: Hi Francesco, > By the way, would it make sense to put a limit on the number of lines > in a debug Tramp buffer? For a general fix with too large buffers there is the discussion with Eli. Don't know, whether we will add such a check. For the Tramp case, you might try the appended patch. It fires a warning when the Tramp debug buffer exceeds a limit (tramp-debug-buffer-limit, 3GB by default). Best regards, Michael.