New submission from Víctor Daniel <[EMAIL PROTECTED]>:

ffserver crash, Segmentation Fault streaming a ogg audio file

OS: Linux
Distro: Fedora 9

[Attached the used ffserver.conf file and the backtrace session in gdb]

Steps to reproduce:
1. Run ffserver:
$ LD_LIBRARY_PATH=/home/vdmo/.opt/x264/lib:/home/vdmo/.opt/ffmpeg/lib
~/.opt/ffmpeg/bin/ffserver -f ffserver.conf

FFserver version git-4f98d6b, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --prefix=/home/vdmo/.opt/ffmpeg --enable-libdc1394
--enable-liba52 --enable-libfaac --enable-libfaad --enable-libgsm
--enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libxvid
--enable-libx264 --enable-postproc --enable-swscale --enable-pthreads
--disable-static --enable-shared --enable-gpl --enable-debug=3
--disable-optimizations --enable-extra-warnings --disable-stripping
  libavutil     49.10. 0 / 49.10. 0
  libavcodec    52. 0. 0 / 52. 0. 0
  libavformat   52.22. 1 / 52.22. 1
  libavdevice   52. 1. 0 / 52. 1. 0
  libswscale     0. 6. 1 /  0. 6. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Sep 23 2008 02:06:05, gcc: 4.3.0 20080428 (Red Hat 4.3.0-8)

2. Run ffmpeg to encode to http://localhost:8090/feed1.ffm feed [See my attached
ffserver.conf file] a oga file:
$ LD_LIBRARY_PATH=/home/vdmo/.opt/x264/lib:/home/vdmo/.opt/ffmpeg/lib
~/.opt/ffmpeg/bin/ffmpeg -debug 3 -i ~/Music/01\ -\ Symphony\ no.1\ in\ C\
major\,\ op.21\ -\ 1.\ Adagio\ molto\ -\ Allegro\ con\ brio.oga
http://localhost:8090/feed1.ffm

FFmpeg version git-4f98d6b, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --prefix=/home/vdmo/.opt/ffmpeg --enable-libdc1394
--enable-liba52 --enable-libfaac --enable-libfaad --enable-libgsm
--enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libxvid
--enable-libx264 --enable-postproc --enable-swscale --enable-pthreads
--disable-static --enable-shared --enable-gpl --enable-debug=3
--disable-optimizations --enable-extra-warnings --disable-stripping
  libavutil     49.10. 0 / 49.10. 0
  libavcodec    52. 0. 0 / 52. 0. 0
  libavformat   52.22. 1 / 52.22. 1
  libavdevice   52. 1. 0 / 52. 1. 0
  libswscale     0. 6. 1 /  0. 6. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Sep 23 2008 02:06:05, gcc: 4.3.0 20080428 (Red Hat 4.3.0-8)
Input #0, ogg, from '/home/vdmo/Music/01 - Symphony no.1 in C major, op.21 - 1.
Adagio molto - Allegro con brio.oga':
  Duration: 00:09:34.00, start: 0.000000, bitrate: 446 kb/s
    Stream #0.0, 1/44100: Audio: vorbis, 44100 Hz, stereo, s16, 499 kb/s
Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
    Stream #0.0, 1/1000000: Audio: flac, 44100 Hz, stereo, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
[flac @ 0x93808c0] compression: 5
[flac @ 0x93808c0] use lpc: Levinson-Durbin recursion with Welch window
[flac @ 0x93808c0] prediction order: 1, 8
[flac @ 0x93808c0] order method: estimate
[flac @ 0x93808c0] partition order: 0, 8
[flac @ 0x93808c0] block size: 4608
[flac @ 0x93808c0] lpc precision: 15
Press [q] to stop encoding
size=     628kB time=9.93 bitrate= 518.3kbits/s    

3. O.k, Everything is going well, but, start a mplayer client:
mplayer http://localhost:8090/test.ogg
MPlayer dev-SVN-r26936-4.3.0 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Celeron(R) CPU 2.40GHz (Family: 15, Model: 2, Stepping: 9)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Option msglevel: Unknown suboption 5
Warning unknown option msglevel at line 14
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing http://localhost:8090/test.ogg.
Resolving localhost for AF_INET6...
Couldn't resolve name for AF_INET6: localhost
Resolving localhost for AF_INET...
Connecting to server localhost[127.0.0.1]: 8090...
Cache size set to 320 KBytes
Cache fill:  0.00% (0 bytes)   


Exiting... (End of file)

