Opened 4 years ago

Closed 4 years ago

#1231 closed defect (worksforme)

ffplay access violation on win64

Reported by: ronag Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: win64
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

win64 static build (http://ffmpeg.zeranoe.com/builds/, 2012-04-16) ffplay crashes on win64 with some files, I added two samples in (ftp://upload.ffmpeg.org/incoming/intermittent_win64_ffplay_crash).
I do not have this problem with win32 static build ffplay.

Change History (13)

comment:1 Changed 4 years ago by cehoyos

  • Component changed from avformat to undetermined
  • Keywords win64 added

Both samples show no problems with valgrind here.

Is the crash also reproducible with ffmpeg -i input -f null - ?

Please add gdb output as explained on http://ffmpeg.org/bugreports.html (gdb works fine on Windows64), please understand that it is unlikely a crash without backtrace gets fixed.

comment:2 Changed 4 years ago by ronag

Crash with "ffmpeg -i t.mp4 -f null t2.mp4" as well. Crashes right away.

I'll try to get debug win64 binaries to run it with. With the regular binaries gdb complains that ffmpeg.exe is "not in executable format".

Last edited 4 years ago by ronag (previous) (diff)

comment:3 Changed 4 years ago by ronag

Works fine with 32 bit ffmpeg/ffplay, and both 32 bit and 64 bit avconv/avplay.

comment:4 Changed 4 years ago by ronag

I've tried to reproduce it in VS2010 using the ffmpeg libraries where I can get the w64 build to crash with the following. Not sure if it is the same with the ffmpeg/ffplay executables.

while(true)
{
    AVFormatContext* ic = nullptr;
    avformat_open_input(&ic, "M:\\t.mp4", nullptr, nullptr);
    avformat_find_stream_info(ic, nullptr); <-- Access violation reading location 0xffffffffffffffff.
    avformat_close_input(&ic);
    Sleep(1000);
}

Which crashes. It is interesting that it crashes on vmovaps, since I just recently upgraded to a Sandy Bridge cpu with AVX instructions.


avcodec-54.dll!000000006a5b7ef0() 	
[Frames below may be incorrect and/or missing, no symbols loaded for avcodec-54.dll]	
avcodec-54.dll!000000006a5b8035() 	
avcodec-54.dll!000000006a5b8e95() 	
avcodec-54.dll!000000006a5b8ed5() 	
avcodec-54.dll!000000006a5b8f15() 	
avcodec-54.dll!000000006a5b8f55() 	
avcodec-54.dll!000000006a5badf6() 	
avcodec-54.dll!000000006b381fa0()



000000006A5B7EF0  vmovaps     ymm2,ymmword ptr [rcx+40h]  <-- Access violation reading location 0xffffffffffffffff.
000000006A5B7EF5  vmovaps     ymm3,ymmword ptr [rcx+60h]  
000000006A5B7EFA  vsubps      ymm7,ymm2,ymm3  
000000006A5B7EFE  vaddps      ymm2,ymm2,ymm3  
000000006A5B7F02  vxorps      ymm7,ymm7,ymmword ptr [6ADEA300h]  
000000006A5B7F0A  vshufps     ymm3,ymm2,ymm7,0BEh  
000000006A5B7F0F  vshufps     ymm2,ymm2,ymm7,44h  
000000006A5B7F14  vsubps      ymm7,ymm2,ymm3  
000000006A5B7F18  vaddps      ymm2,ymm2,ymm3  
000000006A5B7F1C  vshufps     ymm3,ymm2,ymm7,0DDh  
000000006A5B7F21  vshufps     ymm2,ymm2,ymm7,88h 


Version 2, edited 4 years ago by ronag (previous) (next) (diff)

comment:5 Changed 4 years ago by cehoyos

Did you use a gdb version that is able to debug win64 binaries?

Please recompile FFmpeg with debug symbols enabled.

comment:6 follow-up: Changed 4 years ago by ronag

I use gdb which is included in the mingw installation found here, http://sourceforge.net/projects/mingw-w64/.

I cannot compile ffmpeg, a virtual linux dist does not fit on my ssd drive. I'm trying to get debug binaries through other means.

comment:7 in reply to: ↑ 6 ; follow-up: Changed 4 years ago by cehoyos

Replying to ronag:

I use gdb which is included in the mingw installation found here, http://sourceforge.net/projects/mingw-w64/.

I cannot compile ffmpeg

FFmpeg compilation should work out-of-the-box with mingw, do you see any problems?

comment:8 in reply to: ↑ 7 Changed 4 years ago by ronag

FFmpeg compilation should work out-of-the-box with mingw, do you see any problems?

The problem is that I'm on Windows, and don't know how to compile ffmpeg.

comment:9 Changed 4 years ago by ronag

I don't get the problem on an older computer.

Last edited 4 years ago by ronag (previous) (diff)

comment:10 Changed 4 years ago by cehoyos

I tested zeranoe fce30d8 64-bit Static and both ffmpeg and ffplay work fine for the given samples, I cannot test on AVX though.

comment:11 Changed 4 years ago by michael

  • Summary changed from ffplay access violation to ffplay access violation on win64

comment:12 Changed 4 years ago by michael

tested on mingw64 + wine with AVX, no crash (only ffmpeg tested, no SDL for mingw installed)

Last edited 4 years ago by michael (previous) (diff)

comment:13 Changed 4 years ago by cehoyos

  • Resolution set to worksforme
  • Status changed from new to closed

I tested on Windows 7 with AVX hardware and current Zeranoe static build: No crash

Note: See TracTickets for help on using tickets.