New submission from Kevin <[email protected]>:

I recently upgraded to Ubuntu 10.10 (from 10.4). Prior to the upgrade I had 
been using ffmpeg/ffserver 
routinely without issue.  

I followed the instructions 
(http://ubuntuforums.org/showthread.php?t=786095&highlight=ffmpeg+ffm) to make 
sure 
I had the latest version of ffmpeg installed.

While converting and playing files work, I cannot stream any file to ffserver.  
I've tried flv, mpg, avi, raw 
video, everything segfaults.

Running ffserver -d shows only a connection being made on the server side, no 
further errors or debugging 
messages occur there.

I have attached the required outputs from gdb.


Short Examples:

ffmpeg -i ~/Desktop/show91/all.avi http://MYDOMAIN:8090/test1.ffm
FFmpeg version SVN-r25548, Copyright (c) 2000-2010 the FFmpeg developers
  built on Oct 21 2010 22:17:26 with gcc 4.4.5
  configuration: --enable-gpl --enable-version3 --enable-nonfree 
--enable-postproc --enable-libfaac --enable-
libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libtheora --enable-libvorbis --
enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
  libavutil     50.32. 3 / 50.32. 3
  libavcore      0. 9. 1 /  0. 9. 1
  libavcodec    52.92. 0 / 52.92. 0
  libavformat   52.84. 0 / 52.84. 0
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.53. 0 /  1.53. 0
  libswscale     0.12. 0 /  0.12. 0
  libpostproc   51. 2. 0 / 51. 2. 0
Input #0, avi, from '/home/kmcgrath/Desktop/show91/all.avi':
  Metadata:
    encoder         : Lavf52.64.2
  Duration: 01:52:35.30, start: 0.000000, bitrate: 8287 kb/s
    Stream #0.0: Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 29.97 fps, 
29.97 tbr, 29.97 tbn, 59.94 tbc
    Stream #0.1: Audio: mp2, 48000 Hz, 1 channels, s16, 128 kb/s
Segmentation fault




ffmpeg -i ~/Desktop/test.flv http://MYDOMAIN:8090/test1.ffm
FFmpeg version SVN-r25548, Copyright (c) 2000-2010 the FFmpeg developers
  built on Oct 21 2010 22:17:26 with gcc 4.4.5
  configuration: --enable-gpl --enable-version3 --enable-nonfree 
--enable-postproc --enable-libfaac --enable-
libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libtheora --enable-libvorbis --
enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
  libavutil     50.32. 3 / 50.32. 3
  libavcore      0. 9. 1 /  0. 9. 1
  libavcodec    52.92. 0 / 52.92. 0
  libavformat   52.84. 0 / 52.84. 0
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.53. 0 /  1.53. 0
  libswscale     0.12. 0 /  0.12. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[flv @ 0x258a470] max_analyze_duration reached
[flv @ 0x258a470] Estimating duration from bitrate, this may be inaccurate
Input #0, flv, from '/home/kmcgrath/Desktop/test.flv':
  Metadata:
    duration        : 217
    width           : 576
    height          : 320
    videodatarate   : 195
    framerate       : 12
    videocodecid    : 2
    audiodatarate   : 125
    audiosamplerate : 44100
    audiosamplesize : 16
    stereo          : true
    audiocodecid    : 2
    filesize        : 9375286
  Duration: 00:03:36.55, start: 0.000000, bitrate: 328 kb/s
    Stream #0.0: Video: [0][0][0][0] / 0x0000, 200 kb/s, 1k tbr, 1k tbn, 1k tbc
    Stream #0.1: Audio: mp3, 44100 Hz, 2 channels, s16, 128 kb/s
Segmentation fault

----------
files: ffmpeg-segfault.txt
messages: 12330
priority: normal
status: new
substatus: new
title: Segfault when trying to stream any video to ffserver
type: bug

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2317>
________________________________________________
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from 
/media/Raid1/home/kmcgrath/code_checkouts/ffmpeg/ffmpeg_g...done.
(gdb) r -i ~/Desktop/show91/all.avi http://MYDOMAIN:8090/test1.ffm
Starting program: /media/Raid1/home/kmcgrath/code_checkouts/ffmpeg/ffmpeg_g -i 
~/Desktop/show91/all.avi http://MYDOMAIN:8090/test1.ffm
[Thread debugging using libthread_db enabled]
FFmpeg version SVN-r25548, Copyright (c) 2000-2010 the FFmpeg developers
  built on Oct 21 2010 22:17:26 with gcc 4.4.5
  configuration: --enable-gpl --enable-version3 --enable-nonfree 
--enable-postproc --enable-libfaac --enable-libmp3lame 
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora 
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid 
--enable-x11grab
  libavutil     50.32. 3 / 50.32. 3
  libavcore      0. 9. 1 /  0. 9. 1
  libavcodec    52.92. 0 / 52.92. 0
  libavformat   52.84. 0 / 52.84. 0
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.53. 0 /  1.53. 0
  libswscale     0.12. 0 /  0.12. 0
  libpostproc   51. 2. 0 / 51. 2. 0
Input #0, avi, from '/home/kmcgrath/Desktop/show91/all.avi':
  Metadata:
    encoder         : Lavf52.64.2
  Duration: 01:52:35.30, start: 0.000000, bitrate: 8287 kb/s
    Stream #0.0: Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 29.97 fps, 
29.97 tbr, 29.97 tbn, 59.94 tbc
    Stream #0.1: Audio: mp2, 48000 Hz, 1 channels, s16, 128 kb/s

Program received signal SIGSEGV, Segmentation fault.
transcode (nb_output_files=<value optimized out>, nb_input_files=<value 
optimized out>, stream_maps=<value optimized out>, 
    nb_stream_maps=<value optimized out>, input_files=<value optimized out>, 
output_files=<value optimized out>) at ffmpeg.c:1979
1979                ost = ost_table[n] = output_streams_for_file[k][i];



(gdb) bt
#0  transcode (nb_output_files=<value optimized out>, nb_input_files=<value 
optimized out>, stream_maps=<value optimized out>, 
    nb_stream_maps=<value optimized out>, input_files=<value optimized out>, 
output_files=<value optimized out>) at ffmpeg.c:1979
#1  0x0000000000439533 in main (argc=4, argv=<value optimized out>) at 
ffmpeg.c:4223



