Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Andreas Johansson <ajo@wopr.campus.luth.se>
To: axp-list@redhat.com
Subject: Re: mp3 encoder for alpha
Date: Thu, 16 Apr 1998 15:40:27 +0200 (MEST)	[thread overview]
Message-ID: <Pine.LNX.3.96.980416153423.6930C-100000@wopr.campus.luth.se> (raw)
In-Reply-To: <19980413164936.16758.qmail@frodo.ho.com>

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


  parent reply	other threads:[~1998-04-16 13:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-13 16:49 mp3 encoder for alpha dragisha
1998-04-13 19:25 ` Hirsim{ki Mika
1998-04-16 13:40 ` Andreas Johansson [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-04-06  1:03 mp3 player " Keith Baker
1998-04-06  2:07 ` mp3 encoder " Alvin Starr
1998-04-06  2:38   ` Andreas Johansson
1998-04-11 11:25     ` Olaf Grundey
1998-04-16 13:46       ` Andreas Johansson
1998-04-19 20:31         ` Joakim Roubert
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox