[FFmpeg-devel] swscale-test segfault with 64-bit icc 11.1
Wed Jul 21 05:52:26 CEST 2010
On Wed, Jul 21, 2010 at 12:19 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Tue, Jul 20, 2010 at 07:05:54PM +0200, Reimar D?ffinger wrote:
>> On Mon, Jul 19, 2010 at 06:48:03PM -0300, Ramiro Polla wrote:
>> > I was able to reproduce the bug with gcc but they haven't been very
>> > helpful nor have they acknowledged it:
>> > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44975
>> > I faintly remember some intel compiler dev on this list or something
>> > similar, maybe he could comment on the issue?
>> > Otherwise I think the best solution is to switch to yasm like mans
>> > suggested, but that would involve work and I'm not volunteering =).
>> As a hack, just calling a empty function (of course make sure it won't
>> be inlined) at the start would probably force the compiler to do it
>> in a way that works.
> something alongthe lines of
> sub $1234,%%esp before the call and add afterwards could be used
> one just must make sure that the call doesnt read via the stack pointer
The local variable is located in rsp-8. If we sub rsp, we lose the
local variable (through "m"(...)).
More information about the ffmpeg-devel