Segfault with Secure Download

Mauro Stettler mauro.stettler at gmail.com
Fri Jun 18 06:49:05 MSD 2010


could you please check if this still happens if you add a
secure_download_fail_location?

http://wiki.nginx.org/NginxHttpSecureDownload


On Fri, Jun 18, 2010 at 03:08, MokuTheCow <nginx-forum at nginx.us> wrote:
> -V
> [code][root at localhost ~]# nginx -V
> nginx version: nginx/0.7.9
> built by gcc 4.4.3 20100127 (Red Hat 4.4.3-4) (GCC)
> configure arguments: --with-http_flv_module
> --add-module=/root/nginx/ngx_http_secure_download/
> --add-module=/root/nginx/nginx_mod_h264_streaming-2.2.7/[/code]
>
> conf
> [code]worker_processes        512;
> worker_rlimit_core      500M;
> working_directory       /tmp;
>
> timer_resolution        1000ms;
>
> #pid        logs/nginx.pid;
>
>
> events {
>    worker_connections  16384;
>        multi_accept            on;
> }
>
>
> http {
>
>        include       mime.types;
>        default_type  application/octet-stream;
>
>        sendfile        on;
>        tcp_nopush     on;
>
>        keepalive_timeout  15;
>
>        access_log      /dev/null combined;
>        error_log       /dev/null crit;
>
>        server {
>                listen          74.82.53.42:8080;
>                server_name     node1.website.com;
>
>                location / {
>                        flv;
>                        root /home/ssd/;
>                        secure_download on;
>                        secure_download_secret "pass";
>                        secure_download_path_mode file;
>                }
>        }
> }
> [/code]
>
> After doing some more testing, when the download finishes via
> secure_download is when nginx fails out with the error in the first
> post.
> [code]2010/06/17 15:02:02 [info] 3475#0: *1001 securedownload: evaluated
> value of secret: "tacorape", client: 207.178.151.60, server:
> node1.fairyshare.com, request: "GET
> /Victoria_Crater__Cape_Verde_Mars_small.jpg/73fb3ecfdbc865c4e2905825d8d18113/4c1a75c3
> HTTP/1.1", host: "node1.fairyshare.com:8080"
> 2010/06/17 15:02:02 [debug] 3475#0: *1001 hashing string
> "/Victoria_Crater__Cape_Verde_Mars_small.jpg/tacorape/4c1a75c3" with len
> 61
> 2010/06/17 15:02:02 [debug] 3475#0: *1001 computed hash:
> 73fb3ecfdbc865c4e2905825d8d18113
> [/code]
>
> Then in the syslog...
> [code]Jun 17 15:02:04 localhost kernel: nginx[3475]: segfault at 1 ip
> 000000000041e6c6 sp 00007ffff0891c98 error 4 in
> nginx[400000+6a000][/code]
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,94061,99579#msg-99579
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>



More information about the nginx mailing list