[CFT] New upstream version of mplayer + mencoder

Konstantin Belousov kostikbel at gmail.com
Fri Dec 26 10:15:15 UTC 2014


On Thu, Dec 25, 2014 at 05:26:24PM +0100, Thomas Zander wrote:
> On 25 December 2014 at 16:09, Konstantin Belousov <kostikbel at gmail.com> wrote:
> > On Thu, Dec 25, 2014 at 02:42:26PM +0100, Thomas Zander wrote:
> >> - Remove -fomit-frame-pointer from CFLAGS (we have apparently a fair
> >>   number of CPUs out there which can't run code compiled with this
> >>   option reliably)
> >
> > Could you, please, explain this ?
> 
> Unfortunately, I don't know yet why this happens. But I can point you
> to the PR where we narrowed the issue down. So far, it seems to affect
> various CPUs in 32 bit mode. If you have additional insights, I'd
> appreciate it. See here:
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=185560

The track in the PR does not contain clean summary, and I have troubles
making the conclusion from the vague info there.

I very much doubt that the problem is a CPU bug, it would be very
high-profile event and would be discovered much earlier then now,
esp. for Pentium IV class machines.

It seems that everything makes circles around stack alignment and SSE.
At least, this is strongly suggested by references to OCFLAGS and the
fact that -fomit-frame-pointer implicitely changes stack alignment.
SIGBUS is somewhat consistent with this observation.

This might be a compiler bug (what compiler ?  I cannot find a conclusive
answer in the PR), or more likely, it is a bug in inline assembler code,
which probably makes unwarranted assumptions about stack alignment.

Reporters must show the disassembly of the failed instruction and register
dump to confirm or deny my theory.  You might want to play with the
-mstackrealign compiler option.


More information about the freebsd-ports mailing list