From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 11996 invoked from network); 16 Apr 1998 13:40:39 -0000 Received: from wopr.campus.luth.se (ajo@130.240.192.27) by mail2.redhat.com with SMTP; 16 Apr 1998 13:40:39 -0000 Received: from localhost (ajo@localhost) by wopr.campus.luth.se (8.8.7/8.8.7) with SMTP id PAA10922 for ; Thu, 16 Apr 1998 15:40:27 +0200 Date: Thu, 16 Apr 1998 15:40:27 +0200 (MEST) From: Andreas Johansson Reply-To: Andreas Johansson To: axp-list@redhat.com Subject: Re: mp3 encoder for alpha In-Reply-To: <19980413164936.16758.qmail@frodo.ho.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 13 Apr 1998 dragisha@frodo.ho.com wrote: > I am getting segfaults with > > ./encode -l 3 -p 2 -m s -b 128 ~/frodo/encoder/pero.wav > > last lines of strace are as follows: > > open("tables/huffcode", O_RDONLY) = 6 > fstat(6, {st_mode=S_IFREG|0440, st_size=32993, ...}) = 0 > mmap(0, 4831808920, PROT_WRITE|PROT_EXEC|0x1b0, 0 /* MAP_??? */, 2, 0) = > 0x1555556e000 > read(6, "################################"..., 8192) = 8192 > read(6, " 001100\n 1 3 7 0010011\n"..., 8192) = 8192 > read(6, " 9 001011100\n 6 6 9 0010"..., 8192) = 8192 > read(6, "00\n11 12 14 00001011000010\n"..., 8192) = 8192 > read(6, "4 1111\n 1 4 1110\n 2 4 "..., 8192) = 225 > close(6) = 0 > munmap(0x1555556e000, 8192) = 0 > --- SIGFPE (Floating point exception) --- > +++ killed by SIGFPE +++ > > motherboard/cpu is 164LX with 600MHz CPU. I'm guessing this is in my power table setup function. But it would be best if recompile with -g and no optimization, and run it again in gdb. Also watch out for warnings while compiling, if you have some header file problem regarding any function that uses floating point you almost always get SIGFPE since the compiler then assumes function arguments are integers. If you can't find the problem I can assist you in searching for your problem (when I have some spare time). /Andreas