[FFmpeg-cvslog] r18896 - trunk/libavcodec/eatgq.c

Måns Rullgård mans
Sun May 24 20:46:55 CEST 2009


Vitor Sessak <vitor1001 at gmail.com> writes:

> M?ns Rullg?rd wrote:
>> Vitor Sessak <vitor1001 at gmail.com> writes:
>>
>>> M?ns Rullg?rd wrote:
>>>> Reimar D?ffinger <Reimar.Doeffinger at gmx.de> writes:
>>> [...]
>>>
>>>> Here's an excerpt from the kernel log on my Alpha machine:
>>>> ffmpeg_g(21360): unaligned trap at 00000001203bc770: 00000200007c8c21 29 4
>>>> ffmpeg_g(21360): unaligned trap at 00000001203bc770: 00000200007c8c29 29 4
>>>> ffmpeg_g(21360): unaligned trap at 00000001203bc770: 00000200007c8c31 29 4
>>>> ffmpeg_g(21360): unaligned trap at 00000001203bc770: 00000200007c8c39 29 4
>>>> ffmpeg_g(22343): unaligned trap at 00000001204ad364: 00000200008c0d8c 29 1
>>>> ffmpeg_g(22343): unaligned trap at 00000001204ad394: 00000200008c0ef4 29 1
>>>> ffmpeg_g(22343): unaligned trap at 00000001204ad3c4: 00000200008c105c 29 1
>>>> ffmpeg_g(22343): unaligned trap at 00000001204ad3f4: 00000200008c11c4 29 1
>>>> ffmpeg_g(22384): unaligned trap at 00000001204ad364: 00000200008c0d8c 29 1
>>>> ffmpeg_g(22384): unaligned trap at 00000001204ad394: 00000200008c0ef4 29 1
>>>> ffmpeg_g(22384): unaligned trap at 00000001204ad3c4: 00000200008c105c 29 1
>>>> ffmpeg_g(22384): unaligned trap at 00000001204ad3f4: 00000200008c11c4 29 1
>>>> ffmpeg(24756): unaligned trap at 00000001202e6228: 0000000120a7c9fc 2d 2
>>>> ffmpeg(24756): unaligned trap at 00000001202e6230: 0000000120a7c9ec 2d 2
>>>> ffmpeg(24756): unaligned trap at 00000001202e8d34: 0000000120a7c9ec 2d 31
>>>> ffmpeg(24756): unaligned trap at 00000001202e8d3c: 0000000120a7c9fc 2d 31
>>>> ffmpeg(24783): unaligned trap at 00000001202b421c: 00000200002ca011 28 1
>>>> ffmpeg(24783): unaligned trap at 00000001202b421c: 00000200002ca015 28 1
>>>> ffmpeg(24783): unaligned trap at 00000001202b421c: 00000200002ca019 28 1
>>>> ffmpeg(24783): unaligned trap at 00000001202b421c: 00000200002ca01d 28 1
>>>> Quite clearly, something is not aligned correctly.
>>> Is there a way of forcing a segfault when this happens?
>> There should be (SIGBUS actually), or else I can do it on ARM where I
>> know how to do it.
>
> It would really be nice to have a ARM configuration with this enabled
> on FATE...

I can easily do it on Alpha.

ARMv6 and later can do unaligned accesses in hardware, but for an
ARMv5 target it would be the right thing to do.  Unaligned access
trapping is a system-wide setting, so changing for individual FATE
configurations isn't practical.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-cvslog mailing list