From owner-freebsd-stable@freebsd.org Wed Jul 4 06:47:44 2018 Return-Path: <owner-freebsd-stable@freebsd.org> Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 140CF10385CE for <freebsd-stable@mailman.ysv.freebsd.org>; Wed, 4 Jul 2018 06:47:44 +0000 (UTC) (envelope-from aliovx@gmail.com) Received: from mail-oi0-x22e.google.com (mail-oi0-x22e.google.com [IPv6:2607:f8b0:4003:c06::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 845B98A3DE for <freebsd-stable@freebsd.org>; Wed, 4 Jul 2018 06:47:43 +0000 (UTC) (envelope-from aliovx@gmail.com) Received: by mail-oi0-x22e.google.com with SMTP id k12-v6so8697334oiw.8 for <freebsd-stable@freebsd.org>; Tue, 03 Jul 2018 23:47:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=sIhj8rzRIXsC0DqaEMSGGODruNFXfCvL5GDci9/XJSA=; b=rWzNV9W9h/L+e+6GaZQ98UjQndb2iXZdZujKMrK7GcW3zWvU+PteaXmXFQ9JeGr+2+ d9letRHIEdeMjGG/2gKfYsQ7gDzSAzc0MfyUHx4FcC+8gwZWQOgRjQz7IzykUUeho9jG n6URd+RfcqpcJ88O362rpJ5dEpGV9o//BpAYpZ5H+UMdMmoZ0I/IHI/ZIpReJJyIwHD8 zkbEp/GW31FA6FwvdKxEwhHVM2Mg4ixeeEt4kYwEJuQjJOVHIu1YrAuKOxeWbC1HysrE RH5DfSLY6rTbpNLuimtUE2N97nKJAasBWKCLMnbT1ullosnthabcuuAgQ6vKyZgBYl8A we9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=sIhj8rzRIXsC0DqaEMSGGODruNFXfCvL5GDci9/XJSA=; b=A9UNQdOzEjnjiRqErg8pWrb5mHB9XdHIhuAdTVidcDdGwZcb//EsW34MA4b1wybWhv 7e49glERVbEzi5Whm4F945kp/a5YSA1pHVcY8F6UycPPKuezoREB95XCx7k1Yl6InMOD JV/pUS09poZSbSiKr3VUcHcDTsioFGiy2eS8kWVDXhjX4UDfEMzHWiulEz6T47sQ6OF0 8QUqELlMIwME0vFiWyEwYUETzsb6eKgiv0GO3TCfJI5m6rIJmZOATeXaBEKvaNSDDjkH crrhAFLB1LPK8oUkWqUqqPGO55shHxOBAWMrOnpgzBKzDSWB4FU37w/8THo19YOugDnf hNBQ== X-Gm-Message-State: APt69E3X53+t3wgnvCpZDrztN32qKPgrxK2gjmgT/0P5ldtMu3Jwzrvt UdwFS0dlNl/scoJKTt/x9yMpFTWGJJ7JLXTJ4pJTzTdL X-Google-Smtp-Source: AAOMgpevZbrmr++VvukEgAxYVEhXzCi0T7O0HaGNkzFg6MmBE1MpwtQbLWzA8qVO7F6sb8Sqg+0rqPgnDABOuU5MVVo= X-Received: by 2002:aca:400b:: with SMTP id n11-v6mr928353oia.44.1530686862557; Tue, 03 Jul 2018 23:47:42 -0700 (PDT) MIME-Version: 1.0 From: Ali Abdallah <aliovx@gmail.com> Date: Wed, 4 Jul 2018 08:47:32 +0200 Message-ID: <CAO3OKx9bpBLJAfcs2WBckjMNrvd7kzKRuHPgUUZZ+5RfOzyUpA@mail.gmail.com> Subject: Prevent auto reboot on system crash To: freebsd-stable@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Production branch of FreeBSD source code <freebsd-stable.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-stable>, <mailto:freebsd-stable-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-stable/> List-Post: <mailto:freebsd-stable@freebsd.org> List-Help: <mailto:freebsd-stable-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-stable>, <mailto:freebsd-stable-request@freebsd.org?subject=subscribe> X-List-Received-Date: Wed, 04 Jul 2018 06:47:44 -0000 The problem is that, on crash the kernel drops crash messages on the tty0 console and reboots immediately, making it impossible to read them. (they are not saved in /var/log/console.log for some reason). According to https://lists.freebsd.org/pipermail/freebsd-questions/2009-July/202210.html, if debugging enabled in the kernel (KDB, DDB), setting debug.debugger_on_panic: 1, should prevent the system from auto-reboot on crash. Apparently this is not working, at least for me. Also I've set kern.panic_reboot_wait_time=-1, with no apparent effect. One way to trigger system crash on 11.2 is to load the vboxdrv (installed from pkg 'virtualbox-ose-kmod-5.2.8', not compiled from source). This will crash the system reproducing the behavior described above. Any help is highly appreciated. Ali