Summary: | media-video/ffmpeg-0.6_p25767 segfaults when using media-libs/x264-0.0.20101029 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Navid Zamani <navid.zamani> |
Component: | Current packages | Assignee: | Gentoo Media-video project <media-video> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | bug |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | emerge --info ffmpeg x264 |
Description
Navid Zamani
2010-12-19 22:27:27 UTC
Created attachment 257590 [details]
emerge --info ffmpeg x264
In case this is needed… :)
I am able to reproduce this locally. Here is a backtrace: #0 0x00007ffff6e2b7b1 in clear_blocks_sse (blocks=0x0) at libavcodec/x86/dsputil_mmx.c:539 No locals. #1 0x00007ffff6cc9295 in mpeg4_decode_mb (s=0xbc6b70, block=0x0) at libavcodec/mpeg4videodec.c:1473 cbpc = <value optimized out> i = <value optimized out> cbp = 16 pred_x = <value optimized out> pred_y = <value optimized out> mx = <value optimized out> my = <value optimized out> dquant = <value optimized out> mot_val = <value optimized out> quant_tab = "\377\376\001\002" xy = 0 #2 0x00007ffff6c06874 in decode_slice (s=0xbc6b70) at libavcodec/h263dec.c:218 ret = <value optimized out> part_mask = 127 mb_size = 16 #3 0x00007ffff6c07934 in ff_h263_decode_frame (avctx=0x628f10, data=0x7fffffffc750, data_size=0x7fffffffca1c, avpkt=<value optimized out>) at libavcodec/h263dec.c:647 buf = 0x62bea0 "" buf_size = 9411 s = 0xbc6b70 ret = <value optimized out> pict = 0x7fffffffc750 #4 0x00007ffff6dad939 in avcodec_decode_video2 (avctx=0x628f10, picture=0x7fffffffc750, got_picture_ptr=0x7fffffffca1c, avpkt=0x7fffffffc8d0) at libavcodec/utils.c:622 ret = <value optimized out> #5 0x0000000000407e15 in output_packet (ist=<value optimized out>, ist_index=0, ost_table=0x62eb70, nb_ostreams=2, pkt=<value optimized out>) at ffmpeg.c:1528 data_buf = 0x62bea0 "" decoded_data_buf = 0x0 data_size = 9411 decoded_data_size = 329472 os = <value optimized out> ost = <value optimized out> ret = <value optimized out> i = <value optimized out> got_picture = 0 picture = {data = {0x0, 0x0, 0x0, 0x0}, linesize = {0, 0, 0, 0}, base = {0x0, 0x0, 0x0, 0x0}, key_frame = 1, pict_type = 0, pts = -9223372036854775808, coded_picture_number = 0, display_picture_number = 0, quality = 0, age = 0, reference = 0, qscale_table = 0x0, qstride = 0, mbskip_table = 0x0, motion_val = {0x0, 0x0}, mb_type = 0x0, motion_subsample_log2 = 0 '\000', opaque = 0x0, error = {0, 0, 0, 0}, type = 0, repeat_pict = 0, qscale_type = 0, interlaced_frame = 0, top_field_first = 0, pan_scan = 0x0, palette_has_changed = 0, buffer_hints = 0, dct_coeff = 0x0, ref_index = {0x0, 0x0}, reordered_opaque = 0, hwaccel_picture_private = 0x0} buffer_to_free = <value optimized out> samples_size = 0 subtitle = {format = 0, start_display_time = 0, end_display_time = 4158568897, num_rects = 32767, rects = 0x5, pts = 0} subtitle_to_free = 0x0 pkt_pts = -9223372036854775808 frame_available = <value optimized out> avpkt = {pts = -9223372036854775808, dts = 0, data = 0x62bea0 "", size = 9411, stream_index = 0, flags = 1, duration = 1, destruct = 0x7ffff6b53a00 <av_destruct_packet>, priv = 0x11, pos = 2056, convergence_duration = 0} bps = 0 #6 0x000000000040bfef in transcode (nb_output_files=1, nb_input_files=1, stream_maps=0x0, nb_stream_maps=-13488, input_files=0x61ab20, output_files=0x61a800) at ffmpeg.c:2617 ist_index = 0 pkt = {pts = -9223372036854775808, dts = 0, data = 0x62bea0 "", size = 9411, stream_index = 0, flags = 1, duration = 1, destruct = 0x7ffff6b53a00 <av_destruct_packet>, priv = 0x11, pos = 2056, convergence_duration = 0} file_index = <value optimized out> ipts_min = <value optimized out> opts_min = <value optimized out> ret = <value optimized out> i = <value optimized out> j = <value optimized out> k = <value optimized out> n = <value optimized out> nb_istreams = 2 nb_ostreams = <value optimized out> is = 0x626510 os = <value optimized out> codec = <value optimized out> icodec = <value optimized out> ost = <value optimized out> ost_table = 0x62eb70 ist = 0x62ea30 ist_table = 0x62ee10 file_table = 0x62e5d0 error = "\377\000\000\000\000\000\000\000q\327%\366\377\177\000\000 \326\377\377\377\177\000\000\000\016\263\365\377\177\000\000\001\200\255\373\377\177\000\000\200~\332\365\377\177\000\000\340\326%\366\377\177\000\000\002", '\000' <repeats 15 times>"\200, \252b\000\000\000\000\000\260\324\377\377\377\177\000\000\374B\254\365\377\177\000\000\330\323\377\377\377\177\000\000IZ%\366\377\177\000\000\000\000\000\000\000\000\000\000\200\252b\000\000\000\000\000OW\000\367\377\177\000\000\001\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\254Z%\366\377\177\000\000\000\000\000\000\000\000N@\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000IZ%\366\001\000\000\000 \326\377\377\377\177\000\000\300\034\062\367\377\177\000\000\002", '\000' <repeats 15 times>"\200, \252b\000\000\000\000\000vg%\366\377\177", '\000' <repeats 30 times>"\377, \177\000\000\200\252b\000\000\000\000\000\330\324\377\377\377\177\000\000!\000\000\000\001\000\000\000\332y\336\367\377\177"... key = -768 want_sdp = <value optimized out> no_packet = '\000' <repeats 99 times> no_packet_count = 0 #7 0x0000000000410b7b in main (argc=<value optimized out>, argv=<value optimized out>) at ffmpeg.c:4306 No locals. well, why do you set threads to 0 ? you probably want at least one thread, if i set it to 1 its fine... (In reply to comment #3) > well, why do you set threads to 0 ? you probably want at least one thread, if i > set it to 1 its fine... I assumed, that “0” meant “Automatically detect the best number of threads for my hardware.”. I remember having read that in the documentation. Otherwise… duh. ^^ (In reply to comment #4) > (In reply to comment #3) > > well, why do you set threads to 0 ? you probably want at least one thread, if i > > set it to 1 its fine... > > I assumed, that “0” meant “Automatically detect the best number of threads for > my hardware.”. I remember having read that in the documentation. > Otherwise… duh. ^^ isnt it for x264 and not ffmpeg ? (In reply to comment #5) > isnt it for x264 and not ffmpeg ? No idea. the man page just puts it under “Advanced Options” but doesn’t mention what it does on “0”. Whatever, I have no problem specifying the number of threads myself. I just thought maybe it knew better what to do than me. (In cases of hyperthreading for example.) (And because I don’t know if it needs a “overlooking” thread that just idles and checks the status. [I guess not.]) closing as there's a way to workaround this, i'm not sure it's not an user issue of feeding ffmpeg with wrong arguments; OTOH you may want to file an upstream bug to get a check added for this because a segfault is never nice. (In reply to comment #7) > OTOH you may want to file an > upstream bug to get a check added for this because a segfault is never nice. FYI, that’s why I created *this* bug. I don’t even know what the word “upstream” means in this context, and I’m not the maintainer either. Setting this to “upstream”, whatever that means. Seems to make more sense. |