Package: user-mode-linux Version: 3.2-2um-1+deb7u2+b1 Severity: important Tags: patch
Dear Maintainer, UML dies under expect or if you pipe its console to another program -- System Information: Debian Release: 7.3 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages user-mode-linux depends on: ii libc6 2.13-38 ii uml-utilities 20070815-1.1-ai-1.8 user-mode-linux recommends no packages. Versions of packages user-mode-linux suggests: ii gnome-terminal [x-terminal-emulator] 3.4.1.1-2 ii konsole [x-terminal-emulator] 4:4.8.4-2 pn rootstrap <none> pn slirp <none> pn user-mode-linux-doc <none> pn vde2 <none> ii xfce4-terminal [x-terminal-emulator] 0.4.8-1+b1 ii xterm [x-terminal-emulator] 278-4 -- no debconf information
>From 04007f805e455c40298b57ea2458cae2fabf0d64 Mon Sep 17 00:00:00 2001 From: Anton Ivanov <antiv...@cisco.com> Date: Sat, 8 Mar 2014 06:47:48 +0000 Subject: [PATCH 1/3] BUG: UML does not handle sigpipe. As a result when running it under expect or redirecting the IO from the console to an external program it will crash if the program stops or exits. --- arch/um/os-Linux/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/um/os-Linux/main.c b/arch/um/os-Linux/main.c index 7a86dd5..048166d 100644 --- a/arch/um/os-Linux/main.c +++ b/arch/um/os-Linux/main.c @@ -149,6 +149,7 @@ int __init main(int argc, char **argv, char **envp) #endif do_uml_initcalls(); + change_sig(SIGPIPE, 0); ret = linux_main(argc, argv); /* -- 1.7.10.4