> Hello!
>
> For some reason the latest versions of lame have crashed on my system when
> running on PPC processor. The same code compiled for m68k processor
> doesn't crash. I think the problem is probably memory access at invalid
> address, but because of the system design, on m68k it luckily doesn't seem
> to cause a problem but on a PPC side it really does.
>
> I did some debugging and the problem occurs in L3psycho_anal (psymodel.c).
> Earlier versions (like 3.69beta and earlier, I think) work fine but at
> least some newer one of the latest ones don't (at least 3.82beta and
> 3.83beta).
>
> The problem seems to occur here (the reason why this problem occurs is
> probably somewhere else though):
>
>
The problem is gfc->cw_lower_index. It is set to 6, and is never
changed. Yet it has been changed to -1001465578, so there is
some kind of buffer overflow (which could be anywhere :-(
trashing gfc->cw_lower.
I've had another report of fatal problems on PPC.
If you can, do you mind trying to track this down?
I would start by putting print statements in lame_encode_frame(),
and see if you can narrow down in which major block
of code cw_lower_limit is overwritten (psycho acoustics, MDCTs,
outer_loop or format_bitstream?
(cw_lower_limit is initialized on the first call to l3psycho_anal)
Mark
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )