Description of problem: The mga3 version of mediatomb breaks immediately on import with a segfault in lib64avutil. The FAQ for mediatomb says that this is usually an issue with ffmpeg. Installing the mga2 version works fine, and it appears that there is some patch that was not ported over to cauldron Version-Release number of selected component (if applicable): How reproducible: consistent Steps to Reproduce: 1.install mediatomb 2.restart and import files 3. crash in avutil 4. backout to mga2 release 5 works fine.
CC: (none) => fundawang, jani.valimaaAssignee: bugsquad => mageia
CC: jani.valimaa => (none)
Created attachment 2771 [details] Updated spec
Created attachment 2772 [details] patch to let mediatomb compile with newest gcc
I've created updated specs that seem to fix the issue with a new build
Keywords: (none) => PATCH
How about mediatomb-0.12.1-5.mga3?
mediatomb-0.12.1-5.mga3 segfaulted for me when it scanned the directories. Rebuilding somehow works.
What do you mean by rebuilding? I've already merged your patch regarding gcc 4.7 from gentoo. Would you mind attaching your rebbuild log?
Status: NEW => ASSIGNEDAssignee: mageia => fundawang
Got confused here. I've tried the new mediatomb and it still segfaulted. Unfortunately when I rebuilt my own local build, it also segfaulted. Trying to figure out what happened. :-(
Created attachment 2793 [details] Valgrind crash report
Yuck. Valgrind shows lots of issues.
Found the problem.... The ffmpeg was not calling avformat_alloc_context() - AVFormatContext *pFormatCtx; + AVFormatContext *pFormatCtx = avformat_alloc_context(); I've got a modified libav_0.7_suppoort that fixes the problem
Created attachment 2798 [details] libav_0_7 with patch for ffmpeg
Also I've reported this upstream https://sourceforge.net/projects/mediatomb/forums/forum/440750/topic/5714043
Thanks for your patch Joseph! Though, I have a crash with your patch as well. Reading the ffmpeg source code, avformat_close_input() already calls avformat_free_context(), so you should not call it again, or it will try to free an invalid context the second time.
CC: (none) => mageia
Also, it seems that avformat_open_input() can already allocate the context, so just setting it to NULL first should do it.
Fixed in mediatomb-0.12.1-6.mga3, it now indexes files properly again. Thanks Joseph for spotting the issue! Updated patch is available here: http://svnweb.mageia.org/packages/cauldron/mediatomb/current/SOURCES/libav_0.7_support.patch?revision=294279&view=markup
Status: ASSIGNED => RESOLVEDResolution: (none) => FIXED