Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

This is my problem:

viroos@plecak-transmisyjny:~/videotesty$ sudo ffserver -d -loglevel debug
FFserver version SVN-r20420, Copyright (c) 2000-2009 Fabrice Bellard, et al.
built on Oct 30 2009 21:56:18 with gcc 4.4.1
configuration: --enable-gpl --enable-shared --enable-nonfree
libavutil     50. 3. 0 / 50. 3. 0
libavcodec    52.37. 1 / 52.20. 0
libavformat   52.39. 2 / 52.31. 0
libavdevice   52. 2. 0 / 52. 1. 0
libswscale     0. 7. 1 /  0. 7. 1
Segmentation fault

This is my /etc/ffserver.conf

Port 8090
BindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 1000
CustomLog -
NoDaemon
<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 200K
ACL allow 127.0.0.1
</Feed>
<Stream output.flv>
Feed feed1.ffm
VideoBitRate 1024
VideoBufferSize 128
Format flv
VideoSize 320x240
VideoFrameRate 24
VideoQMin  3
VideoQMax  3
</Stream>
<Stream stat.html>
Format status
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
</Stream>
<Redirect index.html>
URL http://www.ffmpeg.org/
</Redirect>
share|improve this question

1 Answer 1

up vote 1 down vote accepted

Did you build this from source yourself? If that is the case, I would build it again and watch for any errors / warnings in the build process.

If not, even if you are doing something wrong in the configuration, a segfault should not happen. The program should not be trying to access memory it shouldn't. If there is an error on your part, it should print an error and exit on its own. So you should submit a bug report if you don't see anything during the build process.

If you have the source, and want to see if you can just fix it right away. Compile with -ggdb3 and then run the executable with gdb and see where it segfaults:

$ gdb myexec
GNU gdb 6.8-debian
Copyright (C) 2008 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 "i486-linux-gnu"...
(gdb) run
...
(gdb) bt
share|improve this answer
    
Thank You. I thought, so but when I was googling I found answer where someone suggested that could by configuration problem... This is standard package from Ubuntu 9.10. I will try compile it myself, and I will submit bug report. –  Maciek Sawicki Nov 6 '09 at 17:12
    
Right, could be a config problem, but even if it is, it still shouldn't cause a segfault. –  Kyle Brandt Nov 6 '09 at 18:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.