FS#11866 - Mikmod segfaults when playing a directory which contains a mod file

Attached to Project: Rockbox
Opened by Jason Yu (captainkewl) - Tuesday, 11 January 2011, 04:50 GMT
Task Type Bugs
Category Plugins
Status Unconfirmed
Assigned To No-one
Operating System iPod 5G
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


This appears to happen only on the simulator, as of r29012.

Fill a directory with, say, some .s3m files and .mod files. Mikmod plugin chokes on calloc (virtch.c, line 1227) during MikMod_Init() sequence.

Remove the .mod files and the plugin loads and works properly.

Reverting the change made to viewers.config in r29012 seems to fix this. I'm guessing the problem is somehow related to the way mod is both playable and viewable, but there's nothing obviously wrong with viewers.config that I can see. Maybe the buffers are getting screwed up somewhere in filetypes.c?
This task depends upon

Comment by Jason Yu (captainkewl) - Tuesday, 11 January 2011, 21:02 GMT
The above was posted after using 64 bit Ubuntu. Just tested in 32 bit; works fine. Alignment issue?