FS#6691 - 64 bit simulator crashes when playing an mp3 file.

Attached to Project: Rockbox
Opened by Nils Wallménius (nls) - Friday, 23 February 2007, 19:49 GMT
Last edited by Nils Wallménius (nls) - Saturday, 08 September 2007, 07:44 GMT
Task Type Bugs
Category Simulator
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


When trying to play an mp3 file in the simulator on my 64 bit ubuntu machine the simulator immediately crashes with a "Segmentation fault (core dumped)".
Ogg vorbis and flac playback works fine.
This has been confirmed by a number of 64 bit linux users.
This task depends upon

Closed by  Nils Wallménius (nls)
Saturday, 08 September 2007, 07:44 GMT
Reason for closing:  Fixed
Additional comments about closing:  Big thanks to amiconn for fixing this :-)
Comment by Steve Bavin (pondlife) - Monday, 05 March 2007, 09:25 GMT
Can you run the simulator under gdb and find out which line is crashing?
Comment by Nils Wallménius (nls) - Wednesday, 07 March 2007, 20:10 GMT
gdb says it crached in the function synth_full on line 984 in synth.c in
libmad, I'm not very good with gdb so I'm not sure what other info it
could provide. amiconn said this regarding the issue:

amiconn: Rockbox' libmad has an optimisation that is known to break on 64 bit systems
amiconn: I know where it breaks and why, but fixing it will take some work
amiconn: Fixing it without reverting the optimisation, tht is

So I guess he's the man to ask about this :)
Comment by Simon (blendage) - Thursday, 12 April 2007, 21:33 GMT
For anyone wondering, disabling the optimisation flags in the libmad Makefile doesn't seem to fix this (both ways, the crash occurs on a line with values optimised out). In fact, fairly basic actions seem to trigger a segfault anyway (corrupt double-linked list in glibc is fairly common).

Is anyone able to try an x86 build? I've personally given up on the simulator.
Comment by Steve Bavin (pondlife) - Wednesday, 01 August 2007, 15:33 GMT
From IRC - Nils retested this today and it's still a problem.