# Nginx truncates pages and reports worker process exited on signal 6

**URL:** <https://www.ruby-forum.com/t/nginx-truncates-pages-and-reports-worker-process-exited-on-signal-6/199202>\
**Category:** NGINX\
**Created:** [November 16, 2010, 6:16pm UTC](https://www.ruby-forum.com/t/nginx-truncates-pages-and-reports-worker-process-exited-on-signal-6/199202 "2010-11-16T18:16:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![okkezSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Post date:** [November 16, 2010, 6:16pm UTC](https://www.ruby-forum.com/t/nginx-truncates-pages-and-reports-worker-process-exited-on-signal-6/199202/1 "2010-11-16T18:16:49Z")

</div>

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](http://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](http://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/](http://hostname.company.com/path1/)  
[https://hostname.company.com/path1/](https://hostname.company.com/path1/) i;  
subs\_filter [http://hostname.company.com/path2/](http://hostname.company.com/path2/)  
[https://chostname.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/](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]

---

<div class="post-metadata">

**Author:** ![dmorin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f0a364/32.png) [@dmorin](https://www.ruby-forum.com/u/dmorin)\
**Post date:** [November 18, 2010, 2:42am UTC](https://www.ruby-forum.com/t/nginx-truncates-pages-and-reports-worker-process-exited-on-signal-6/199202/2 "2010-11-18T02:42:49Z")

</div>

Duane M. wrote in post #961864:

> 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.

The Nginx developers can probably help you better if you can provide a  
good backtrace of the crash. You can use my tool crash-watch do monitor  
the Nginx workers and have it generate a proper backtrace upon crash:

> **[GitHub - FooBarWidget/crash-watch: Monitor processes and display useful information...](https://github.com/FooBarWidget/crash-watch)**
>
> Monitor processes and display useful information when they crash

---

<div class="post-metadata">

**Author:** ![dmorin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f0a364/32.png) [@dmorin](https://www.ruby-forum.com/u/dmorin)\
**Post date:** [December 5, 2010, 6:57pm UTC](https://www.ruby-forum.com/t/nginx-truncates-pages-and-reports-worker-process-exited-on-signal-6/199202/3 "2010-12-05T18:57:52Z")

</div>

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
