FS#5961 - crash while recording

Attached to Project: Rockbox
Opened by Oliver (polluxx2006) - Saturday, 09 September 2006, 08:24 GMT
Task Type Bugs
Category Recording
Status Closed
Assigned To No-one
Operating System All players
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


model: iriver H140
build: CVS-060907

hi developers. i encountered several problems with recording. it crashed while trying to record radio
or just with microphone. for example, i turn on the radio, choose source=fm radio, adjust the gain and
then it crashes. there was the following message:
I05: at 310205F8

also, i recorded somethin in wavepack, turned on time split and set it to 01:00... but the file i had
later was 01:09...
This task depends upon

Closed by  Martin Scarratt (mmmm-)
Wednesday, 13 September 2006, 18:22 GMT
Reason for closing:  Fixed
Comment by Toni (ahellmann) - Sunday, 10 September 2006, 10:27 GMT
The same here, very reproducable with rockbox-daily-20060909.
IO5: at 310205A0

This does not happen at all when I use m68k-elf-gcc-elf 3.4.3 and old configure script
compiling the rockbox-daily-20060909 source.

So I suspect the compiler or the new configure script.
Comment by Magnus Holmgren (learman) - Monday, 11 September 2006, 21:50 GMT
Hm... IO5, that must mean a division by zero error. Previously, "software" divide was used, and wouldn't trigger that exception. Now it can happen, and the function read_peak_levels seems to be the most likely cause for it (only loosely based on map file examination, so I could be wrong...).
Comment by Martin Scarratt (mmmm-) - Wednesday, 13 September 2006, 12:12 GMT
Does this patch fix it ok? I can't seem to reproduce this problem at all!
Comment by Toni (ahellmann) - Wednesday, 13 September 2006, 15:17 GMT
Yes, patch applied to rockbox-daily-20060909 fixes the problem.
Seems to be also better than my fix: