From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#22548: Kernel panic after system reconfiguration Date: Thu, 04 Feb 2016 23:50:29 +0100 Message-ID: <87k2mkjdje.fsf@gnu.org> References: <56B22F15.8050207@fripost.org> <56B24481.40009@fripost.org> <56B26C33.1010101@fripost.org> <87lh71qw5x.fsf@netris.org> <87powcvdme.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRSju-0000eO-V8 for bug-guix@gnu.org; Thu, 04 Feb 2016 17:51:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRSjt-0001VA-Vy for bug-guix@gnu.org; Thu, 04 Feb 2016 17:51:02 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:52133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRSjt-0001V6-S1 for bug-guix@gnu.org; Thu, 04 Feb 2016 17:51:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aRSjt-00070z-Mv for bug-guix@gnu.org; Thu, 04 Feb 2016 17:51:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87powcvdme.fsf@gmail.com> (Alex Kost's message of "Thu, 04 Feb 2016 15:55:37 +0300") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Alex Kost Cc: Albin , 22548@debbugs.gnu.org Alex Kost skribis: > And as reported by several people on #guix (I count at least 4 including > me and Mark) a wrong swap device leads to a kernel panic if shepherd is > used as the init system. > > Until I realized that it was a wrong swap, I made bisecting on shepherd > to find out which commit introduced this bug. It gave me commit > 852341e=C2=B9: when I reconfigured my system (with a wrong swap) using > shepherd on this commit, I had a kernel panic, while with shepherd on > the previous commit the system booted successfully. > > =C2=B9 http://git.savannah.gnu.org/cgit/shepherd.git/commit/?id=3D852341e= d0c08941cbdd022135f8bef7be2d7ec54 Ooooh, it took me a while but I see how this happens. This is because we start services directly from the config file, and anything that goes wrong there is uncaught, which leads to this: --8<---------------cut here---------------start------------->8--- Service udev has been started. srfi-34(# 184b150> ac= tion: start key: system-error arguments: ("swapon" "~S: ~A" ("/dev/disk/foo= bar" "No such file or directory") (2))] 1ea24c0>) [ 6.856167] Kernel panic - not syncing: Attempted to kill init! exitcode= =3D0x00000100 [ 6.856167]=20 [ 6.856869] CPU: 0 PID: 1 Comm: shepherd Not tainted 4.4.1-gnu #1 [ 6.857319] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS = rel-1.8.2-0-g33fbe13 by qemu-project.org 04/01/2014 --8<---------------cut here---------------end--------------->8--- Ludo=E2=80=99.