# gdb /usr/bin/ffmpeg CoreDump GNU gdb (Ubuntu 8.0-0ubuntu3) 8.0 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/bin/ffmpeg...Reading symbols from /usr/lib/debug/.build-id/e9/c70ba6767df7f83de30a6803ff52cffd540bd3.debug...done. done. [New LWP 29937] [New LWP 29938] warning: .dynamic section for "/usr/lib/x86_64-linux-gnu/libavcodec.so.57" is not at the expected address (wrong library or version mismatch?) warning: Could not load shared library symbols for 3 libraries, e.g. /usr/lib/x86_64-linux-gnu/libvo-amrwbenc.so.0. Use the "info sharedlibrary" command to see the complete listing. Do you need "set solib-search-path" or "set sysroot"? [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `ffmpeg -f libdc1394 -video_size 640x480 -framerate 15 -i fw.0 -pix_fmt bgr24 -f'. Program terminated with signal SIGSEGV, Segmentation fault. #0 dc1394_v2_read_header (c=0xc98d81d380) at src/libavdevice/libdc1394.c:324 324 src/libavdevice/libdc1394.c: No such file or directory. [Current thread is 1 (Thread 0x7f6f7590f000 (LWP 29937))] (gdb) bt full #0 dc1394_v2_read_header (c=0xc98d81d380) at src/libavdevice/libdc1394.c:324 dc1394 = 0xc98d81dc60 list = 0xc98d7bdfc0 res = i = fmt = 0x7f6f7560a770 fps = 0x7f6f7560a6f8 #1 0x00007f6f74ebc616 in avformat_open_input () from /usr/lib/x86_64-linux-gnu/libavformat.so.57 No symbol table info available. #2 0x000000c98d4722bc in open_input_file (o=o@entry=0x7ffcfd690ea0, filename=) at src/ffmpeg_opt.c:991 f = ic = 0xc98d81d380 file_iformat = 0x7f6f75815800 err = i = ret = timestamp = opts = 0xc98d481acf unused_opts = 0x0 e = 0x0 orig_nb_streams = video_codec_name = audio_codec_name = subtitle_codec_name = data_codec_name = scan_all_pmts_set = 1 #3 0x000000c98d47418e in open_files (l=0xc98d81d138, l=0xc98d81d138, open_file=0xc98d4707c0 , inout=0xc98d48cf93 "input") at src/ffmpeg_opt.c:3203 g = 0xc98d81d1a0 o = {g = 0xc98d81d1a0, start_time = -9223372036854775808, start_time_eof = -9223372036854775808, seek_timestamp = 0, format = 0xc98d7a7350 "libdc1394", codec_names = 0x0, nb_codec_names = 0, audio_channels = 0x0, nb_audio_channels = 0, audio_sample_rate = 0x0, nb_audio_sample_rate = 0, frame_rates = 0x0, nb_frame_rates = 0, frame_sizes = 0x0, nb_frame_sizes = 0, frame_pix_fmts = 0x0, nb_frame_pix_fmts = 0, input_ts_offset = 0, loop = 0, rate_emu = 0, accurate_seek = 1, thread_queue_size = 0, ts_scale = 0x0, nb_ts_scale = 0, dump_attachment = 0x0, nb_dump_attachment = 0, hwaccels = 0x0, nb_hwaccels = 0, hwaccel_devices = 0x0, nb_hwaccel_devices = 0, hwaccel_output_formats = 0x0, nb_hwaccel_output_formats = 0, autorotate = 0x0, nb_autorotate = 0, stream_maps = 0x0, nb_stream_maps = 0, audio_channel_maps = 0x0, nb_audio_channel_maps = 0, metadata_global_manual = 0, metadata_streams_manual = 0, metadata_chapters_manual = 0, attachments = 0x0, nb_attachments = 0, chapters_input_file = 2147483647, recording_time = 9223372036854775807, stop_time = 9223372036854775807, limit_filesize = 18446744073709551615, mux_preload = 0, mux_max_delay = 0.699999988, shortest = 0, video_disable = 0, audio_disable = 0, subtitle_disable = 0, data_disable = 0, streamid_map = 0x0, nb_streamid_map = 0, metadata = 0x0, nb_metadata = 0, max_frames = 0x0, nb_max_frames = 0, bitstream_filters = 0x0, nb_bitstream_filters = 0, codec_tags = 0x0, nb_codec_tags = 0, sample_fmts = 0x0, nb_sample_fmts = 0, qscale = 0x0, nb_qscale = 0, forced_key_frames = 0x0, nb_forced_key_frames = 0, force_fps = 0x0, nb_force_fps = 0, frame_aspect_ratios = 0x0, nb_frame_aspect_ratios = 0, rc_overrides = 0x0, nb_rc_overrides = 0, intra_matrices = 0x0, nb_intra_matrices = 0, inter_matrices = 0x0, nb_inter_matrices = 0, chroma_intra_matrices = 0x0, nb_chroma_intra_matrices = 0, top_field_first = 0x0, nb_top_field_first = 0, metadata_map = 0x0, nb_metadata_map = 0, presets = 0x0, nb_presets = 0, copy_initial_nonkeyframes = 0x0, nb_copy_initial_nonkeyframes = 0, copy_prior_start = 0x0, nb_copy_prior_start = 0, filters = 0x0, nb_filters = 0, filter_scripts = 0x0, nb_filter_scripts = 0, reinit_filters = 0x0, nb_reinit_filters = 0, fix_sub_duration = 0x0, nb_fix_sub_duration = 0, canvas_sizes = 0x0, nb_canvas_sizes = 0, pass = 0x0, nb_pass = 0, passlogfiles = 0x0, nb_passlogfiles = 0, max_muxing_queue_size = 0x0, nb_max_muxing_queue_size = 0, guess_layout_max = 0x0, nb_guess_layout_max = 0, apad = 0x0, nb_apad = 0, discard = 0x0, nb_discard = 0, disposition = 0x0, nb_disposition = 0, program = 0x0, nb_program = 0, time_bases = 0x0, nb_time_bases = 0} i = 0 ret = 0 #4 ffmpeg_parse_options (argc=, argv=) at src/ffmpeg_opt.c:3243 octx = {global_opts = {group_def = 0xc98d693f60 , arg = 0xc98d48ccd7 "", opts = 0x0, nb_opts = 0, codec_opts = 0x0, format_opts = 0x0, resample_opts = 0x0, sws_dict = 0x0, swr_opts = 0x0}, groups = 0xc98d81d120, nb_groups = 2, cur_group = {group_def = 0x0, arg = 0x0, opts = 0x0, nb_opts = 0, codec_opts = 0x0, format_opts = 0x0, resample_opts = 0x0, sws_dict = 0x0, swr_opts = 0x0}} error = "k\200H\215\311\000\000\000\360\302\027to\177\000\000\002\000\000\000\000\000\000\000=oF\215\311", '\000' , "x\033i\375\374\177\000\000\016\000\000\000\016\000\000\000 Ei\215\311\000\000\000\361\320H\215\311\000\000\000\306\311H\215\311\000\000\000\016\000\000\000\000\000\000\000\000\070\aRC+8\317 Ei\215\311\000\000\000\236\203F\215\311\000\000\000\005\000\000\000\000\000\000\000d\000\000\000\000\000\000" ret = #5 0x000000c98d4624e1 in main (argc=14, argv=0x7ffcfd691b78) at src/ffmpeg.c:4760 ret = ti = (gdb) frame 0 #0 dc1394_v2_read_header (c=0xc98d81d380) at src/libavdevice/libdc1394.c:324 324 in src/libavdevice/libdc1394.c (gdb) p *dc1394 $1 = {class = 0x7f6f75813860 , d = 0xc98d81e7b0, camera = 0x0, frame = 0x0, current_frame = 0, frame_rate = 15000, video_size = 0xc98d7a77f0 "640x480", pixel_format = 0xc98d7a7650 "uyvy422", framerate = 0xc98d7a7a30 "15", size = 614400, stream_index = 0}