Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#9916 closed Bug Report - Crash (fixed)

Mythtv segfaults on ppc when the internal ffmpeg is compiled with -fPIC (default)

Reported by: kim@… Owned by: beirdo
Priority: minor Milestone:
Component: MythTV - General Version: Unspecified
Severity: medium Keywords: ppc
Cc: Ticket locked: no

Description

mythfrontend will segfault when reading various streams (AAC, AC3 etc...) on linux/powerpc if compiled with a 'recent' version of gcc (>= 3.6). The reason is that the way global symbols are loaded in ffmpeg/libavcodec/ppc/fft_altivec_s.S and asm.S is not PIC compatible.

This affects all versions of mythtv on linux/ppc32 (tested with 0.23, 0.24, 0.24.1 and git head).

The following simple patch was applied to ffmpeg upstream and fixes the problem, please cherry pick it: http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2d16394f972dca8cc5e5b5bf9ab0b343a6239b76

Change History (5)

comment:1 Changed 13 years ago by beirdo

Owner: set to beirdo
Status: newassigned

comment:2 Changed 13 years ago by Github

Milestone: unknown0.25
Resolution: fixed
Status: assignedclosed

Fix PPC movrel issue in FFmpeg libs.

Fixes #9916

Cherry-picked from: http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2d16394f972dca8cc5e5b5bf9ab0b343a6239b76

Signed-off-by: Michael Niedermayer <michaelni@…> Signed-off-by: Gavin Hurlbut <ghurlbut@…>

Branch: master Changeset: 2ed7b536bcee27ecb41d630e2db1251ff083cb97

comment:3 Changed 13 years ago by kim@…

Hello, since this fix is really small could you also apply it to 0.24 please ? without it mythtv is unsable on powerpc32. Thanks.

comment:4 Changed 13 years ago by beirdo

Milestone: 0.250.24.2

Done. Commit 8bc2a66dd9e4927eb0931770f20ef56bbe792374.

It applied cleanly.

comment:5 Changed 12 years ago by stuartm

Milestone: 0.24.2

Milestone 0.24.2 deleted

Note: See TracTickets for help on using tickets.