From owner-freebsd-stable@freebsd.org Thu Oct 6 08:32:01 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3B379BD3B68 for ; Thu, 6 Oct 2016 08:32:01 +0000 (UTC) (envelope-from chuzzwassa@gmail.com) Received: from mail-oi0-x230.google.com (mail-oi0-x230.google.com [IPv6:2607:f8b0:4003:c06::230]) (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 F1713D32 for ; Thu, 6 Oct 2016 08:32:00 +0000 (UTC) (envelope-from chuzzwassa@gmail.com) Received: by mail-oi0-x230.google.com with SMTP id n132so13843923oih.1 for ; Thu, 06 Oct 2016 01:32:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=Vo7zLY8yLGF1UQTGCYIyw+iocLBEn//82gcWYkhtaQc=; b=aLwCUhYdbwR7wJAS3NdXwPTOsh2vX7XLz2FY49+Vzc74NX7dUScIJfiX/iPKPd7JEX SzXRNrxJkC5kpDIcGKVdT3fSG99O2xmdyV+sv66j+vEwGnRJh9dNgr0nLcqLbOQZ+eQ5 47grT/kW0lwNd7cjATGmnsKDgA8/6aVKWp3XwS77EKNNfISre7F5adaQ+piI3dbFyMiT YuihkSFAuPaRXrF5c4K9OjxC5iRMpn8t0844QHHDKfTMSUHxW/gT3dxdrIG34H8p9CCf io4xdNDLTCiSHpjxn5BskFq2Mg5pj35UJmvsFhfNZ7kZuiQQYU95/61Z9QyUI2lyBsJs DSqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Vo7zLY8yLGF1UQTGCYIyw+iocLBEn//82gcWYkhtaQc=; b=lK53z973SKm/5sQnCLbk7+yw3xdrNIkUTF0ngyq/0FniErvF9OxfMgTHNp75j3vgEo mgQBPiZl7lXZLm/6KRsTZvq7emHQw3ZC3wZtBEbp+1FhTHtg46fuWScvQS46nGVi+ZfA KhFNyxT7XxoiRjXJF1AQkLTpv40Y1ZXQw/xNueq9TDfr6L3wXaqF25Y5tP3tyCrC4sLV NpYky0Pz2I53gvQeLioLKlm9h6/2JNWHz+sZm1o5j6ekSMUNV+VRqJNxoWqe2cwoHBFu L5g70RgzCMcN4NknZW6bersz/j4zeXT/MfpV/kzVcvF0WXhDPk8heJPU4zcqDkmoH1Ea HanA== X-Gm-Message-State: AA6/9RniNDgg/l28pb7TjAqAe3/EfI3UsUIPiJLj3U5wEKzhXMic14IdlAdKShHlPQzMJe2h7C5VftCIeByTSQ== X-Received: by 10.157.11.161 with SMTP id 30mr8367547oth.113.1475742720285; Thu, 06 Oct 2016 01:32:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.4.42 with HTTP; Thu, 6 Oct 2016 01:31:59 -0700 (PDT) From: Andy Farkas Date: Thu, 6 Oct 2016 18:31:59 +1000 Message-ID: Subject: Re: Reproducible panic - Going nowhere without my init! To: Konstantin Belousov , freebsd-stable@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2016 08:32:01 -0000 Reverted your patch then changed line 1011 of init.c to _exit(97): --- init.c-orig 2016-10-05 18:52:24.022910000 +1000 +++ init.c 2016-10-06 17:02:33.714624000 +1000 @@ -1008,7 +1008,7 @@ */ warning("single user shell terminated."); sleep(STALL_TIMEOUT); - _exit(0); + _exit(97); } else { warning("single user shell terminated, restarting"); return (state_func_t) single_user; ...and got a panic that showed "exit 97": http://imgur.com/xonPwxR I think that kern_reboot() is not being called somehow. kern_reboot() is the only place rebooting = 1; is executed. "init died (signal 0, exit 97) panic: Going nowhere without my init!" can only happen if rebooting = 0 in kern_exit.c exit1(). Another tell that kern_reboot() has not been called is "cpuid = 3" because the first thing kern_reboot() does is bind to CPU 0. Why is kern_reboot() being skipped? I have no idea. Anything more I can do to help? Do you want a core dump? -andyf