Description of problem:
Mediatomb crashes soon after starting on Fedora 14.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Start service and do anything (watch media, add directory, etc)
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: =========
It shouldn't crash
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?
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.
So far the build is running well.
Great! I'm going to close this bug as fixed then. If you encounter any more problems, please file another bug.
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.
In tools.cc, there is a buffer overrun in sprintf if we have media that is more than 999 hours long:
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.
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.
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.
Thanks, I did a couple of tests and it seems to fix the crash.
mediatomb-0.12.1-3.fc13 has been submitted as an update for Fedora 13.
mediatomb-0.12.1-4.fc14 has been submitted as an update for Fedora 14.
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
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.
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.