9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: charles.forsyth@gmail.com, 9fans@9fans.net
Subject: Re: [9fans] sysrfork fp bug?
Date: Mon, 21 Nov 2011 10:43:12 -0500	[thread overview]
Message-ID: <b2a3531c72eba1e1f01e352caa6a5de9@brasstown.quanstro.net> (raw)
In-Reply-To: <CAOw7k5hcpmt26NppfrFENPWS9_g6jD=XMhQzVMeS1usGQrwL0w@mail.gmail.c>

On Mon Nov 21 10:34:15 EST 2011, charles.forsyth@gmail.com wrote:
> registers are dead on entry to a function, so there's no point in saving
> particular values, because they won't be used. on an amd64, however,
> the kernel should
> reset the FP-used flag, to cause the preset values to be set in the high FP
> registers if the fork'd process does touch the FP.
>
> On 21 November 2011 07:08, erik quanstrom <quanstro@quanstro.net> wrote:
> > sysrfork() does *not* do a procsave before forking.  thus the
> > floating point registers in the new process are just going to
> > be a copy of whatever was last saved, and perhaps nothing.

so you're suggesting that the forked process always pretend that it
has never used floating point?

anyway, the real bug i'm chasing is on the intel atom i get exactly the same
symptom from stats.  about once a day, i get this sort of diagnostic:
(obviously this isn't from stats)

ladd; 8.fp
8.fp 233351: suicide: sys: fp: stack underflow fppc=0x104c status=0x80c1 pc=0x4922
1

perhaps it's some other bug, but i think i've exhausted all the straightforward
answers.

- erik



  parent reply	other threads:[~2011-11-21 15:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-21 15:08 erik quanstrom
2011-11-21 15:33 ` Charles Forsyth
     [not found] ` <CAOw7k5hcpmt26NppfrFENPWS9_g6jD=XMhQzVMeS1usGQrwL0w@mail.gmail.c>
2011-11-21 15:43   ` erik quanstrom [this message]
2011-11-21 23:01     ` erik quanstrom
2011-11-21 15:48   ` erik quanstrom
2011-11-21 22:08   ` erik quanstrom
2011-11-21 23:14     ` Charles Forsyth
2011-11-21 23:18       ` Charles Forsyth
     [not found]     ` <CAOw7k5it_OV56ZNnPygDjh+rA=xC-+-x+DJuSWBCBRC-XhXECw@mail.gmail.c>
2011-11-22  1:52       ` erik quanstrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b2a3531c72eba1e1f01e352caa6a5de9@brasstown.quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    --cc=charles.forsyth@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).