Crash (SIGSEGV) in memcpy using libfaad2

Bug #40043 reported by Christopher Bowman
8
Affects Status Importance Assigned to Milestone
beep-media-player (Debian)
Invalid
Undecided
Unassigned
beep-media-player (Ubuntu)
Invalid
Medium
Unassigned
faad2 (Ubuntu)
Fix Released
Wishlist
Lionel Porcheron

Bug Description

While listening to m4a files that were pulled from my iTunes collection, beep will crash randomly. This is probably not a bug in beep, but that's where I see the crash. Below is a backtrace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1274565712 (LWP 21696)]
0xb7616505 in mempcpy () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0 0xb7616505 in mempcpy () from /lib/tls/i686/cmov/libc.so.6
#1 0xb760a69a in _IO_file_xsputn () from /lib/tls/i686/cmov/libc.so.6
#2 0xb760b578 in _IO_sgetn () from /lib/tls/i686/cmov/libc.so.6
#3 0xb75ff699 in fread () from /lib/tls/i686/cmov/libc.so.6
#4 0xb68c4861 in read_callback () from /usr/lib/bmp/Input/libmp4.so
#5 0xb684034f in mp4ff_read_data () from /usr/lib/libmp4ff.so.0
#6 0xb683db6f in mp4ff_read_sample () from /usr/lib/libmp4ff.so.0
#7 0xb68c40b9 in mp4_get_file_type () from /usr/lib/bmp/Input/libmp4.so
#8 0xb77fc341 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#9 0xb76744ee in clone () from /lib/tls/i686/cmov/libc.so.6

Versions:
beep-media-player 0.9.7.1+cvs20050803-1ubuntu2
bmp-mp4 2.0.0+cvs20040908+mp4v2+bmp-0ubuntu3
libfaad2-0 2.0.0+cvs20040908+mp4v2+bmp-0ubuntu3
libc6-i686 2.3.6-0ubuntu17

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Thank you for your bug report.
Could you please generate a backtrace of it? You may follow this procedure: https://wiki.ubuntu.com/DebuggingProgramCrash.
Thank you.

Changed in beep-media-player:
status: Unconfirmed → Needs Info
Revision history for this message
Christopher Bowman (cbowman) wrote :

Attached is a backtrace per the instructions in the wiki.

I'm running Valgrind now and will upload it after another crash.

Revision history for this message
Christopher Bowman (cbowman) wrote :

Attached is Valgrind output.

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

I filed a new bug in DBT and in SF.net bugtracker (http://sourceforge.net/tracker/index.php?func=detail&aid=1567145&group_id=95272&atid=610824).
BMP Bugzilla, located at http://www.sosdg.org/~larne/bugs, is not available at the moment, I will try later on.

Revision history for this message
Christopher Bowman (cbowman) wrote :

Thanks. I recompiled the faad2 with debugging and captured another backtrace that has more debugging information.

The Debug: lines in the previous backtrace were probably caused by my attempt at debugging this months ago.

I'll try to reproduce this with xmms, since I believe the issue isn't exclusive to bmp.

Revision history for this message
Christopher Bowman (cbowman) wrote :

xmms backtrace.

faad2 is a common link, so maybe this should go there.

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

I'm trying to reproduce the bug, which seems related to libfaad2 rather than beep-media-player.

Changed in beep-media-player:
status: Unknown → Unconfirmed
Revision history for this message
Christopher Bowman (cbowman) wrote :

Possibly useful information:

The crash seems to always occur at the end of a song and before the next song has started.

The size of the playlist doesn't seem to matter.

All files in the playlist are m4a.

This occurs on more than one machine, so I don't think it's a problem with this hardware and the m4a files play correctly when using mplayer.

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

I downloaded some samples and I noticed a message "mp4: stream error" when reaching the end of the song, but program (XMMS actually) didn't crash. I will keep watching it anyway.

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

mplayer didn't crash because it doesn't use libfaad2, which seems responsible for this issue.

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

I obtained a backtrace using beep-media-player.

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

I obtained a backtrace using XMMS too.
Now I'm able to confim this bug. Affected package seems faad2, so I'm going to change source package related to this bug.

Changed in faad2:
status: Unconfirmed → Confirmed
Changed in beep-media-player:
status: Needs Info → Rejected
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

I closed debian and bmp bug reports.
I also filed a new bug in faad2 bugtrack. See http://sourceforge.net/tracker/index.php?func=detail&aid=1568321&group_id=704&atid=100704 for more info.

Changed in beep-media-player:
status: Unconfirmed → Fix Released
Changed in faad2:
assignee: nobody → dktrkranz
status: Confirmed → In Progress
Changed in beep-media-player:
status: Unconfirmed → Rejected
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Attached debdiff should fix this.

Changed in faad2:
assignee: dktrkranz → nobody
status: In Progress → Confirmed
Revision history for this message
Luca Falavigna (dktrkranz) wrote :
Revision history for this message
Luca Falavigna (dktrkranz) wrote :
Changed in faad2:
assignee: nobody → dktrkranz
status: Confirmed → In Progress
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Debdiff updated.

Changed in faad2:
assignee: dktrkranz → nobody
status: In Progress → Confirmed
Changed in faad2:
assignee: nobody → lionel.porcheron
importance: Undecided → Wishlist
Revision history for this message
Lionel Porcheron (lionel.porcheron) wrote :

Format: 1.7
Date: Tue, 12 Jun 2007 13:17:39 +0200
Source: faad2
Binary: libfaad2-0 bmp-mp4 xmms-mp4 libmp4v2-dev libmp4v2-0 libfaad2-dev faad
Architecture: source
Version: 2.0.0+cvs20040908+mp4v2+bmp-0ubuntu5
Distribution: gutsy
Urgency: low
Maintainer: Ubuntu MOTU Developers <email address hidden>
Changed-By: Luca Falavigna <email address hidden>
Description:
 bmp-mp4 - a mp4/aac audio player for bmp
 faad - freeware Advanced Audio Decoder player
 libfaad2-0 - freeware Advanced Audio Decoder - runtime files
 libfaad2-dev - freeware Advanced Audio Decoder - development files
 libmp4v2-0 - MP4 container library - runtime files
 libmp4v2-dev - MP4 container library - development files
 xmms-mp4 - a mp4/aac audio player for xmms
Changes:
 faad2 (2.0.0+cvs20040908+mp4v2+bmp-0ubuntu5) gutsy; urgency=low
 .
   * 10_libmp4_sample_check.diff: fixed SIGSEGV while listening to m4a
     files (LP: 40043)
   * Update Maintainer field in debian/control
Files:
 045463b8f35b5bf749ca16d9cb40f288 851 libs optional faad2_2.0.0+cvs20040908+mp4v2+bmp-0ubuntu5.dsc
 42cc5ca6f05156e7539f41825d920aab 5947 libs optional faad2_2.0.0+cvs20040908+mp4v2+bmp-0ubuntu5.diff.gz
Original-Maintainer: Sebastian Droege <email address hidden>

Changed in faad2:
status: Confirmed → Fix Committed
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Package built. Thank you.

Changed in faad2:
status: Fix Committed → 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.