nginx truncates pages and reports worker process exited on signal 6

Duane Mulder duanemulder at rattyshack.ca
Sun Dec 5 20:56:27 MSK 2010


Hello All:

Just a quick update on this matter. After some config experiments I
discovered that it was the content filter that was causing the issue.

 subs_filter_types text/html text/css text/xml;

Because the site handles large amounts of SVN traffic it was causing the
daemon to quit. The fix was to change the location to be more specific
to the conten that needed to be replaced and avoid the svn repositories.

Regards,
Duane

Duane Mulder wrote:
> Hello All:
>
> We are seeing an issue with nginx (0.8.54) where it occasionally
> truncates pages loading only a portion of the content. When a truncated
> page is delivered nginx reports the  message recorded below in its error
> log.  We are running on ubuntu 10.04 Nginx is compiled from source.
>
> I have experimented with a number of config changes, enabling gzip etc
> and the issue has not gone away.
>
> The current config is designed to redirect port 80 requests to 443 and
> perform some content fixes.
>
> Any suggestions
>
> Duane
>
> ========== nginx.conf
> worker_processes  2;
> #pid        logs/nginx.pid;
> events {
>     worker_connections  1024;
>     use epoll;
>     multi_accept on;
> }
>
> http { #http
>        include       mime.types;
>        default_type  application/octet-stream;
>         gzip            off;
>     # Set File upload limit at 2G
>     client_max_body_size 2000M;
>     sendfile        on;
>     keepalive_timeout  65;
>         server  { #server80
>                 server_name hostname.company.com;
>                 listen            80;
>                 rewrite          ^(.*)          https://$server_name$1
> permanent;
>
>         location /nginx_status {
>           stub_status on;
>           access_log   off;
>           allow 10.x.x.65;
>           deny all;
>         }
>
>         } #server80
>
> server { #server443
>   listen  443 ;
>   ssl on;
>   server_name  hostname.company.com;
>
>         ### SSL cert files ###
>         ssl_certificate      /usr/local/nginx/conf/ssl/company.crt;
>         ssl_certificate_key  /usr/local/nginx/conf/ssl/company.key;
>         ### Add SSL specific settings here ###
>         keepalive_timeout    60;
>
>   access_log  /var/log/nginx/proxy.access.log;
>   error_log /var/log/nginx/proxy.error.log;
>   location / {
>             subs_filter_types text/html text/css text/xml;
>             subs_filter http://hostname.company.com/path1/
> https://hostname.company.com/path1/ i;
>             subs_filter http://hostname.company.com/path2/
> https://chostname.company.com/path2/ i;
>             proxy_set_header X-Forwarded-Host $host;
>             proxy_set_header X-Forwarded-Server $host;
>             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
>             proxy_pass   http://chostname.company.com:80/;
>             proxy_redirect off;
>   }
> } #server443
>
> } #http
>
>
> =========== results of a truncated page from nginx from error log
>
> 0400000-00487000 r-xp 00000000 fc:01 788546                            
> /opt/nginx/sbin/nginx
> 00687000-00688000 r--p 00087000 fc:01 788546                            
> /opt/nginx/sbin/nginx
> 00688000-00698000 rw-p 00088000 fc:01 788546                            
> /opt/nginx/sbin/nginx
> 00698000-006a6000 rw-p 00000000 00:00 0
> 00d93000-00e9f000 rw-p 00000000 00:00 0                                 
> [heap]
> 7f8a14000000-7f8a14021000 rw-p 00000000 00:00 0
> 7f8a14021000-7f8a18000000 ---p 00000000 00:00 0
> 7f8a1bd2f000-7f8a1bd45000 r-xp 00000000 fc:01 525076                    
> /lib/libgcc_s.so.1
> 7f8a1bd45000-7f8a1bf44000 ---p 00016000 fc:01 525076                    
> /lib/libgcc_s.so.1
> 7f8a1bf44000-7f8a1bf45000 r--p 00015000 fc:01 525076                    
> /lib/libgcc_s.so.1
> 7f8a1bf45000-7f8a1bf46000 rw-p 00016000 fc:01 525076                    
> /lib/libgcc_s.so.1
> 7f8a1bf46000-7f8a1bf50000 r-xp 00000000 fc:01 525204                    
> /lib/libnss_nis-2.11.1.so
> 7f8a1bf50000-7f8a1c14f000 ---p 0000a000 fc:01 525204                    
> /lib/libnss_nis-2.11.1.so
> 7f8a1c14f000-7f8a1c150000 r--p 00009000 fc:01 525204                    
> /lib/libnss_nis-2.11.1.so
> 7f8a1c150000-7f8a1c151000 rw-p 0000a000 fc:01 525204                    
> /lib/libnss_nis-2.11.1.so
> 7f8a1c151000-7f8a1c168000 r-xp 00000000 fc:01 525199                    
> /lib/libnsl-2.11.1.so
> 7f8a1c168000-7f8a1c367000 ---p 00017000 fc:01 525199                    
> /lib/libnsl-2.11.1.so
> 7f8a1c367000-7f8a1c368000 r--p 00016000 fc:01 525199                    
> /lib/libnsl-2.11.1.so
> 7f8a1c368000-7f8a1c369000 rw-p 00017000 fc:01 525199                    
> /lib/libnsl-2.11.1.so
> 7f8a1c369000-7f8a1c36b000 rw-p 00000000 00:00 0
> 7f8a1c36b000-7f8a1c373000 r-xp 00000000 fc:01 525200                    
> /lib/libnss_compat-2.11.1.so
> 7f8a1c373000-7f8a1c572000 ---p 00008000 fc:01 525200                    
> /lib/libnss_compat-2.11.1.so
> 7f8a1c572000-7f8a1c573000 r--p 00007000 fc:01 525200                    
> /lib/libnss_compat-2.11.1.so
> 7f8a1c573000-7f8a1c574000 rw-p 00008000 fc:01 525200                    
> /lib/libnss_compat-2.11.1.so
> 7f8a1c574000-7f8a1c580000 r-xp 00000000 fc:01 525202                    
> /lib/libnss_files-2.11.1.so
> 7f8a1c580000-7f8a1c77f000 ---p 0000c000 fc:01 525202                    
> /lib/libnss_files-2.11.1.so
> 7f8a1c77f000-7f8a1c780000 r--p 0000b000 fc:01 525202                    
> /lib/libnss_files-2.11.1.so
> 7f8a1c780000-7f8a1c781000 rw-p 0000c000 fc:01 525202                    
> /lib/libnss_files-2.11.1.so
> 7f8a1c781000-7f8a1c8fb000 r-xp 00000000 fc:01 525193                    
> /lib/libc-2.11.1.so
> 7f8a1c8fb000-7f8a1cafa000 ---p 0017a000 fc:01 525193                    
> /lib/libc-2.11.1.so
> 7f8a1cafa000-7f8a1cafe000 r--p 00179000 fc:01 525193                    
> /lib/libc-2.11.1.so
> 7f8a1cafe000-7f8a1caff000 rw-p 0017d000 fc:01 525193                    
> /lib/libc-2.11.1.so
> 7f8a1caff000-7f8a1cb04000 rw-p 00000000 00:00 0
> 7f8a1cb04000-7f8a1cb1a000 r-xp 00000000 fc:01 528683                    
> /lib/libz.so.1.2.3.3
> 7f8a1cb1a000-7f8a1cd19000 ---p 00016000 fc:01 528683                    
> /lib/libz.so.1.2.3.3
> 7f8a1cd19000-7f8a1cd1a000 r--p 00015000 fc:01 528683                    
> /lib/libz.so.1.2.3.3
> 7f8a1cd1a000-7f8a1cd1b000 rw-p 00016000 fc:01 528683                    
> /lib/libz.so.1.2.3.3
> 7f8a1cd1b000-7f8a1cd1d000 r-xp 00000000 fc:01 525196                    
> /lib/libdl-2.11.1.so
> 7f8a1cd1d000-7f8a1cf1d000 ---p 00002000 fc:01 525196                    
> /lib/libdl-2.11.1.so
> 7f8a1cf1d000-7f8a1cf1e000 r--p 00002000 fc:01 525196                    
> /lib/libdl-2.11.1.so
> 7f8a1cf1e000-7f8a1cf1f000 rw-p 00003000 fc:01 525196                    
> /lib/libdl-2.11.1.so
> 7f8a1cf1f000-7f8a1d087000 r-xp 00000000 fc:01 525230                    
> /lib/libcrypto.so.0.9.8
> 7f8a1d087000-7f8a1d286000 ---p 00168000 fc:01 525230                    
> /lib/libcrypto.so.0.9.8
> 7f8a1d286000-7f8a1d293000 r--p 00167000 fc:01 525230                    
> /lib/libcrypto.so.0.9.8
> 7f8a1d293000-7f8a1d2ab000 rw-p 00174000 fc:01 525230                    
> /lib/libcrypto.so.0.9.8
> 7f8a1d2ab000-7f8a1d2af000 rw-p 00000000 00:00 0
> 7f8a1d2af000-7f8a1d2fa000 r-xp 00000000 fc:01 525231                    
> /lib/libssl.so.0.9.8
> 7f8a1d2fa000-7f8a1d4f9000 ---p 0004b000 fc:01 525231                    
> /lib/libssl.so.0.9.8
> 7f8a1d4f9000-7f8a1d4fb000 r--p 0004a000 fc:01 525231                    
> /lib/libssl.so.0.9.8
> 7f8a1d4fb000-7f8a1d500000 rw-p 0004c000 fc:01 525231                    
> /lib/libssl.so.0.9.8
> 7f8a1d500000-7f8a1d501000 rw-p 00000000 00:00 0
> 7f8a1d501000-7f8a1d52e000 r-xp 00000000 fc:01 525933                    
> /lib/libpcre.so.3.12.1
> 7f8a1d52e000-7f8a1d72d000 ---p 0002d000 fc:01 525933                    
> /lib/libpcre.so.3.12.1
> 7f8a1d72d000-7f8a1d72e000 r--p 0002c000 fc:01 525933                    
> /lib/libpcre.so.3.12.1
> 7f8a1d72e000-7f8a1d72f000 rw-p 0002d000 fc:01 525933                    
> /lib/libpcre.so.3.12.1
> 7f8a1d72f000-7f8a1d738000 r-xp 00000000 fc:01 525195                    
> /lib/libcrypt-2.11.1.so
> 7f8a1d738000-7f8a1d938000 ---p 00009000 fc:01 525195                    
> /lib/libcrypt-2.11.1.so
> 7f8a1d938000-7f8a1d939000 r--p 00009000 fc:01 525195                    
> /lib/libcrypt-2.11.1.so
> 7f8a1d939000-7f8a1d93a000 rw-p 0000a000 fc:01 525195                    
> /lib/libcrypt-2.11.1.so
> 7f8a1d93a000-7f8a1d968000 rw-p 00000000 00:00 0
> 7f8a1d968000-7f8a1d988000 r-xp 00000000 fc:01 525190                    
> /lib/ld-2.11.1.so
> 7f8a1db50000-7f8a1db82000 rw-p 00000000 00:00 0
> 7f8a1db85000-7f8a1db86000 rw-s 00000000 00:04 15331                     
> /dev/zero (deleted)
> 7f8a1db86000-7f8a1db88000 rw-p 00000000 00:00 0
> 7f8a1db88000-7f8a1db89000 r--p 00020000 fc:01 525190                    
> /lib/ld-2.11.1.so
> 7f8a1db89000-7f8a1db8a000 rw-p 00021000 fc:01 525190                    
> /lib/ld-2.11.1.so
> 7f8a1db8a000-7f8a1db8b000 rw-p 00000000 00:00 0
> 7fff4f481000-7fff4f496000 rw-p 00000000 00:00 0                         
> [stack]
> 7fff4f49f000-7fff4f4a0000 r-xp 00000000 00:00 0                         
> [vdso]
> ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                 
> [vsyscall]
>
>
>   




More information about the nginx mailing list