From owner-freebsd-current@FreeBSD.ORG Tue Mar 4 18:59:01 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 77E02D7F; Tue, 4 Mar 2014 18:59:01 +0000 (UTC) Received: from mail-qa0-x232.google.com (mail-qa0-x232.google.com [IPv6:2607:f8b0:400d:c00::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C84A1A86; Tue, 4 Mar 2014 18:59:00 +0000 (UTC) Received: by mail-qa0-f50.google.com with SMTP id o15so3864025qap.9 for ; Tue, 04 Mar 2014 10:59:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=fvafMCmTASLJmGvIwASPZVIWo0xU8xLfuXaF1w9Wm4E=; b=Obby2fxAxhWO2gq/Rscmhfygp6Hws8pqI4HbLII09ztm80fDpLI2s9FgeLe5DluCuQ FEi23BOhDXFoRAa4odYNf6u37NJdtCvR7xxSaS02ygMdLhW9thl6Cg6sNdIhmSSNAX0r 7oth6GPydF3GlGOhSzREjQYIOPZ3OJFY2otZ+al2gN0DZKyYaKBeulfj5DwdK1MfG/9H NO9U4APwFFtOhJdkNFDFehwgwN2AVZk5jNpeH9s229dAzqtkRCvmcPiEaQ3S5HoWlBK6 zHmWlAa3uE/B6AGqrVrfKZcnnRWzoxxNxIyOfm+VA1bAdNYYRdCT5Dij0MDvzb5An7lA hZHA== MIME-Version: 1.0 X-Received: by 10.224.60.134 with SMTP id p6mr1606184qah.98.1393959539982; Tue, 04 Mar 2014 10:58:59 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.16.10 with HTTP; Tue, 4 Mar 2014 10:58:59 -0800 (PST) In-Reply-To: <201403041124.04122.jhb@freebsd.org> References: <201403031411.00805.jhb@freebsd.org> <201403041124.04122.jhb@freebsd.org> Date: Tue, 4 Mar 2014 10:58:59 -0800 X-Google-Sender-Auth: Uxf_GbSF5bXtUWjUFXCJNYvTKC0 Message-ID: Subject: Re: signal 8 (floating point exception) upon resume From: Adrian Chadd To: John Baldwin Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current , Konstantin Belousov , Bruce Evans , Jung-uk Kim , "freebsd-mobile@freebsd.org" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2014 18:59:01 -0000 I'm not using anything in /etc/src.conf . -a On 4 March 2014 08:24, John Baldwin wrote: > On Monday, March 03, 2014 6:49:08 pm Adrian Chadd wrote: >> I'll try this soon. >> >> I had it fail back to newcons, rather than Xorg normally dying without >> restoring state. It wouldn't let me spawn a shell. Logging in worked >> fine, but normal shell exec would eventually and quickly lead to >> failure, dropping me back to the login prompt. > > If you have set CPUTYPE in /etc/src.conf such that your userland binaries > are built with SSE, etc. then I expect most things to break because the FPU > is in a funky state without this patch. I suspect if you don't set CPUTYPE > so that your userland binaries do not use the FPU, you can probably resume > just fine without this fix. > >> -a >> >> >> On 3 March 2014 11:11, John Baldwin wrote: >> > On Friday, February 28, 2014 9:00:57 pm Adrian Chadd wrote: >> >> On 28 February 2014 15:35, Adrian Chadd wrote: >> >> > ... how'd this ever work in the past then? >> >> > >> >> >> >> .. and I've submitted it as a PR: >> >> >> >> kern/187152 >> > >> > Complete stab in the dark (not compile tested) here: >> > >> > http://www.FreeBSD.org/~jhb/patches/i386_fpu_suspend.patch >> > >> > -- >> > John Baldwin >> > > -- > John Baldwin