4. And ffserver crash [Segmentation Fault]
Tue Sep 23 03:35:29 2008 ffserver started.
Tue Sep 23 03:35:32 2008 New connection: GET /feed1.ffm
Tue Sep 23 03:35:32 2008 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 8245
Tue Sep 23 03:35:32 2008 New connection: GET /feed1.ffm
Tue Sep 23 03:35:32 2008 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 8245
Tue Sep 23 03:35:32 2008 New connection: POST /feed1.ffm
Tue Sep 23 03:35:38 2008 New connection: GET /test.ogg
Tue Sep 23 03:35:38 2008 No extradata present
Tue Sep 23 03:35:38 2008 Error writing output header
Tue Sep 23 03:35:38 2008 127.0.0.1 - - [GET] "/test.ogg HTTP/1.0" 200 68
Segmentation fault (core dumped)



Relevant Packages instaled:
libvorbis-1.2.0-4.fc9.i386
libvorbis-debuginfo-1.2.0-4.fc9.i386
libvorbis-devel-1.2.0-4.fc9.i386
libogg-debuginfo-1.1.3-9.fc9.i386
libogg-1.1.3-9.fc9.i386
libogg-devel-1.1.3-9.fc9.i386



Using GIT Repositories to compile ffmpeg [From mplayer Oficial Page] and x264
[From VLC Oficial Page]
x264>
commit e71168d48b9cb994bbb3895bbf25ebee2893ba4f
Author: Jason Garrett-Glaser <[EMAIL PROTECTED]>
Date:   Sun Sep 21 22:17:34 2008 -0700

ffmpeg>
commit 4f98d6be40b820be4ea9955cb46e557e066f6022
Author: michael <[EMAIL PROTECTED]>
Date:   Mon Sep 22 20:46:52 2008 +0000



Diff file to compile ffmpeg
$ git diff
diff --git a/Makefile b/Makefile
index f8caf77..e1cebbc 100644
--- a/Makefile
+++ b/Makefile
@@ -40,6 +40,12 @@ INSTALL_TARGETS-$(BUILD_DOC)    += install-man
 endif
 INSTALL_PROGS_TARGETS-$(BUILD_SHARED) = install-libs
 
+libpostproc/postprocess.o: CFLAGS += -O
+libavcodec/i386/dsputil_mmx.o: CFLAGS += -O
+#i386/dsputil_mmx.o: CFLAGS += -fforce-addr \
+#                              -momit-leaf-frame-pointer \
+#                              -fomit-frame-pointer \
+#                              -O2
 all: $(FF_DEP_LIBS) $(PROGS) $(ALL_TARGETS-yes)
 
 $(PROGS): %$(EXESUF): %_g$(EXESUF)
diff --git a/configure b/configure
index c011275..aaf391f 100755
--- a/configure
+++ b/configure
@@ -1714,7 +1714,8 @@ enabled libschroedinger && add_cflags $(pkg-config
--cflags schroedinger-1.0) \
                         && require libschroedinger schroedinger/schro.h
schro_init $(pkg-config --libs schroed
 enabled libtheora  && require  libtheora theora/theora.h theora_info_init
-ltheora -logg
 enabled libvorbis  && require  libvorbis vorbis/vorbisenc.h vorbis_info_init
-lvorbisenc -lvorbis -logg
-enabled libx264    && require  x264 x264.h x264_encoder_open -lx264 -lm
+enabled libx264    && require  x264 x264.h x264_encoder_open -lm $(pkg-config
--libs x264) \
+                   && add_cflags $(pkg-config --cflags x264)
 enabled libxvid    && require  Xvid xvid.h xvid_global -lxvidcore
 enabled mlib       && require  mediaLib mlib_types.h mlib_VectorSub_S16_U8_Mod
-lmlib



Commands to Compile ffmpeg
$ PKG_CONFIG_PATH=/home/vdmo/.opt/x264/lib/pkgconfig ./configure
--prefix=/home/vdmo/.opt/ffmpeg     --enable-libdc1394     --enable-liba52    
--enable-libfaac     --enable-libfaad     --enable-libgsm    
--enable-libmp3lame     --enable-libtheora     --enable-libvorbis    
--enable-libxvid     --enable-libx264     --enable-postproc     --enable-swscale
    --enable-pthreads     --disable-static     --enable-shared     --enable-gpl
    --enable-debug=3     --disable-optimizations     --enable-extra-warnings   
 --disable-stripping
$ make
$ make install

----------
messages: 3243
nosy: bombayvdmo
priority: normal
status: new
substatus: new
title: ffserver Segmentation Fault streaming a ogg audio file
type: bug

______________________________________________________
FFmpeg issue tracker <[EMAIL PROTECTED]>
<https://roundup.mplayerhq.hu/roundup/ffmpeg/issue646>
______________________________________________________

Reply via email to