Allen Li writes: Hi Allen, > I tried monkey patching tramp-wait-for-regexp to see what the exit status is. > In my Messages buffer, I found > > @@@@@@@@@@@ DEAD 139 > > A search tells me that this is SIGSEGV. > > The corresponding backtrace: Thanks for the test. Unfortunately, it doesn't show why this happens. Maybe we could get some more messages from the shell. Could you, pls, apply the following patch: