public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Brian Gerst <bgerst@didntduck.org>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: linux-kernel@vger.kernel.org, Markus Schoder <markus_schoder@yahoo.de>
Subject: Re: Freeze on FPU exception with Athlon
Date: Sat, 18 Nov 2000 09:15:36 -0500	[thread overview]
Message-ID: <3A168F08.F124A76A@didntduck.org> (raw)
In-Reply-To: <20001118014019.18006.qmail@web3404.mail.yahoo.com> <8v4vep$15d$1@penguin.transmeta.com>

Linus Torvalds wrote:
> 
> In article <20001118014019.18006.qmail@web3404.mail.yahoo.com>,
> =?iso-8859-1?q?Markus=20Schoder?=  <markus_schoder@yahoo.de> wrote:
> >The following small program (linked against glibc 2.1.3) reliably
> >freezes my system (Athlon Thunderbird CPU) with at least kernels
> >2.4.0-test10 and 2.4.0-test11-pre5.  Even the SysRq keys do not work
> >after the freeze.
> >
> >Older kernels (e.g. 2.3.40) seem to work.  Any Ideas?
> 
> It certainly doesn't happen for me on any of the machines I work with,
> but it wouldn't compile as-is for me, so I exchanged the FPU setting
> with a simpler
> 
>         asm("fldcw %0": :"m" (0));
> 
> which should do the equivalent (ie unmask divide by zero errors). Does
> that make a difference for you?
> 
> Can you try to figure out where it started happening? Ie try test9 and
> back too, to figure out what might be bringing it on...
> 
> I sure as hell hope this isn't an Athlon issue.  Can other people try
> the test-program and see if we have a pattern (ie "it happens only on
> Athlons", or "Linus is on drugs and it happens for everybody else").
> 
> Thanks,
> 
>                 Linus

I get Floating Point Exception (core dumped), but I needed to use the
modified program below to keep GCC from optimizing the division away as
a constant.  This is on test11-pre5.

--------------
#define _GNU_SOURCE

#include <fenv.h>
#include <unistd.h>

double a =1.0, b = 0.0;
int
main(void)
{
  double c;
  asm("fldcw %0": :"m" (0));
 // fesetenv(FE_NOMASK_ENV);
  c = a / b;
  sleep(10);
  return a;
}
--------------
processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 6
model		: 2
model name	: AMD Athlon(tm) Processor
stepping	: 2
cpu MHz		: 748.000573
cache size	: 512 KB
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 1
wp		: yes
features	: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat
pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
bogomips	: 1494.22

-- 

						Brian Gerst
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

  parent reply	other threads:[~2000-11-18 14:47 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-18  1:40 Freeze on FPU exception with Athlon Markus Schoder
2000-11-18  3:48 ` Linus Torvalds
2000-11-18  4:10 ` Linus Torvalds
2000-11-18  7:20   ` adrian
2000-11-18 14:53     ` Michael Meding
2000-11-18  7:48   ` Udo A. Steinberg
2000-11-18 17:17     ` Alan Cox
2000-11-18 18:03       ` Linus Torvalds
2000-11-18 18:27         ` Udo A. Steinberg
2000-11-18 18:34         ` adrian
2000-11-18 18:43           ` Linus Torvalds
2000-11-18 22:33           ` TimO
2000-11-18 14:15   ` Brian Gerst [this message]
2000-11-18 16:26     ` Linus Torvalds
  -- strict thread matches above, loose matches on Subject: below --
2000-11-18 18:22 Markus Schoder
2000-11-18 18:33 ` Udo A. Steinberg
2000-11-18 18:38 ` Linus Torvalds
2000-11-20  1:05 ` Horst von Brand
2000-11-18 19:06 Markus Schoder
2000-11-19 14:53 ` Brian Gerst
2000-11-20  1:10 ` Horst von Brand
2000-11-19 17:48 Markus Schoder
2000-11-21  8:33 Aron Hsiao

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=3A168F08.F124A76A@didntduck.org \
    --to=bgerst@didntduck.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=markus_schoder@yahoo.de \
    --cc=torvalds@transmeta.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