[FFmpeg-user] avformat_find_stream_info broken recently with multiple threads?

Dennis Volodomanov volodomanov at gmail.com
Thu Jan 3 07:06:33 CET 2013


Carl,


Carl Eugen Hoyos wrote:
> Dennis Volodomanov<volodomanov<at>  gmail.com>  writes:
>
>> I tried using GDB, but with debug symbols embedded in
>> the DLLs, it seems to hang forever upon loading them -
>> I waited for about 15 minutes and it hasn't come back
>> up, so I killed it. Is it expected to take that long or
>> is something wrong?
>
> I suspect something is wrong;-(
> Does running ffmpeg (the application) in gdb work?

Yes it runs ok, but I haven't tried it with debug symbols. The 
command-line ffmpeg is compiled statically, so it's different to the 
DLLs that are causing the crash.
> [...]
>
>> ffmpeg_git/libavcodec/frame_thread_encoder.c:179:
>> undefined reference to `_imp__pthread_create'
>
> Now the question is:
> Why does it work when testing pthread_create in configure?
> Could you search config.log for "check_func pthread_create"
> and post the content from that line until "check_lib math.h"?
>
Sure, this is it:

check_func pthread_create
check_ld cc
check_cc
BEGIN /tmp/ffconf.mT27sYqz.c
     1    extern int pthread_create();
     2    int main(void){ pthread_create(); }
END /tmp/ffconf.mT27sYqz.c
/home/dennis/cc/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc 
-D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 
-U__STRICT_ANSI__ -std=c99 -fomit-frame-pointer -c -o 
/tmp/ffconf.YjvTgNa1.o /tmp/ffconf.mT27sYqz.c
/home/dennis/cc/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc 
-Wl,--as-needed -o /tmp/ffconf.pKdpHWud.exe /tmp/ffconf.YjvTgNa1.o -lbz2 
-lz -lpsapi -ladvapi32 -lshell32
/tmp/ffconf.YjvTgNa1.o:ffconf.mT27sYqz.c:(.text+0xc): undefined 
reference to `pthread_create'
collect2: error: ld returned 1 exit status
check_func pthread_create -pthread
check_ld cc -pthread
check_cc -pthread
BEGIN /tmp/ffconf.mT27sYqz.c
     1    extern int pthread_create();
     2    int main(void){ pthread_create(); }
END /tmp/ffconf.mT27sYqz.c
/home/dennis/cc/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc 
-D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 
-U__STRICT_ANSI__ -std=c99 -fomit-frame-pointer -pthread -c -o 
/tmp/ffconf.YjvTgNa1.o /tmp/ffconf.mT27sYqz.c
/home/dennis/cc/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc 
-Wl,--as-needed -pthread -o /tmp/ffconf.pKdpHWud.exe 
/tmp/ffconf.YjvTgNa1.o -lbz2 -lz -lpsapi -ladvapi32 -lshell32
check_func pthread_cancel
check_ld cc
check_cc
BEGIN /tmp/ffconf.mT27sYqz.c
     1    extern int pthread_cancel();
     2    int main(void){ pthread_cancel(); }
END /tmp/ffconf.mT27sYqz.c
/home/dennis/cc/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc 
-D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 
-U__STRICT_ANSI__ -std=c99 -fomit-frame-pointer -pthread -c -o 
/tmp/ffconf.YjvTgNa1.o /tmp/ffconf.mT27sYqz.c
/home/dennis/cc/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc 
-Wl,--as-needed -o /tmp/ffconf.pKdpHWud.exe /tmp/ffconf.YjvTgNa1.o 
-pthread -lbz2 -lz -lpsapi -ladvapi32 -lshell32
check_lib math.h sin -lm


Thanks!

    Dennis



More information about the ffmpeg-user mailing list