Skip to main content
September 21, 2011
Question

Apache Segfault using mod_hlshttp.so

  • September 21, 2011
  • 3 replies
  • 2641 views

Trying to use hls on an exising Apache server on Ubuntu following the instructions listed here:

http://help.adobe.com/en_US/flashmediaserver/configadmin/WSd391de4d9c7bd6093a7e2f8312a374a1bde-8000.html

section: Use an external Apache HTTP Server for HTTP Dynamic Streaming and HTTP Live Streaming

Copied the .so files to apache's module library, updated conf file, restarted apache.  Now, it seems to work when requesting a m3u8 URL, but looking at the apache error log file, getting seg faults across all virtual hosts.

Not sure where to start to figure this out, but hoping for some quick things to consider.

Thanks

Chief

    This topic has been closed for replies.

    3 replies

    October 17, 2011

    The problem I guess was mine.  I could not just straight copy libcrypto into the modules directory as stated in the documentation.  This was causing all type of problems.

    Temporarily, for testing purposes, I ended up creating a symbolic link of libcrypto1.0.0 to libcrypto.so that was already there (/usr/lib/libcrypto.so).  For better or worse, I don't have any problems.  Not sure what specifically FMS wants out out of openssl, so I don't really know if any features/functions I should pay attention to. 

    My needs are rather simple, with as much to so with supporting already existing streaming needs from an older version of FMS as opposed to some of the new features (except for the need for HLS for IOS).

    If anything else comes up about this, I'll be sure to try and update this thread.


    Thanks


    Chief

    September 21, 2011

    Seems to be libcrypto....at least with my basic knowledget of how to use gdb.  This is an existing server, so let me see if I can update libssl/OpenSSL, etc.

    Course, could be barking up the wrong tree.

    Thanks

    Chief

    Asa_-_FMS
    Adobe Employee
    Adobe Employee
    September 24, 2011

    Please keep this thread up to date with your findings.  Have you been able to ascertain what the problem was with your libcrypto?


    Asa

    Adobe Employee
    September 21, 2011

    Can you let us know two things which we will need to investigate this further:

    1. Exact OS details - i know you have said Ubuntu - but which version and kernel details
    2. Which version of Apache are you using and do you have any extra settings on your existing Apache which does not come with default Apache installation

    Also does seg faults happen only for m3u8 request? Does .f4m request for mod_jithttp and mod_f4fhttp work fine?

    September 21, 2011

    Here is what I have gathered:

    Ubuntu Version:  Ubuntu 10.04.2

    Apache Version (apache2 -v): Server version: Apache/2.2.14 (Ubuntu)

    Compiled in modules:

      core.c

      mod_log_config.c

      mod_logio.c

      prefork.c

      http_core.c

      mod_so.c

    version and build parameters of apache2 (apache2 -V)

    Server version: Apache/2.2.14 (Ubuntu)

    Server built:   Nov 18 2010 21:19:09

    Server's Module Magic Number: 20051115:23

    Server loaded:  APR 1.3.8, APR-Util 1.3.9

    Compiled using: APR 1.3.8, APR-Util 1.3.9

    Architecture:   64-bit

    Server MPM:     Prefork

      threaded:     no

        forked:     yes (variable process count)

    Server compiled with....

    -D APACHE_MPM_DIR="server/mpm/prefork"

    -D APR_HAS_SENDFILE

      -D APR_HAS_MMAP

    -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)

    -D APR_USE_SYSVSEM_SERIALIZE

    -D APR_USE_PTHREAD_SERIALIZE

    -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT

    -D APR_HAS_OTHER_CHILD

    -D AP_HAVE_RELIABLE_PIPED_LOGS

      -D DYNAMIC_MODULE_LIMIT=128

    -D HTTPD_ROOT=""

    -D SUEXEC_BIN="/usr/lib/apache2/suexec"

    -D DEFAULT_PIDLOG="/var/run/apache2.pid"

    -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"

      -D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"

    -D DEFAULT_ERRORLOG="logs/error_log"

    -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"

    -D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"

    Dump a list of loaded Static and Shared Modules (apache2 -M)

    Loaded Modules:

    core_module (static)

    log_config_module (static)

    logio_module (static)

    mpm_prefork_module (static)

    http_module (static)

    so_module (static)

    alias_module (shared)

    auth_basic_module (shared)

    authn_file_module (shared)

    authz_default_module (shared)

    authz_groupfile_module (shared)

    authz_host_module (shared)

    authz_user_module (shared)

    autoindex_module (shared)

    cgi_module (shared)

    deflate_module (shared)

    dir_module (shared)

    env_module (shared)

    expires_module (shared)

    headers_module (shared)

    hlshttp_module (shared)

    mime_module (shared)

    negotiation_module (shared)

    passenger_module (shared)

    php5_module (shared)

    reqtimeout_module (shared)

    rewrite_module (shared)

    setenvif_module (shared)

    ssl_module (shared)

    status_module (shared)

    It seems pretty standard to me.  When I backout the inclusion of the hlshttp.so module, I don't get the seg faults.  I'm going to try and gdb a dump and see what I get.

    I'll will continue to see what I can find/figure out.

    Thanks

    Chief

    calmchessplayer
    Inspiring
    September 21, 2011

    from a terminal

    sudo apt-get install apache2

    you will have to look up how to install PHP,PHP PEAR(for mail),PHP GD for images,mysql,mysql-workbench,PHP mysql module. anything else you may want to install as a package. can't give you all the commands because its been too long since i clean installed it all packages change. I suggest you also use Ubuntu Server edtion its the most friendly when it comes to server technologies including FMS keep in mind you may need a patch to actually install FMS on Ubuntu this may also have changed by now patches should be installed carefully they come from a third party u have been warned. One last thought Ubuntu server edtion  install isn't nice it doesn't install gnome by default are you comfortable with terminal commands?