All of lore.kernel.org
 help / color / mirror / Atom feed
* Floating point exception
@ 2008-09-03 19:31 john bryant
  0 siblings, 0 replies; 38+ messages in thread
From: john bryant @ 2008-09-03 19:31 UTC (permalink / raw)
  To: xen-users@lists.xensource.com, xen-devel@lists.xensource.com


[-- Attachment #1.1: Type: text/plain, Size: 376 bytes --]

I compiled xen-3.0.2 in fedora core 6 and installed the compiled
distribution package (dist) in fedora core 5 ( using "./sh install.sh). I
believe install.sh installed all required library files and binaries ( I
have checked binaries and library files).

When i start "xend" , it gives me "Floating point Exception" error. Any help
is appreciated to debug the problem.

-John

[-- Attachment #1.2: Type: text/html, Size: 435 bytes --]

[-- Attachment #2: Type: text/plain, Size: 137 bytes --]

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users

^ permalink raw reply	[flat|nested] 38+ messages in thread
* Floating point exception
@ 2004-09-11 11:39 Ankit Jain
  2004-09-11 14:58 ` Jan-Benedict Glaw
  0 siblings, 1 reply; 38+ messages in thread
From: Ankit Jain @ 2004-09-11 11:39 UTC (permalink / raw)
  To: gcc, linux prg

#include<stdlib.h>
#include<string.h>
#include<complex.h>
#include<errno.h>
#include<time.h>
#include<stdio.h>
#define NX 4 	 	 
#define NY 4
#define N 2*NX*NY		//N is the size of 2 D DFT
#include <math.h>
#define num 2
#define SWAP(a,b) tempr=(a);(a)=(b);(b)=tempr

void fft(float data[], unsigned long nn[], int ndim,
int isign)
{
int idim;
unsigned long
i1,i2,i3,i2rev,i3rev,ip1,ip2,ip3,ifp1,ifp2;
unsigned long ibit,k1,k2,n,nprev,nrem,ntot;
float tempi,tempr;
double theta,wi,wpi,wpr,wr,wtemp; //Double precision
for trigonometric recur-rences.
for (ntot=1,idim=1;idim<=ndim;idim++)    //Compute
total number of complex val-ues.
	ntot *= nn[idim];
nprev=1;

for (idim=ndim;idim>=1;idim--) 
{					// Main loop over the dimensions.
	n=nn[idim];
	nrem=ntot/(n*nprev);
	ip1=nprev << 1;
	ip2=ip1*n;
	ip3=ip2*nrem;
	i2rev=1;
	for (i2=1;i2<=ip2;i2+=ip1) 
	{ 		//This is the bit-reversal section of the
routine. 
		if (i2 < i2rev)	
                  {
			for (i1=i2;i1<=i2+ip1-2;i1+=2) 
                        {
			 for (i3=i1;i3<=ip3;i3+=ip2) 
                            {
				i3rev=i2rev+i3-i2;
				SWAP(data[i3],data[i3rev]);
				SWAP(data[i3+1],data[i3rev+1]);
	                   }
			}
		  }
		ibit=ip2 >> 1;
		while (ibit >= ip1 && i2rev > ibit) 
                {
			i2rev -= ibit;
			ibit >>= 1;
		}
		i2rev += ibit;
	}

	//Here begins the Danielson-Lanczos sec-tion of the
routine. 
	ifp1=ip1;		
	while (ifp1 < ip2) 
               {
		ifp2=ifp1 << 1;
		theta=isign*6.28318530717959/(ifp2/ip1); 
		//Initialize for the trig. recur-rence.
		wtemp=sin(0.5*theta);
		wpr = -2.0*wtemp*wtemp;
		wpi=sin(theta);
		wr=1.0;
		wi=0.0;
		for (i3=1;i3<=ifp1;i3+=ip1) {
			for (i1=i3;i1<=i3+ip1-2;i1+=2) {
				for (i2=i1;i2<=ip3;i2+=ifp2) {
					k1=i2; 		//Danielson-Lanczos formula:
					k2=k1+ifp1;
					tempr=(float)wr*data[k2]-(float)wi*data[k2+1];
					tempi=(float)wr*data[k2+1]+(float)wi*data[k2];
					data[k2]=data[k1]-tempr;
					data[k2+1]=data[k1+1]-tempi;
					data[k1] += tempr;
					data[k1+1] += tempi;
				}
			}
			wr=(wtemp=wr)*wpr-wi*wpi+wr; //Trigonometric
recurrence.
			wi=wi*wpr+wtemp*wpi+wi;
		}
		ifp1=ifp2;
	}
	nprev *= n;
	}
}
int main()
{
        float rin[NX][NY],iin[NX][NY];
	float in[2*NX*NY];
	unsigned long nn[]={NX,NY};

	int i=0,j=0,k=0;

        k = 0;
        for (i = 0; i< NX; i++)
         {
          for (j = 0; j< NY; j++)
          {
           rin[i][j] = (float) (2*i*i);
           iin[i][j] = 0;
           in[k] = rin[i][j];
           k=k+1;
           in[k] = iin[i][j];
           k= k+1;
           
          }
         }
         //for (i = 0; i< 32; i++)
printf("%d\t%f\n",i,in[i]);

	fft(in,nn,2,1);		//Executes the plan
        
	k = 0;
        for (i = 0; i< NX; i++)
         {
          for (j = 0; j< NY; j++)
          {
           rin[i][j] = in[k];
           printf("real part is%f\n",in[k]);
           k=k+1;
           iin[i][j] = in[k];
           printf("imaginary part is%f\n",in[k]);
           k=k+1;
          }
         }

        printf("finished fft\n");
	return 0;
}


________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html

^ permalink raw reply	[flat|nested] 38+ messages in thread
* Floating point exception
@ 2004-05-31  3:12 kas turi
  0 siblings, 0 replies; 38+ messages in thread
From: kas turi @ 2004-05-31  3:12 UTC (permalink / raw)
  To: linux-mtd

Hi
  I have merged the latest JFFS2 filesystem, mtd
drivers and block drivers on my 2.4.7 timesys linux
kernel. The snap shot I have used for merging is
"mtd-snapshot-20040527.tar". I am running this kernel
on my 8270 Powerpc board with AM29LV128ML flash chip.
The bus width is 32, interleave is 2 and flash size is
32M. The kernel boots up with JFFS2 as the root file
system.
  All the file operations such as list, copy and
delete are working fine. Finally when I issue a
shutdown to boot  my board I get an exception:
floating point used in kernel (task=c5158000,
pc=ff000104)
Oops: Exception in kernel mode, sig: 4
NIP: FF020000 XER: 20000000 LR: FF000104 SP: C5159DE0
REGS: c5159d30 TRAP: 0700MSR: 00083002 EE: 0 PR: 0 FP:
1 ME: 1 IR/DR: 00
TASK = c5158000[931] 'shutdown' Last syscall: 114
last math 00000000 last altivec 00000000
GPR00: 00001032 C5159DE0 C5158000 001DF1D4 FF000104
00001002 00003854 C01E3459
GPR08: 00000013 C01E0000 0000C000 80000088 24022088
1001B608 10000000 7FFFFB48
GPR16: 10010000 00000000 00000000 00000004 00009032
05159F40 00000000 C0004070
GPR24: C0003DE0 7FFFFEDD 30029C78 00000008 C01BBBEC
C5158000 00000000 FF000104
Call backtrace:
7FFFFEDD 816100A8

The same kernel with 1.5 years old snapshot of JFFS2
works fine. Any idea what could be the issue.

Thanks in advance. 


	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

^ permalink raw reply	[flat|nested] 38+ messages in thread
* Floating Point Exception
@ 2002-12-27 14:18 Nandakumar  NarayanaSwamy
  0 siblings, 0 replies; 38+ messages in thread
From: Nandakumar  NarayanaSwamy @ 2002-12-27 14:18 UTC (permalink / raw)
  To: linux-kernel

Hi All,

I am getting a floating point exception when i run my code.
I am having a IDT 32334 MIPS processor in my board and
i am using cross compiler to build the image.

When the program is executed, it comes out after sometime
with the message "Floating point exception". No other dump is
displayed. Seems to be having some illegal floating point 
operations
in my code.

Can anyone suggest me the reason why i am getting this and
how to solve this?

Thanks in advance,
Nanda




^ permalink raw reply	[flat|nested] 38+ messages in thread
[parent not found: <000601c28c56$4b9d20a0$7301a8c0@zhongqx>]
* floating point exception
@ 2002-01-14 10:56 Zwane Mwaikambo
  2002-01-14 21:26 ` Christian Thalinger
  0 siblings, 1 reply; 38+ messages in thread
From: Zwane Mwaikambo @ 2002-01-14 10:56 UTC (permalink / raw)
  To: Linux Kernel

>Right after that my window manager segfaults. Ok, switch to console,
>restart it and go. No! Can't start any programs anymore, no login. All
>tasks die one after the other, up to the complete lock of the machine.
>Even alt-sysrq doesn't work.

Can you reproduce the problem with some degree of success? (2/5 is fine)

Regards,
	Zwane Mwaikambo




^ permalink raw reply	[flat|nested] 38+ messages in thread
* floating point exception
@ 2002-01-13 12:43 Christian Thalinger
  2002-01-15 23:28 ` Brian Gerst
  0 siblings, 1 reply; 38+ messages in thread
From: Christian Thalinger @ 2002-01-13 12:43 UTC (permalink / raw)
  To: linux-kernel

Hi!

Just downloaded again, after a long time, the setiathome client. I
wanted to look how smooth my tyan dual works. So i started the client
and after a few seconds it gets and `floating point exception'. No
problem till now, cause it seems to be seti bug. Ok. 

Right after that my window manager segfaults. Ok, switch to console,
restart it and go. No! Can't start any programs anymore, no login. All
tasks die one after the other, up to the complete lock of the machine.
Even alt-sysrq doesn't work.

So, this is kernel 2.4.17 and i'll try other kernels right after this
email.

Anyone knows what's going on?



^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2008-09-03 19:31 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <22AECFD3-98E0-44F9-A19C-1667B41D0675@itfreedom.com>
2008-07-10 17:56 ` Floating Point Exception Cody Jarrett
2008-07-10 18:01   ` Samuel Thibault
2008-07-11 16:27     ` Cody Jarrett
2008-07-11 17:21       ` Samuel Thibault
2008-07-11 18:02         ` Cody Jarrett
2008-07-11 19:20           ` Samuel Thibault
2008-09-03 19:31 Floating point exception john bryant
  -- strict thread matches above, loose matches on Subject: below --
2004-09-11 11:39 Ankit Jain
2004-09-11 14:58 ` Jan-Benedict Glaw
2004-05-31  3:12 kas turi
2002-12-27 14:18 Floating Point Exception Nandakumar  NarayanaSwamy
     [not found] <000601c28c56$4b9d20a0$7301a8c0@zhongqx>
2002-11-15  4:44 ` Floating point exception rekha gvv
2002-01-14 10:56 floating " Zwane Mwaikambo
2002-01-14 21:26 ` Christian Thalinger
2002-01-15 14:34   ` Zwane Mwaikambo
2002-01-15 14:46     ` Richard B. Johnson
2002-01-15 18:19     ` Christian Thalinger
2002-01-15 18:31       ` Richard B. Johnson
2002-01-15 18:49         ` Christian Thalinger
2002-01-16  5:45       ` Zwane Mwaikambo
2002-01-16 11:55         ` Christian Thalinger
2002-01-16 14:32           ` Zwane Mwaikambo
2002-01-16 20:26             ` Christian Thalinger
2002-01-16 21:23               ` Richard B. Johnson
2002-01-16 21:59                 ` Brian Gerst
2002-01-16 22:05                   ` Richard B. Johnson
2002-01-16 22:12                     ` Mark Zealey
2002-01-16 22:23                       ` Richard B. Johnson
2002-01-16 23:35                     ` Christian Thalinger
2002-01-13 12:43 Christian Thalinger
2002-01-15 23:28 ` Brian Gerst
2002-01-16 11:45   ` Christian Thalinger
2002-01-16 11:58     ` Dave Jones
2002-01-16 13:14       ` Bruce Harada
2002-01-16 20:06         ` Christian Thalinger
2002-01-17 19:26         ` bill davidsen
2002-01-16 13:52     ` Brian Gerst
2002-01-16 14:28       ` M. Edward (Ed) Borasky

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.