Bug 651414 - Mediatomb crashes on Fedora 14
Summary: Mediatomb crashes on Fedora 14
Alias: None
Product: Fedora
Classification: Fedora
Component: mediatomb
Version: 14
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: Rich Mattes
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2010-11-09 14:45 UTC by Phil Anderson
Modified: 2010-12-17 08:28 UTC (History)
2 users (show)

Fixed In Version: mediatomb-0.12.1-3.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-12-17 08:25:06 UTC

Attachments (Terms of Use)

Description Phil Anderson 2010-11-09 14:45:28 UTC
Description of problem:
Mediatomb crashes soon after starting on Fedora 14.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.  Start service and do anything (watch media, add directory, etc)
Actual results:
Service crashes.  If run in a console, the following stack trace is produced:
MediaTomb UPnP Server version 0.12.1 - http://mediatomb.cc/

Copyright 2005-2010 Gena Batsyan, Sergey Bostandzhyan, Leonhard Wimmer.
MediaTomb is free software, covered by the GNU General Public License version 2

*** buffer overflow detected ***: mediatomb terminated
======= Backtrace: =========

Expected results:
It shouldn't crash

Comment 1 Phil Anderson 2010-11-09 14:48:34 UTC
Please note that a local rpmbuild --rebuild mediatomb-0.12.1-2.fc14.src.rpm and a subsequent reinstalling the package fixes the following problem for me.  A fresh database didn't fix it.

I'm not sure if anyone else is experiencing this, but if so, maybe you should push a rebuild?

Comment 2 Rich Mattes 2010-11-12 23:31:28 UTC
I have submitted and update for fedora 14, please try it and let me know if you are still experiencing problems.  You can wait a day or so and install the update from updates-testing, or you can download the .rpm from koji directly and try it.

koji build:


Comment 3 Phil Anderson 2010-11-14 23:39:25 UTC
So far the build is running well.

Comment 4 Rich Mattes 2010-11-15 02:52:35 UTC
Great!  I'm going to close this bug as fixed then.  If you encounter any more problems, please file another bug.

Comment 5 Phil Anderson 2010-11-17 01:27:20 UTC
I was wrong.  It seems to be crashing just as much.

There must be some different compiler version/settings in the official Fedora 14 build environment to my local builds.

Comment 6 Phil Anderson 2010-11-17 02:09:12 UTC
In tools.cc, there is a buffer overrun in sprintf if we have media that is more than 999 hours long:
    // XXX:XX:XX
    char *str = (char *)malloc(10); 
    sprintf(str, "%02d:%02d:%02d", h, m, s);

I'm still working out why mediatomb thinks my 45 minute mp4 file is 1288 hours long, when it worked properly under Fedora 13.

Comment 7 Phil Anderson 2010-11-17 02:29:30 UTC
mp4info is showing a dodgy value for my file, so the problem is either the file, or libmp4v2.  Mediatomb should handle it a bit more gracefully than crashing out.

Comment 8 Rich Mattes 2010-11-22 07:12:06 UTC
Thanks for taking the time to track down this bug.  I'm building new packages with a patch that limits 'h' to 999.  If you can, please test the below packages and see if they work:


If they fix your problem, I'll submit the patch upstream and push updated packages.

Comment 9 Phil Anderson 2010-11-24 09:52:42 UTC
Thanks,  I did a couple of tests and it seems to fix the crash.

Comment 10 Fedora Update System 2010-12-07 14:10:02 UTC
mediatomb-0.12.1-3.fc13 has been submitted as an update for Fedora 13.

Comment 11 Fedora Update System 2010-12-07 14:10:10 UTC
mediatomb-0.12.1-4.fc14 has been submitted as an update for Fedora 14.

Comment 12 Fedora Update System 2010-12-07 20:15:20 UTC
mediatomb-0.12.1-3.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update mediatomb'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/mediatomb-0.12.1-3.fc13

Comment 13 Fedora Update System 2010-12-17 08:25:01 UTC
mediatomb-0.12.1-4.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2010-12-17 08:28:45 UTC
mediatomb-0.12.1-3.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.