| Summary: | mediatomb segfaults on avutil - probably mga2 patch was not ported over | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Joseph Wang <joequant> |
| Component: | RPM Packages | Assignee: | Funda Wang <fundawang> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | critical | ||
| Priority: | Normal | CC: | fundawang, mageia |
| Version: | Cauldron | Keywords: | PATCH |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | mediatomb-0.12.1-4-mga3 | CVE: | |
| Status comment: | |||
| Attachments: |
Updated spec
patch to let mediatomb compile with newest gcc Valgrind crash report libav_0_7 with patch for ffmpeg |
||
|
Description
Joseph Wang
2012-07-01 11:51:31 CEST
Manuel Hiebel
2012-07-01 21:45:22 CEST
CC:
(none) =>
fundawang, jani.valimaa
Jani Välimaa
2012-07-01 21:48:32 CEST
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
Manuel Hiebel
2012-09-09 11:12:50 CEST
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 =>
ASSIGNED 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 =>
RESOLVED |