(gdb) disass $pc-32 $pc+32
A syntax error in expression, near `$pc+32'.





(gdb) info all-registers
rax            0x0      0
rbx            0x0      0
rcx            0x138a0a0        20488352
rdx            0x0      0
rsi            0x0      0
rdi            0x12c3a50        19675728
rbp            0x12c2960        0x12c2960
rsp            0x7fffffffd210   0x7fffffffd210
r8             0x8      8
r9             0x101010101010101        72340172838076673
r10            0x1      1
r11            0x1      1
r12            0x0      0
r13            0x12c2960        19671392
r14            0x12c3a50        19675728
r15            0x1      1
rip            0x437573 0x437573 <transcode+1923>
eflags         0x10246  [ PF ZF IF RF ]
cs             0x33     51
ss             0x2b     43
ds             0x0      0
es             0x0      0
fs             0x0      0
gs             0x0      0
st0            -nan(0x00000003c)        (raw 0xffff000000000000003c)
st1            -nan(0x000000004)        (raw 0xffff0000000000000004)
st2            -nan(0x000000003)        (raw 0xffff0000000000000003)
st3            -nan(0xbf0a7c4aad64e000) (raw 0xffffbf0a7c4aad64e000)
st4            -nan(0x8080808080808080) (raw 0xffff8080808080808080)
st5            -inf     (raw 0xffff0000000000000000)
st6            -nan(0xb000000000000000) (raw 0xffffb000000000000000)
st7            -inf     (raw 0xffff0000000000000000)
fctrl          0x37f    895
fstat          0x0      0
ftag           0xffff   65535
fiseg          0x0      0
fioff          0x0      0
foseg          0x0      0
fooff          0x0      0
fop            0x0      0
xmm0           {v4_float = {0xaae60, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8 = {0x0, 0xe6, 0x2a, 0x49, 0x0 <repeats 12 times>}, 
  v8_int16 = {0xe600, 0x492a, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = 
{0x492ae600, 0x0, 0x0, 0x0}, v2_int64 = {0x492ae600, 0x0}, 
---Type <return> to continue, or q <return> to quit---
  uint128 = 0x000000000000000000000000492ae600}
xmm1           {v4_float = {0x7a120, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8 = {0x0, 0x24, 0xf4, 0x48, 0x0 <repeats 12 times>}, 
  v8_int16 = {0x2400, 0x48f4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = 
{0x48f42400, 0x0, 0x0, 0x0}, v2_int64 = {0x48f42400, 0x0}, 
  uint128 = 0x00000000000000000000000048f42400}
xmm2           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 
    0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 
0x0}, uint128 = 0x00000000000000000000000000000000}
xmm3           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8 = {0x0 <repeats 11 times>, 0xff, 0x0, 0x0, 0x0, 0x0}, 
  v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0xff00, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 
0xff000000, 0x0}, v2_int64 = {0x0, 0xff000000}, 
  uint128 = 0x00000000ff0000000000000000000000}
xmm4           {v4_float = {0x0, 0x0, 0x0, 0x1e400000}, v2_double = 
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {0x54, 0x72, 
    0x69, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x63, 0x6f, 0x70, 0x79, 0x20, 
0x41, 0x56}, v8_int16 = {0x7254, 0x6569, 0x2064, 0x6f74, 
    0x6320, 0x706f, 0x2079, 0x5641}, v4_int32 = {0x65697254, 0x6f742064, 
0x706f6320, 0x56412079}, v2_int64 = {0x6f74206465697254, 
    0x56412079706f6320}, uint128 = 0x56412079706f63206f74206465697254}
xmm5           {v4_float = {0x0, 0x1, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8 = {0x0, 0x0, 0x0, 0xe0, 0x95, 0x9c, 0xe7, 0x3f, 0x0, 
    0x1, 0x1, 0x0, 0x1, 0x1, 0x1, 0x1}, v8_int16 = {0x0, 0xe000, 0x9c95, 
0x3fe7, 0x100, 0x1, 0x101, 0x101}, v4_int32 = {0xe0000000, 
    0x3fe79c95, 0x10100, 0x1010101}, v2_int64 = {0x3fe79c95e0000000, 
0x101010100010100}, uint128 = 0x01010101000101003fe79c95e0000000}
xmm6           {v4_float = {0x0, 0x1, 0x0, 0x0}, v2_double = {0x1, 0x0}, 
v16_int8 = {0x6d, 0x7d, 0xbf, 0xbb, 0x27, 0xaf, 0xf5, 0x3f, 
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x7d6d, 0xbbbf, 
0xaf27, 0x3ff5, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0xbbbf7d6d, 
    0x3ff5af27, 0x0, 0x0}, v2_int64 = {0x3ff5af27bbbf7d6d, 0x0}, uint128 = 
0x00000000000000003ff5af27bbbf7d6d}
xmm7           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8 = {0x0, 0x0, 0x0, 0x0, 0x68, 0xc8, 0xbc, 0x3b, 0x0, 
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0x0, 0xc868, 0x3bbc, 
0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x3bbcc868, 0x0, 
    0x0}, v2_int64 = {0x3bbcc86800000000, 0x0}, uint128 = 
0x00000000000000003bbcc86800000000}
xmm8           {v4_float = {0x0, 0xfffffffd, 0x0, 0x0}, v2_double = 
{0xffffffffffffffd2, 0x0}, v16_int8 = {0xe0, 0xe6, 0x35, 0x67, 0x9e, 
    0x6, 0x47, 0xc0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = 
{0xe6e0, 0x6735, 0x69e, 0xc047, 0x0, 0x0, 0x0, 0x0}, 
  v4_int32 = {0x6735e6e0, 0xc047069e, 0x0, 0x0}, v2_int64 = 
{0xc047069e6735e6e0, 0x0}, uint128 = 0x0000000000000000c047069e6735e6e0}
xmm9           {v4_float = {0x0, 0x1, 0x0, 0x0}, v2_double = {0x1, 0x0}, 
v16_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf0, 0x3f, 0x0, 0x0, 
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0x0, 0x0, 0x3ff0, 0x0, 0x0, 
0x0, 0x0}, v4_int32 = {0x0, 0x3ff00000, 0x0, 0x0}, 
  v2_int64 = {0x3ff0000000000000, 0x0}, uint128 = 
0x00000000000000003ff0000000000000}
xmm10          {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8 = {0x0, 0x0, 0x46, 0x84, 0x24, 0x59, 0xd6, 0x3e, 0x0, 
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0x8446, 0x5924, 
0x3ed6, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x84460000, 
    0x3ed65924, 0x0, 0x0}, v2_int64 = {0x3ed6592484460000, 0x0}, uint128 = 
0x00000000000000003ed6592484460000}
xmm11          {v4_float = {0x9689a800, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8 = {0x6a, 0xa2, 0x65, 0x50, 0xf2, 0xea, 0x8f, 
    0xbd, 0x8c, 0x8c, 0x8b, 0x8c, 0x8c, 0x8c, 0x8c, 0x8c}, v8_int16 = {0xa26a, 
0x5065, 0xeaf2, 0xbd8f, 0x8c8c, 0x8c8b, 0x8c8c, 0x8c8c}, 
  v4_int32 = {0x5065a26a, 0xbd8feaf2, 0x8c8b8c8c, 0x8c8c8c8c}, v2_int64 = 
{0xbd8feaf25065a26a, 0x8c8c8c8c8c8b8c8c}, 
  uint128 = 0x8c8c8c8c8c8b8c8cbd8feaf25065a26a}
xmm12          {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8 = {0x29, 0xf2, 0x88, 0x6c, 0xa6, 0x49, 0xde, 0x3e, 
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0xf229, 0x6c88, 
0x49a6, 0x3ede, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x6c88f229, 
    0x3ede49a6, 0x0, 0x0}, v2_int64 = {0x3ede49a66c88f229, 0x0}, uint128 = 
0x00000000000000003ede49a66c88f229}
xmm13          {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8 = {0xb3, 0x12, 0x58, 0x17, 0x64, 0x46, 0xe6, 0x3b, 
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x12b3, 0x1758, 
0x4664, 0x3be6, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x175812b3, 
    0x3be64664, 0x0, 0x0}, v2_int64 = {0x3be64664175812b3, 0x0}, uint128 = 
0x00000000000000003be64664175812b3}
xmm14          {v4_float = {0x0, 0x3, 0x0, 0x0}, v2_double = {0x2d, 0x0}, 
v16_int8 = {0xc0, 0x9, 0xf2, 0x16, 0xb5, 0xdf, 0x46, 0x40, 
---Type <return> to continue, or q <return> to quit---
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x9c0, 0x16f2, 0xdfb5, 
0x4046, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x16f209c0, 
    0x4046dfb5, 0x0, 0x0}, v2_int64 = {0x4046dfb516f209c0, 0x0}, uint128 = 
0x00000000000000004046dfb516f209c0}
xmm15          {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8 = {0x1 <repeats 16 times>}, v8_int16 = {0x101, 0x101, 
    0x101, 0x101, 0x101, 0x101, 0x101, 0x101}, v4_int32 = {0x1010101, 
0x1010101, 0x1010101, 0x1010101}, v2_int64 = {0x101010101010101, 
    0x101010101010101}, uint128 = 0x01010101010101010101010101010101}
mxcsr          0x1fb2   [ DE UE PE IM DM ZM OM UM PM ]







Reply via email to