Opened 3 years ago

Closed 3 years ago

#3081 closed defect (needs_more_info)

Blackberry10 crash on avformat_find_stream_info

Reported by: xsacha Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: qnx crash
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


Summary of the bug:
I noticed my device was randomly crashing in avformat_find_stream_info. The event was only reproducable on Blackberry10 (did not occur on Windows or Android).

I followed the codepath and determined that I was able to fix the crash by commenting out:

av_dict_set(options ? &options[i] : &thread_opt, "threads", "1", 0);

I followed it further in to the avcodec_open2 function where I determined the crash could be fixed by commenting out:

av_dict_copy(&tmp, *options, 0);

Commenting out anything that tmp was used in did not help. It only seemed to occur from the av_dict_copy.
I was able to reproduce the crash using:

AVDictionary *foo = NULL; av_dict_copy(&foo, *options, 0);

My backtrace is uneventful as it doesn't seem to show anything from ffmpeg despite compiling with -g -O0:

How to reproduce:

While playing back an audio or video in PPSSPP, the application crashes randomly from avformat_find_stream_info.
Using a recent ffmpeg-git built from

Change History (6)

comment:1 Changed 3 years ago by cehoyos

How do you know where the crash happens (the backtrace you linked to does not tell).
Please post all relevant information here, do not use external resources (if possible).
Assuming this is not reproducible with ffmpeg (the application) - or is it? - could you post a minimal test case?

comment:2 Changed 3 years ago by xsacha

I stepped through each line until I discovered the crash.
I put all the relevant information here.

I am running on a mobile platform and don't have any other ffmpeg frontend. If I did, the crash would also occur there as well as it is due to the avformat and avcodec modules and nothing to do with the front-end.

The test case I provided is the best I can do I am afraid. Do you own a Blackberry device? I may be able to automate the procedure.

comment:3 Changed 3 years ago by cehoyos

Please test if ffmpeg (the application) also allows to reproduce the crash. If it does, please provide a useful backtrace etc. as explained on

And please confirm that this crash is reproducible with current FFmpeg git head from git:// - nothing else is supported (sorry for not realizing this earlier).

comment:4 Changed 3 years ago by michael

which asm instruction crashes, what are the register values ?

comment:5 Changed 3 years ago by cehoyos

  • Keywords blackberry dict avcodec removed

comment:6 Changed 3 years ago by cehoyos

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

Please reopen this ticket if you can add the missing information.

Allow me to clarify that crashes are always important problems but without any additional information, developers are unable to look into this issue or fix it. Following is an easy way of reporting the necessary information.

Note: See TracTickets for help on using tickets.