After playing MIDI file, error "File corrupt (Expected track header)" and segfault

Bug #332877 reported by Leif Arne Storset
2
Affects Status Importance Assigned to Milestone
wildmidi (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: rhythmbox

After the attached MIDI file has played for a few seconds, I get the error

libWildMidi(WM_ParseNewMidi:3521): ERROR File corrupt (Expected track header)
libWildMidi(WM_ParseNewMidi:3521): ERROR File corrupt (Expected track header)

Then, when I try to play another song it goes (core will be attached shortly)

*** glibc detected *** rhythmbox: double free or corruption (!prev): 0x0af17030 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb6d70454]
/lib/tls/i686/cmov/libc.so.6(cfree+0x96)[0xb6d724b6]
/usr/lib/libWildMidi.so.0(WM_ParseNewMidi+0x86f)[0xb3309a6f]
/usr/lib/libWildMidi.so.0(WildMidi_OpenBuffer+0x34)[0xb3309e34]
/usr/lib/gstreamer-0.10/libgstwildmidi.so[0xb333267f]
/usr/lib/libgstreamer-0.10.so.0[0xb717c7d3]
/usr/lib/libglib-2.0.so.0[0xb6f2d6c6]
/usr/lib/libglib-2.0.so.0[0xb6f2c02f]
/lib/tls/i686/cmov/libpthread.so.0[0xb7db950f]
/lib/tls/i686/cmov/libc.so.6(clone+0x5e)[0xb6de2a0e]
======= Memory map: ========
08048000-080db000 r-xp 00000000 08:05 20572 /usr/bin/rhythmbox
080dc000-080de000 r--p 00093000 08:05 20572 /usr/bin/rhythmbox
080de000-080e2000 rw-p 00095000 08:05 20572 /usr/bin/rhythmbox
09eb9000-0b006000 rw-p 09eb9000 00:00 0 [heap]
b09fe000-b09ff000 ---p b09fe000 00:00 0
b09ff000-b11ff000 rw-p b09ff000 00:00 0
b11ff000-b1200000 ---p b11ff000 00:00 0
b1200000-b1a00000 rw-p b1200000 00:00 0
b1a00000-b1a49000 rw-p b1a00000 00:00 0
b1a49000-b1b00000 ---p b1a49000 00:00 0
b1bfd000-b1bfe000 ---p b1bfd000 00:00 0
b1bfe000-b23fe000 rw-p b1bfe000 00:00 0
b23fe000-b23ff000 ---p b23fe000 00:00 0
b23ff000-b2bff000 rw-p b23ff000 00:00 0
b2e00000-b2ede000 rw-p b2e00000 00:00 0
b2ede000-b2f00000 ---p b2ede000 00:00 0
b2f00000-b2ffd000 rw-p b2f00000 00:00 0
b2ffd000-b3000000 ---p b2ffd000 00:00 0
b3000000-b30fa000 rw-p b3000000 00:00 0
b30fa000-b3100000 ---p b30fa000 00:00 0
b31a0000-b31b6000 r-xp 00000000 08:05 16776 /usr/lib/gstreamer-0.10/libgstalsa.so
b31b6000-b31b7000 r--p 00015000 08:05 16776 /usr/lib/gstreamer-0.10/libgstalsa.so
b31b7000-b31b8000 rw-p 00016000 08:05 16776 /usr/lib/gstreamer-0.10/libgstalsa.so
b31d1000-b321f000 r-xp 00000000 08:05 19218 /usr/lib/libpulse.so.0.4.1
b321f000-b3220000 r--p 0004d000 08:05 19218 /usr/lib/libpulse.so.0.4.1
b3220000-b3221000 rw-p 0004e000 08:05 19218 /usr/lib/libpulse.so.0.4.1
b32e6000-b32ff000 r--s 00000000 08:05 115260 /usr/share/mime/mime.cache
b32ff000-b330d000 r-xp 00000000 08:05 19179 /usr/lib/libWildMidi.so.0.0.0
b330d000-b330f000 rw-p 0000d000 08:05 19179 /usr/lib/libWildMidi.so.0.0.0
b330f000-b3317000 rw-p b330f000 00:00 0
b3320000-b3327000 r--p 00000000 08:05 614567 /usr/share/locale-langpack/nn/LC_MESSAGES/gnome-vfs-2.0.mo
b3327000-b332c000 r-xp 00000000 08:05 18775 /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
b332c000-b332d000 r--p 00004000 08:05 18775 /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
b332d000-b332e000 rw-p 00005000 08:05 18775 /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
b332e000-b3334000 r-xp 00000000 08:05 65600 /usr/lib/gstreamer-0.10/libgstwildmidi.so
b3334000-b3335000 r--p 00005000 08:05 65600 /usr/lib/gstreamer-0.10/libgstwildmidi.so
b3335000-b3336000 rw-p 00006000 08:05 65600 /usr/lib/gstreamer-0.10/libgstwildmidi.so
b3336000-b3342000 r-xp 00000000 08:05 22988 /usr/lib/gstreamer-0.10/libgsttypefindfunctions.so
b3342000-b3343000 r--p 0000b000 08:05 22988 /usr/lib/gstreamer-0.10/libgsttypefindfunctions.so
b3343000-b3345000 rw-p 0000c000 08:05 22988 /usr/lib/gstreamer-0.10/libgsttypefindfunctions.so
b3345000-b334f000 r-xp 00000000 08:05 22976 /usr/lib/gstreamer-0.10/libgstdecodebin.so
b334f000-b3350000 r--p 00009000 08:05 22976 /usr/lib/gstreamer-0.10/libgstdecodebin.so
b3350000-b3351000 rw-p 0000a000 08:05 22976 /usr/lib/gstreamer-0.10/libgstdecodebin.so
b3351000-b336d000 r-xp 00000000 08:05 21665 /usr/lib/libgstaudio-0.10.so.0.15.0
b336d000-b336e000 ---p 0001c000 08:05 21665 /usr/lib/libgstaudio-0.10.so.0.15.0
b336e000-b336f000 r--p 0001c000 08:05 21665 /usr/lib/libgstaudio-0.10.so.0.15.0
b336f000-b3370000 rw-p 0001d000 08:05 21665 /usr/lib/libgstaudio-0.10.so.0.15.0
b3374000-b337a000 r-xp 00000000 08:05 22974 /usr/lib/gstreamer-0.10/libgstaudiotestsrc.so
b337a000-b337b000 r--p 00005000 08:05 22974 /usr/lib/gstreamer-0.10/libgstaudiotestsrc.so
b337b000-b337c000 rw-p 00006000 08:05 22974 /usr/lib/gstreamer-0.10/libgstaudiotestsrc.so
b337c000-b3385000 r-xp 00000000 08:05 22973 /usr/lib/gstreamer-0.10/libgstaudioresample.so
b3385000-b3386000 r--p 00008000 08:05 22973 /usr/lib/gstreamer-0.10/libgstaudioresample.so
b3386000-b3387000 rw-p 00009000 08:05 22973 /usr/lib/gstreamer-0.10/libgstaudioresample.so
b3387000-b3395000 r-xp 00000000 08:05 18801 /usr/lib/gstreamer-0.10/libgstaudioconvert.so
b3395000-b3396000 r--p 0000d000 08:05 18801 /usr/lib/gstreamer-0.10/libgstaudioconvert.so
b3396000-b3397000 rw-p 0000e000 08:05 18801 /usr/lib/gstreamer-0.10/libgstaudioconvert.so
b3397000-b339d000 r-xp 00000000 08:05 18800 /usr/lib/gstreamer-0.10/libgstadder.so
b339d000-b339e000 r--p 00005000 08:05 18800 /usr/lib/gstreamer-0.10/libgstadder.so
b339e000-b339f000 rw-p 00006000 08:05 18800 /usr/lib/gstreamer-0.10/libgstadder.so
b339f000-b33a0000 ---p b339f000 00:00 0
b33a0000-b3ba0000 rw-p b33a0000 00:00 0
b3ba0000-b3c00000 rw-s 00000000 00:09 19267672 /SYSV00000000 (deleted)
b3c00000-b3cdc000 rw-p b3c00000 00:00 0
b3cdc000-b3d00000 ---p b3cdc000 00:00 0
b3d01000-b3d61000 rw-s 00000000 00:09 19234901 /SYSV00000000 (deleted)
b3d61000-b3dea000 r--p 00000000 08:05 167729 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
b3dea000-b3deb000 ---p b3dea000 00:00 0
b3deb000-b45eb000 rw-p b3deb000 00:00 0
b45eb000-b4640000 r-xp 00000000 08:05 18414 /usr/lib/liboil-0.3.so.0.3.0
b4640000-b4641000 r--p 00054000 08:05 18414 /usr/lib/liboil-0.3.so.0.3.0
b4641000-b4658000 rw-p 00055000 08:05 18414 /usr/lib/liboil-0.3.so.0.3.0
b4658000-b465a000 rw-p b4658000 00:00 0
b465a000-b465f000 r-xp 00000000 08:05 22971 /usr/lib/libgstvideo-0.10.so.0.15.0
b465f000-b4660000 r--p 00004000 08:05 22971 /usr/lib/libgstvideo-0.10.so.0.15.0
b4660000-b4661000 rw-p 00005000 08:05 22971 /usr/lib/libgstvideo-0.10.so.0.15.0
b4661000-b4664000 r-xp 00000000 08:05 974890 /lib/libcap.so.1.10
b4664000-b4665000 rw-p 00002000 08:05 974890 /lib/libcap.so.1.10
b4665000-b4669000 r-xp 00000000 08:05 22993 /usr/lib/gstreamer-0.10/libgstvolume.so
b4669000-b466a000 r--p 00003000 08:05 22993 /usr/lib/gstreamer-0.10/libgstvolume.so
b466a000-b466b000 rw-p 00004000 08:05 22993 /usr/lib/gstreamer-0.10/libgstvolume.so
b466b000-b466e000 r-xp 00000000 08:05 1467762 /usr/lib/libglade/2.0/libbonobo.so
b466e000-b466f000 r--p 00002000 08:05 1467762 /usr/lib/libglade/2.0/libbonobo.so
b466f000-b4670000 rw-p 00003000 08:05 1467762 /usr/lib/libglade/2.0/libbonobo.so
b4670000-b4676000 r-xp 00000000 08:05 1974439 /usr/lib/libglade/2.0/libgnome.so
b4676000-b4677000 r--p 00006000 08:05 1974439 /usr/lib/libglade/2.0/libgnome.so
b4677000-b4678000 rw-p 00007000 08:05 1974439 /usr/lib/libglade/2.0/libgnome.so
b4678000-b4682000 r-xp 00000000 08:05 22991 /usr/lib/gstreamer-0.10/libgstvideoscale.so
b4682000-b4683000 r--p 00009000 08:05 22991 /usr/lib/gstreamer-0.10/libgstvideoscale.so
b4683000-b4684000 rw-p 0000a000 08:05 22991 /usr/lib/gstreamer-0.10/libgstvideoscale.so
b4684000-b46b2000 r-xp 00000000 08:05 22978 /usr/lib/gstreamer-0.10/libgstffmpegcolorspace.so
b46b2000-b46b3000 r--p 0002d000 08:05 22978 /usr/lib/gstreamer-0.10/libgstffmpegcolorspace.so
b46b3000-b46b4000 rw-p 0002e000 08:05 22978 /usr/lib/gstreamer-0.10/libgstffmpegcolorspace.so
b46b4000-b46b5000 rw-p b46b4000 00:00 0
b46b5000-b46df000 r-xp 00000000 08:05 21677 /usr/lib/gstreamer-0.10/libgstcoreelements.so
b46df000-b46e0000 r--p 00029000 08:05 21677 /usr/lib/gstreamer-0.10/libgstcoreelements.so
b46e0000-b46e1000 rw-p 0002a000 08:05 21677 /usr/lib/gstreamer-0.10/libgstcoreelements.so
b46e1000-b46e8000 r-xp 00000000 08:05 23006 /usr/lib/gstreamer-0.10/libgstgconfelements.so
b46e8000-b46e9000 r--p 00006000 08:05 23006 /usr/lib/gstreamer-0.10/libgstgconfelements.so
b46e9000-b46ea000 rw-p 00007000 08:05 23006 /usr/lib/gstreamer-0.10/libgstgconfelements.so
b46ea000-b46f9000 r-xp 00000000 08:05 116973 /usr/lib/rhythmbox/plugins/visualizer/libvisualizer.so
b46f9000-b46fa000 r--p 0000e000 08:05 116973 /usr/lib/rhythmbox/plugins/visualizer/libvisualizer.so
b46fa000-b46fb000 rw-p 0000f000 08:05 116973 /usr/lib/rhythmbox/plugins/visualizer/libvisualizer.so
b46fb000-b46fe000 r-xp 00000000 08:05 116860 /usr/lib/rhythmbox/plugins/mmkeys/libmmkeys.so
b46fe000-b46ff000 r--p 00002000 08:05 116860 /usr/lib/rhythmbox/plugins/mmkeys/libmmkeys.so
b46ff000-b4700000 rw-p 00003000 08:05 116860 /usr/lib/rhythmbox/plugins/mmkeys/libmmkeys.so
b4700000-b4800000 rw-p b470Aborted (core dumped)

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 8.10
ExecutablePath: /usr/bin/rhythmbox
NonfreeKernelModules: nvidia
Package: rhythmbox 0.11.6svn20081008-0ubuntu4.3
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=nn_NO.UTF-8
 SHELL=/bin/bash
SourcePackage: rhythmbox
Uname: Linux 2.6.27-11-generic i686

Tags: apport-bug
Revision history for this message
Leif Arne Storset (lastorset) wrote :
Revision history for this message
Leif Arne Storset (lastorset) wrote :
Revision history for this message
Bret Curtis (psi29a) wrote :

I could not reproduce this on 13.10 on x86_64-linux-gnu using either: rythmbox, totem and wildplayer (which all use libwildmidi) using the provided midi file.

It is possible that it was fixed in a later release?

Revision history for this message
Leif Arne Storset (lastorset) wrote :

I wanted to confirm, but I can't play this any more. Rhythmbox and Totem complain about missing plugins, and I can't seem to find a wildmidi plugin.

Revision history for this message
Bret Curtis (psi29a) wrote :

What version of gstreamer? You'll likely have to install the "ugly" package to get the plugin.

You can test directly by using the wildmidi player to play back your midi. If it works for you, then the fault exists with Gstreamer or totem/rythembox.

Revision history for this message
Bret Curtis (psi29a) wrote :

Can no longer reproduce, considering fixed.

Changed in wildmidi (Ubuntu):
status: New → Incomplete
Bret Curtis (psi29a)
Changed in wildmidi (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.