# Nginx 1.0.2 intermittent segfault error 4

**URL:** <https://www.ruby-forum.com/t/nginx-1-0-2-intermittent-segfault-error-4/246537>\
**Category:** NGINX\
**Created:** [May 14, 2011, 5:16pm UTC](https://www.ruby-forum.com/t/nginx-1-0-2-intermittent-segfault-error-4/246537 "2011-05-14T17:16:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![inph](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/f14d63/32.png) [@inph](https://www.ruby-forum.com/u/inph)\
**Post date:** [May 14, 2011, 5:16pm UTC](https://www.ruby-forum.com/t/nginx-1-0-2-intermittent-segfault-error-4/246537/1 "2011-05-14T17:16:51Z")

</div>

Hi,

I’ve noticed some nginx segfaults over the last week or so with 1.0.1  
and 1.0.2. I havent tested any other version for long enough.  
The segfaults are not immediate and sometimes it requires several hours  
to reproduce through normal use.

Here is the debug info, if you require anymore information please ask.

[12702.705897] nginx[1769]: segfault at 50545448 ip 0807d1fa sp bfc241d0  
error 4 in nginx[8048000+82000]

Linux hostname 2.6.38.6 #1 SMP Sat May 14 09:13:41 UTC 2011 i686  
Intel(R) Xeon™ CPU 2.40GHz GenuineIntel GNU/Linux

# gcc -v

Reading specs from /usr/lib/gcc/i486-slackware-linux/4.5.2/specs  
COLLECT\_GCC=gcc  
COLLECT\_LTO\_WRAPPER=/usr/libexec/gcc/i486-slackware-linux/4.5.2/lto-wrapper  
Target: i486-slackware-linux  
Configured with: ../gcc-4.5.2/configure --prefix=/usr --libdir=/usr/lib  
–mandir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap  
–enable-languages=ada,c,c++,fortran,java,objc,lto  
–enable-threads=posix --enable-checking=release --with-system-zlib  
–with-python-dir=/lib/python2.6/site-packages  
–disable-libunwind-exceptions --enable-\_\_cxa\_atexit --enable-libssp  
–enable-lto --with-gnu-ld --verbose --with-arch=i486  
–target=i486-slackware-linux --build=i486-slackware-linux  
–host=i486-slackware-linux  
Thread model: posix  
gcc version 4.5.2 (GCC)

# ldd /usr/sbin/nginx

```
    linux-gate.so.1 => (0xffffe000)
    libcrypt.so.1 => /lib/libcrypt.so.1 (0xb77ee000)
    libpcre.so.0 => /usr/lib/libpcre.so.0 (0xb77b1000)
    libssl.so.0 => /usr/lib/libssl.so.0 (0xb7769000)
    libcrypto.so.0 => /usr/lib/libcrypto.so.0 (0xb7623000)
    libdl.so.2 => /lib/libdl.so.2 (0xb761e000)
    libz.so.1 => /usr/lib/libz.so.1 (0xb760a000)
    libc.so.6 => /lib/libc.so.6 (0xb74a7000)
    /lib/ld-linux.so.2 (0xb782c000)

```

glibc-2.13  
pcre-8.12  
openssl-0.9.8r  
zlib-1.2.5

# nginx -V

nginx: nginx version: nginx/1.0.2  
nginx: TLS SNI support enabled  
nginx: configure arguments: --with-debug --prefix=/usr  
–sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf  
–pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock  
–user=www --group=www --error-log-path=/var/log/nginx/error.log  
–http-log-path=/var/log/nginx/access.log --with-http\_ssl\_module  
–with-http\_realip\_module --with-http\_addition\_module  
–with-http\_sub\_module --with-http\_dav\_module --with-http\_flv\_module  
–with-http\_gzip\_static\_module --with-http\_secure\_link\_module  
–with-http\_stub\_status\_module  
–http-client-body-temp-path=/var/lib/nginx/body  
–http-proxy-temp-path=/var/lib/nginx/proxy  
–http-fastcgi-temp-path=/var/lib/nginx/fastcgi  
–http-uwsgi-temp-path=/var/lib/nginx/uwsgi  
–http-scgi-temp-path=/var/lib/nginx/scgi --without-mail\_pop3\_module  
–without-mail\_imap\_module --without-mail\_smtp\_module

# gdb /usr/sbin/nginx /home/www/core

GNU gdb (GDB) 7.2  
Copyright (C) 2010 Free Software Foundation, Inc.  
License GPLv3+: GNU GPL version 3 or later  
[http://gnu.org/licenses/gpl.html](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-slackware-linux”.  
For bug reporting instructions, please see:  
[http://www.gnu.org/software/gdb/bugs/](http://www.gnu.org/software/gdb/bugs/)…  
Reading symbols from /usr/sbin/nginx…(no debugging symbols  
found)…done.  
[New Thread 1769]

warning: Can’t read pathname for load map: Input/output error.  
Reading symbols from /lib/libcrypt.so.1…(no debugging symbols  
found)…done.  
Loaded symbols for /lib/libcrypt.so.1  
Reading symbols from /usr/lib/libpcre.so.0…(no debugging symbols  
found)…done.  
Loaded symbols for /usr/lib/libpcre.so.0  
Reading symbols from /usr/lib/libssl.so.0…(no debugging symbols  
found)…done.  
Loaded symbols for /usr/lib/libssl.so.0  
Reading symbols from /usr/lib/libcrypto.so.0…(no debugging symbols  
found)…done.  
Loaded symbols for /usr/lib/libcrypto.so.0  
Reading symbols from /lib/libdl.so.2…(no debugging symbols  
found)…done.  
Loaded symbols for /lib/libdl.so.2  
Reading symbols from /usr/lib/libz.so.1…(no debugging symbols  
found)…done.  
Loaded symbols for /usr/lib/libz.so.1  
Reading symbols from /lib/libc.so.6…(no debugging symbols  
found)…done.  
Loaded symbols for /lib/libc.so.6  
Reading symbols from /lib/ld-linux.so.2…(no debugging symbols  
found)…done.  
Loaded symbols for /lib/ld-linux.so.2  
Reading symbols from /lib/libnss\_compat.so.2…(no debugging symbols  
found)…done.  
Loaded symbols for /lib/libnss\_compat.so.2  
Reading symbols from /lib/libnsl.so.1…(no debugging symbols  
found)…done.  
Loaded symbols for /lib/libnsl.so.1  
Reading symbols from /lib/libnss\_nis.so.2…(no debugging symbols  
found)…done.  
Loaded symbols for /lib/libnss\_nis.so.2  
Reading symbols from /lib/libnss\_files.so.2…(no debugging symbols  
found)…done.  
Loaded symbols for /lib/libnss\_files.so.2  
Core was generated by `nginx: worker process '.  
Program terminated with signal 11, Segmentation fault.  
#0 0x0807d1fa in ?? ()  
(gdb) backtrace  
#0 0x0807d1fa in ?? ()  
#1 0x080854ac in ?? ()  
#2 0x0807d0c2 in ?? ()  
#3 0x08062f13 in ?? ()  
#4 0x08062a39 in ?? ()  
#5 0x0806a205 in ?? ()  
#6 0x080687c1 in ?? ()  
#7 0x0806a7cc in ?? ()  
#8 0x0806aee7 in ?? ()  
#9 0x0804cea8 in ?? ()  
#10 0xb7491db6 in \_\_libc\_start\_main () from /lib/libc.so.6  
#11 0x0804bc21 in ?? ()  
(gdb) bt full  
#0 0x0807d1fa in ?? ()  
No symbol table info available.  
#1 0x080854ac in ?? ()  
No symbol table info available.  
#2 0x0807d0c2 in ?? ()  
No symbol table info available.  
#3 0x08062f13 in ?? ()  
No symbol table info available.  
#4 0x08062a39 in ?? ()  
No symbol table info available.  
#5 0x0806a205 in ?? ()  
No symbol table info available.  
#6 0x080687c1 in ?? ()  
No symbol table info available.  
#7 0x0806a7cc in ?? ()  
No symbol table info available.  
#8 0x0806aee7 in ?? ()  
No symbol table info available.  
#9 0x0804cea8 in ?? ()  
No symbol table info available.  
#10 0xb7491db6 in \_\_libc\_start\_main () from /lib/libc.so.6  
No symbol table info available.  
#11 0x0804bc21 in ?? ()  
No symbol table info available.  
(gdb) quit

# stat core

File: `core’  
Size: 1515520 Blocks: 2488 IO Block: 4096 regular  
file  
Device: 807h/2055d Inode: 18350096 Links: 1  
Access: (0600/-rw-------) Uid: ( 48/ www) Gid: ( 48/  
www)  
Access: 2011-05-14 14:08:39.000000000 +0000  
Modify: 2011-05-14 14:08:39.000000000 +0000  
Change: 2011-05-14 14:08:39.000000000 +0000  
Birth: -

/var/log/nginx# cat segfault.log|grep “14:08:39”  
2011/05/14 14:08:39 [debug] 1768#0: timer delta: 501  
2011/05/14 14:08:39 [debug] 1768#0: posted events 00000000  
2011/05/14 14:08:39 [debug] 1768#0: worker cycle  
2011/05/14 14:08:39 [debug] 1768#0: accept mutex lock failed: 0  
2011/05/14 14:08:39 [debug] 1768#0: epoll timer: 500  
2011/05/14 14:08:39 [debug] 1769#0: epoll: fd:7 ev:0001 d:08D42248  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 post event 08D5AF50  
2011/05/14 14:08:39 [debug] 1769#0: timer delta: 1797  
2011/05/14 14:08:39 [debug] 1769#0: posted events 08D5AF50  
2011/05/14 14:08:39 [debug] 1769#0: posted event 08D5AF50  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 delete posted event 08D5AF50  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 malloc: 08D31F70:680  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 malloc: 08D33B18:1024  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 posix\_memalign: 08CFAE70:4096  
@16  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http process request line  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 recv: fd:7 536 of 1024  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http request line: “POST  
/index.php?taigachat/list.json HTTP/1.1”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http uri: “/index.php”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http args:  
“taigachat/list.json”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http exten: “php”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http process request header  
line  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http header: “Host:  
[example.com](http://example.com)”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http header: “Connection:  
keep-alive”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http header: “Referer:  
[http://example.com/forum/](http://example.com/forum/)”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http header: “Content-Length:  
142”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http header: “Origin:  
[http://example.com](http://example.com)”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http header:  
“X-Requested-With: XMLHttpRequest”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http header: “User-Agent:  
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like  
Gecko) Chrome/11.0.696.65 Safari/534.24”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http header: “Content-Type:  
application/x-www-form-urlencoded”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http header: “Accept:  
application/json, text/javascript, _/_; q=0.01”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http header:  
“Accept-Encoding: gzip,deflate”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http header:  
“Accept-Language: da-DK,da;q=0.8,en-US;q=0.6,en;q=0.4”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 recv: fd:7 -1 of 488  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 recv() not ready (11:  
Resource temporarily unavailable)  
2011/05/14 14:08:39 [debug] 1769#0: posted event 00000000  
2011/05/14 14:08:39 [debug] 1769#0: worker cycle  
2011/05/14 14:08:39 [debug] 1769#0: accept mutex locked  
2011/05/14 14:08:39 [debug] 1769#0: epoll timer: 58203  
2011/05/14 14:08:39 [debug] 1769#0: epoll: fd:7 ev:0001 d:08D42248  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 post event 08D5AF50  
2011/05/14 14:08:39 [debug] 1769#0: timer delta: 128  
2011/05/14 14:08:39 [debug] 1769#0: posted events 08D5AF50  
2011/05/14 14:08:39 [debug] 1769#0: posted event 08D5AF50  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 delete posted event 08D5AF50  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http process request header  
line  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 recv: fd:7 488 of 488  
2011/05/14 14:08:39 [debug] 1769#0: _28081 http header: "Accept-Charset:  
ISO-8859-1,utf-8;q=0.7,_;q=0.3"  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http header: “Cookie:  
\_\_utmz=206500500.1304337103.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);  
xf\_user=1931%2C8b0bad949f0d38b81a46469cb9a941ec05485539;  
xf\_session=53cda77e55ba8e987ba0fb8183cdd326;  
\_\_utma=206500500.1451942054.1304337103.1305342568.1305355474.64;  
\_\_utmc=206500500; \_\_utmb=206500500.4.10.1305355474”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http header done  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 event timer del: 7:  
4007086959  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 generic phase: 0  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 rewrite phase: 1  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 test location: “/”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 test location: “forum/”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 test location: ~  
“.(jpg|jpeg|gif|css|png|js|ico)$”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 test location: ~ “.php$”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 using configuration “.php$”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http cl:142 max:52428800  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 rewrite phase: 3  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 post rewrite phase: 4  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 generic phase: 5  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 generic phase: 6  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 generic phase: 7  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 access phase: 8  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 access phase: 9  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 post access phase: 10  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 try files phase: 11  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http client request body  
preread 137  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http read client request  
body  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 recv: fd:7 5 of 5  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http client request body recv  
5  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http client request body rest  
0  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http init upstream, client  
timer: 0  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 epoll add event: fd:7 op:3  
ev:80000005  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script copy:  
“SCRIPT\_FILENAME”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script var:  
“/home/www/example.com/htdocs”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script var:  
“/index.php”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param:  
“SCRIPT\_FILENAME: /home/www/example.com/htdocs/index.php”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script copy:  
“QUERY\_STRING”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script var:  
“taigachat/list.json”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param: “QUERY\_STRING:  
taigachat/list.json”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script copy:  
“REQUEST\_METHOD”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script var: “POST”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param:  
“REQUEST\_METHOD: POST”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script copy:  
“CONTENT\_TYPE”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script var:  
“application/x-www-form-urlencoded”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param: “CONTENT\_TYPE:  
application/x-www-form-urlencoded”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script copy:  
“CONTENT\_LENGTH”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script var: “142”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param:  
“CONTENT\_LENGTH: 142”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script copy:  
“SCRIPT\_NAME”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script var:  
“/index.php”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param: “SCRIPT\_NAME:  
/index.php”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script copy:  
“REQUEST\_URI”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script var:  
“/index.php?taigachat/list.json”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param: “REQUEST\_URI:  
/index.php?taigachat/list.json”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script copy:  
“DOCUMENT\_URI”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script var:  
“/index.php”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param: “DOCUMENT\_URI:  
/index.php”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script copy:  
“DOCUMENT\_ROOT”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script var:  
“/home/www/example.com/htdocs”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param:  
“DOCUMENT\_ROOT: /home/www/example.com/htdocs”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script copy:  
“SERVER\_PROTOCOL”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script var: “HTTP/1.1”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param:  
“SERVER\_PROTOCOL: HTTP/1.1”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script copy:  
“GATEWAY\_INTERFACE”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script copy: “CGI/1.1”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param:  
“GATEWAY\_INTERFACE: CGI/1.1”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script copy:  
“SERVER\_SOFTWARE”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script copy: “nginx/”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script var: “1.0.2”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param:  
“SERVER\_SOFTWARE: nginx/1.0.2”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script copy:  
“REMOTE\_ADDR”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script var: “[REMOTE IP  
ADDRESS]”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param: “REMOTE\_ADDR:  
[REMOTE IP ADDRESS]”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script copy:  
“REMOTE\_PORT”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script var: “58057”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param: “REMOTE\_PORT:  
58057”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script copy:  
“SERVER\_ADDR”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script var: “[SERVER IP  
ADDRESS]”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param: “SERVER\_ADDR:  
[SERVER IP ADDRESS]”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script copy:  
“SERVER\_PORT”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script var: “80”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param: “SERVER\_PORT:  
80”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script copy:  
“SERVER\_NAME”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script var:  
“[example.com](http://example.com)”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param: “SERVER\_NAME:  
[example.com](http://example.com)”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script copy:  
“REDIRECT\_STATUS”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http script copy: “200”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param:  
“REDIRECT\_STATUS: 200”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param: “HTTP\_HOST:  
[example.com](http://example.com)”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param:  
“HTTP\_CONNECTION: keep-alive”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param: “HTTP\_REFERER:  
[http://example.com/forum/](http://example.com/forum/)”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param:  
“HTTP\_CONTENT\_LENGTH: 142”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param: “HTTP\_ORIGIN:  
[http://example.com](http://example.com)”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param:  
“HTTP\_X\_REQUESTED\_WITH: XMLHttpRequest”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param:  
“HTTP\_USER\_AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24  
(KHTML, like Gecko) Chrome/11.0.696.65 Safari/534.24”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param:  
“HTTP\_CONTENT\_TYPE: application/x-www-form-urlencoded”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param: “HTTP\_ACCEPT:  
application/json, text/javascript, _/_; q=0.01”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param:  
“HTTP\_ACCEPT\_ENCODING: gzip,deflate”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param:  
“HTTP\_ACCEPT\_LANGUAGE: da-DK,da;q=0.8,en-US;q=0.6,en;q=0.4”  
2011/05/14 14:08:39 [debug] 1769#0: _28081 fastcgi param:  
"HTTP\_ACCEPT\_CHARSET: ISO-8859-1,utf-8;q=0.7,_;q=0.3"  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 fastcgi param: “HTTP\_COOKIE:  
\_\_utmz=206500500.1304337103.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);  
xf\_user=1931%2C8b0bad949f0d38b81a46469cb9a941ec05485539;  
xf\_session=53cda77e55ba8e987ba0fb8183cdd326;  
\_\_utma=206500500.1451942054.1304337103.1305342568.1305355474.64;  
\_\_utmc=206500500; \_\_utmb=206500500.4.10.1305355474”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 posix\_memalign: 08CFD490:4096  
@16  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http cleanup add: 08CFD510  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 get rr peer, try: 1  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 socket 9  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 epoll add connection: fd:9  
ev:80000005  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 connect to  
unix:/var/run/php-fpm.sock, fd:9 #28082  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 connected  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http upstream connect: 0  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http upstream send request  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 chain writer buf fl:0 s:1448  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 chain writer buf fl:0 s:137  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 chain writer buf fl:0 s:15  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 chain writer buf fl:0 s:5  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 chain writer buf fl:0 s:11  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 chain writer in: 08CFD554  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 writev: 1616  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 chain writer out: 00000000  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 event timer add: 9:  
180000:4007208884  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http finalize request: -4,  
“/index.php?taigachat/list.json” a:1, c:2  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http request count:2 blk:0  
2011/05/14 14:08:39 [debug] 1769#0: posted event 00000000  
2011/05/14 14:08:39 [debug] 1769#0: worker cycle  
2011/05/14 14:08:39 [debug] 1769#0: accept mutex locked  
2011/05/14 14:08:39 [debug] 1769#0: epoll timer: 180000  
2011/05/14 14:08:39 [debug] 1769#0: epoll: fd:7 ev:0005 d:08D42248  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 post event 08D5AF50  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 post event 08D67F58  
2011/05/14 14:08:39 [debug] 1769#0: epoll: fd:9 ev:0004 d:08D4243D  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 post event 08D6805C  
2011/05/14 14:08:39 [debug] 1769#0: timer delta: 1  
2011/05/14 14:08:39 [debug] 1769#0: posted events 08D6805C  
2011/05/14 14:08:39 [debug] 1769#0: posted event 08D6805C  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 delete posted event 08D6805C  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http upstream request:  
“/index.php?taigachat/list.json”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http upstream dummy handler  
2011/05/14 14:08:39 [debug] 1769#0: posted event 08D67F58  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 delete posted event 08D67F58  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http run request:  
“/index.php?taigachat/list.json”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http request empty handler  
2011/05/14 14:08:39 [debug] 1769#0: posted event 08D5AF50  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 delete posted event 08D5AF50  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http run request:  
“/index.php?taigachat/list.json”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http read client request  
body  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 add cleanup: 08CFD63C  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 hashed path:  
/var/lib/nginx/body/0000000001  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 temp fd:13  
2011/05/14 14:08:39 [warn] 1769#0: \*28081 a client request body is  
buffered to a temporary file /var/lib/nginx/body/0000000001 while  
sending request to upstream, client: [REMOTE IP ADDRESS], server:  
[example.com](http://example.com), request: “POST /index.php?taigachat/list.json HTTP/1.1”,  
upstream: “fastcgi://unix:/var/run/php-fpm.sock:”, host: “[example.com](http://example.com)”,  
referrer: “[http://example.com/forum/](http://example.com/forum/)”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 write: 13, 08CFB790, 5, 0  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 recv: fd:7 0 of 0  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http client request body recv  
0  
2011/05/14 14:08:39 [info] 1769#0: \*28081 client closed prematurely  
connection while sending request to upstream, client: [REMOTE IP  
ADDRESS], server: [example.com](http://example.com), request: “POST  
/index.php?taigachat/list.json HTTP/1.1”, upstream:  
“fastcgi://unix:/var/run/php-fpm.sock:”, host: “[example.com](http://example.com)”, referrer:  
“[http://example.com/forum/](http://example.com/forum/)”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http finalize request: 400,  
“/index.php?taigachat/list.json” a:1, c:1  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http terminate request  
count:1  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 cleanup http upstream  
request: “/index.php”  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 finalize http upstream  
request: -4  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 finalize http fastcgi  
request  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 free rr peer 1 0  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 close http upstream  
connection: 9  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 event timer del: 9:  
4007208884  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 reusable connection: 0  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http finalize request: -4,  
“/index.php?taigachat/list.json” a:1, c:1  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 set http keepalive handler  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http close request  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 http log handler  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 run cleanup: 08CFD63C  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 file cleanup: fd:13  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 free: 08CFAE70, unused: 5  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 free: 08CFD490, unused: 3417  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 event timer add: 7:  
75000:4007103885  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 free: 08D31F70  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 free: 08D33B18  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 hc free: 00000000 0  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 hc busy: 00000000 0  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 tcp\_nodelay  
2011/05/14 14:08:39 [debug] 1769#0: \*28081 reusable connection: 1  
2011/05/14 14:08:39 [notice] 1767#0: signal 17 (SIGCHLD) received  
2011/05/14 14:08:39 [alert] 1767#0: worker process 1769 exited on signal  
11 (core dumped)  
2011/05/14 14:08:39 [debug] 1767#0: wake up, sigio 0  
2011/05/14 14:08:39 [debug] 1767#0: reap children  
2011/05/14 14:08:39 [debug] 1767#0: child: 0 1768 e:0 t:0 d:0 r:1 j:0  
2011/05/14 14:08:39 [debug] 1767#0: child: 1 1769 e:0 t:1 d:0 r:1 j:0  
2011/05/14 14:08:39 [debug] 1767#0: pass close channel s:1 pid:1769  
to:1768  
2011/05/14 14:08:39 [debug] 1767#0: channel 7:10  
2011/05/14 14:08:39 [debug] 1768#0: epoll: fd:9 ev:0001 d:08D41C6C  
2011/05/14 14:08:39 [debug] 1768#0: channel handler  
2011/05/14 14:08:39 [debug] 1768#0: channel: 16  
2011/05/14 14:08:39 [debug] 1768#0: channel command: 2  
2011/05/14 14:08:39 [debug] 1768#0: close channel s:1 pid:1769 our:1769  
fd:3  
2011/05/14 14:08:39 [debug] 1768#0: channel: -2  
2011/05/14 14:08:39 [debug] 1768#0: timer delta: 376  
2011/05/14 14:08:39 [debug] 1768#0: posted events 00000000  
2011/05/14 14:08:39 [debug] 1768#0: worker cycle  
2011/05/14 14:08:39 [debug] 1768#0: accept mutex locked  
2011/05/14 14:08:39 [debug] 1768#0: epoll add event: fd:8 op:1  
ev:00000001  
2011/05/14 14:08:39 [debug] 1768#0: epoll timer: 21259  
2011/05/14 14:08:39 [notice] 1767#0: start worker process 3483  
2011/05/14 14:08:39 [debug] 1767#0: pass channel s:1 pid:3483 fd:7 to  
s:0 pid:1768 fd:3  
2011/05/14 14:08:39 [debug] 1767#0: sigsuspend  
2011/05/14 14:08:39 [debug] 1768#0: epoll: fd:9 ev:0001 d:08D41C6C  
2011/05/14 14:08:39 [debug] 1768#0: post event 08D5AC44  
2011/05/14 14:08:39 [debug] 1768#0: timer delta: 0  
2011/05/14 14:08:39 [debug] 1768#0: posted events 08D5AC44  
2011/05/14 14:08:39 [debug] 1768#0: posted event 08D5AC44  
2011/05/14 14:08:39 [notice] 1767#0: signal 29 (SIGIO) received  
2011/05/14 14:08:39 [debug] 1768#0: delete posted event 08D5AC44  
2011/05/14 14:08:39 [debug] 1767#0: wake up, sigio 0  
2011/05/14 14:08:39 [debug] 1768#0: channel handler  
2011/05/14 14:08:39 [debug] 1767#0: sigsuspend  
2011/05/14 14:08:39 [debug] 1768#0: channel: 16  
2011/05/14 14:08:39 [debug] 1768#0: channel command: 1  
2011/05/14 14:08:39 [debug] 1768#0: get channel s:1 pid:3483 fd:3  
2011/05/14 14:08:39 [debug] 1768#0: channel: -2  
2011/05/14 14:08:39 [debug] 1768#0: posted event 00000000  
2011/05/14 14:08:39 [debug] 1768#0: worker cycle  
2011/05/14 14:08:39 [debug] 1768#0: accept mutex locked  
2011/05/14 14:08:39 [debug] 1768#0: epoll timer: 21259  
2011/05/14 14:08:39 [notice] 3483#0: sched\_setaffinity(0x0000000A)  
2011/05/14 14:08:39 [debug] 3483#0: malloc: 08D0A9F8:6144  
2011/05/14 14:08:39 [debug] 3483#0: malloc: 08D41C08:102400  
2011/05/14 14:08:39 [debug] 3483#0: malloc: 08D5AC10:53248  
2011/05/14 14:08:39 [debug] 3483#0: malloc: 08D67C18:53248  
2011/05/14 14:08:39 [debug] 3483#0: epoll add event: fd:10 op:1  
ev:00000001  
2011/05/14 14:08:39 [debug] 3483#0: setproctitle: “nginx: worker  
process”  
2011/05/14 14:08:39 [debug] 3483#0: worker cycle  
2011/05/14 14:08:39 [debug] 3483#0: accept mutex lock failed: 0  
2011/05/14 14:08:39 [debug] 3483#0: epoll timer: 500

# cat nginx.conf

user www www;  
worker\_processes 2;  
worker\_cpu\_affinity 0101 1010;  
error\_log /var/log/nginx/segfault.log debug;  
#error\_log /var/log/nginx/error.log notice;

worker\_rlimit\_core 500M;  
working\_directory /home/www/;

events {  
worker\_connections 1024;  
}  
http {  
include mime.types;  
default\_type application/octet-stream;  
log\_format upstream '$remote\_addr - - [$time\_local] “$request”  
$status ’  
'upstream $upstream\_response\_time request  
$request\_time bytes $bytes\_sent body\_bytes $body\_bytes\_sent ’  
‘[$host]’;

```
sendfile on;
server_tokens off;
keepalive_timeout 75;
client_max_body_size 50M;

gzip on;
gzip_proxied any;
gzip_vary on;
gzip_disable "msie6";
gzip_types text/plain text/css application/json

```

application/x-javascript text/xml application/xml application/xml+rss  
text/javascript;

```
fastcgi_max_temp_file_size 0;
open_file_cache max=1000 inactive=120s;
open_file_cache_valid 120s;
open_file_cache_min_uses 5;
open_file_cache_errors on;

index index.php index.html;
include /etc/nginx/enabled/*.conf;

```

}

# cat enabled/default.conf

server {  
listen 80 default;  
server\_name \_;  
server\_name\_in\_redirect off;

log\_format vhost '$host $remote\_addr - $remote\_user [$time\_local]  
“$request” ’  
'$status $body\_bytes\_sent “$http\_referer” ’  
‘“$http\_user\_agent” “$http\_x\_forwarded\_for”’;

access\_log /var/log/nginx/default\_vhost.log vhost;  
root /home/www/default/;

location ~ .php$ {  
try\_files $uri =404;  
fastcgi\_pass unix:/var/run/php-fpm.sock;  
fastcgi\_index index.php;  
include fastcgi.conf;  
fastcgi\_intercept\_errors on;  
}

location ~\* .(jpg|jpeg|gif|css|png|js|ico)$ {  
log\_not\_found off;  
access\_log off;  
expires max;  
}  
}

# cat enabled/example.com.conf

server {  
server\_name [www.example.com](http://www.example.com);  
rewrite ^ $scheme://example.com$request\_uri? permanent;  
}

server {  
server\_name [example.com](http://example.com);  
root /home/www/example.com/htdocs/;

location ~\* .(jpg|jpeg|gif|css|png|js|ico)$ {  
access\_log off;  
expires 30d;  
}

location ^~ /forum/ {  
rewrite ^/forum/$ /$1? last;  
rewrite ^/forum/(.+)$ /$1? permanent;  
}

location / {  
try\_files $uri $uri/ /index.php?$uri&$args;  
}

location /blog/ {  
try\_files $uri $uri/ /blog/index.php?$uri&$args;  
}

location ~ .php$ {  
try\_files $uri =404;  
access\_log /var/log/nginx/upstream.log upstream;  
fastcgi\_pass unix:/var/run/php-fpm.sock;  
fastcgi\_index index.php;  
include fastcgi.conf;  
fastcgi\_intercept\_errors on;  
fastcgi\_ignore\_client\_abort on;  
}

location ~ /.ht {  
access\_log off;  
log\_not\_found off;  
deny all;  
}

location ~ /(internal\_data|library)/ {  
allow 127.0.0.1;  
deny all;  
}  
}

# cat localhost.conf

server {  
server\_name localhost 127.0.0.1;  
access\_log off;  
root /home/www/default/;  
location /nginx\_status {  
stub\_status on;  
access\_log off;  
allow 127.0.0.1;  
deny all;  
}  
}

# cat fastcgi.conf

fastcgi\_param SCRIPT\_FILENAME $document\_root$fastcgi\_script\_name;  
fastcgi\_param QUERY\_STRING $query\_string;  
fastcgi\_param REQUEST\_METHOD $request\_method;  
fastcgi\_param CONTENT\_TYPE $content\_type;  
fastcgi\_param CONTENT\_LENGTH $content\_length;

fastcgi\_param SCRIPT\_NAME $fastcgi\_script\_name;  
fastcgi\_param REQUEST\_URI $request\_uri;  
fastcgi\_param DOCUMENT\_URI $document\_uri;  
fastcgi\_param DOCUMENT\_ROOT $document\_root;  
fastcgi\_param SERVER\_PROTOCOL $server\_protocol;

fastcgi\_param GATEWAY\_INTERFACE CGI/1.1;  
fastcgi\_param SERVER\_SOFTWARE nginx/$nginx\_version;

fastcgi\_param REMOTE\_ADDR $remote\_addr;  
fastcgi\_param REMOTE\_PORT $remote\_port;  
fastcgi\_param SERVER\_ADDR $server\_addr;  
fastcgi\_param SERVER\_PORT $server\_port;  
fastcgi\_param SERVER\_NAME $server\_name;

# PHP only, required if PHP was built with --enable-force-cgi-redirect

fastcgi\_param REDIRECT\_STATUS 200;

Also an earlier segfault, however I was not running a error\_log at debug  
at the time. Same nginx build and same config as above.

# nginx -V

nginx: nginx version: nginx/1.0.2  
nginx: TLS SNI support enabled  
nginx: configure arguments: --with-debug --prefix=/usr  
–sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf  
–pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock  
–user=www --group=www --error-log-path=/var/log/nginx/error.log  
–http-log-path=/var/log/nginx/access.log --with-http\_ssl\_module  
–with-http\_realip\_module --with-http\_addition\_module  
–with-http\_sub\_module --with-http\_dav\_module --with-http\_flv\_module  
–with-http\_gzip\_static\_module --with-http\_secure\_link\_module  
–with-http\_stub\_status\_module  
–http-client-body-temp-path=/var/lib/nginx/body  
–http-proxy-temp-path=/var/lib/nginx/proxy  
–http-fastcgi-temp-path=/var/lib/nginx/fastcgi  
–http-uwsgi-temp-path=/var/lib/nginx/uwsgi  
–http-scgi-temp-path=/var/lib/nginx/scgi --without-mail\_pop3\_module  
–without-mail\_imap\_module --without-mail\_smtp\_module

# stat core

File: `core’  
Size: 1490944 Blocks: 2232 IO Block: 4096 regular  
file  
Device: 807h/2055d Inode: 18350095 Links: 1  
Access: (0600/-rw-------) Uid: ( 48/ www) Gid: ( 48/  
www)  
Access: 2011-05-14 10:14:35.000000000 +0000  
Modify: 2011-05-14 10:14:35.000000000 +0000  
Change: 2011-05-14 10:14:35.000000000 +0000  
Birth: -

# gdb /usr/sbin/nginx /home/www/core

GNU gdb (GDB) 7.2  
Copyright (C) 2010 Free Software Foundation, Inc.  
License GPLv3+: GNU GPL version 3 or later  
[http://gnu.org/licenses/gpl.html](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-slackware-linux”.  
For bug reporting instructions, please see:  
[http://www.gnu.org/software/gdb/bugs/](http://www.gnu.org/software/gdb/bugs/)…  
Reading symbols from /usr/sbin/nginx…(no debugging symbols  
found)…done.  
[New Thread 18354]

warning: Can’t read pathname for load map: Input/output error.  
Reading symbols from /lib/libcrypt.so.1…(no debugging symbols  
found)…done.  
Loaded symbols for /lib/libcrypt.so.1  
Reading symbols from /usr/lib/libpcre.so.0…(no debugging symbols  
found)…done.  
Loaded symbols for /usr/lib/libpcre.so.0  
Reading symbols from /usr/lib/libssl.so.0…(no debugging symbols  
found)…done.  
Loaded symbols for /usr/lib/libssl.so.0  
Reading symbols from /usr/lib/libcrypto.so.0…(no debugging symbols  
found)…done.  
Loaded symbols for /usr/lib/libcrypto.so.0  
Reading symbols from /lib/libdl.so.2…(no debugging symbols  
found)…done.  
Loaded symbols for /lib/libdl.so.2  
Reading symbols from /usr/lib/libz.so.1…(no debugging symbols  
found)…done.  
Loaded symbols for /usr/lib/libz.so.1  
Reading symbols from /lib/libc.so.6…(no debugging symbols  
found)…done.  
Loaded symbols for /lib/libc.so.6  
Reading symbols from /lib/ld-linux.so.2…(no debugging symbols  
found)…done.  
Loaded symbols for /lib/ld-linux.so.2  
Reading symbols from /lib/libnss\_compat.so.2…(no debugging symbols  
found)…done.  
Loaded symbols for /lib/libnss\_compat.so.2  
Reading symbols from /lib/libnsl.so.1…(no debugging symbols  
found)…done.  
Loaded symbols for /lib/libnsl.so.1  
Reading symbols from /lib/libnss\_nis.so.2…(no debugging symbols  
found)…done.  
Loaded symbols for /lib/libnss\_nis.so.2  
Reading symbols from /lib/libnss\_files.so.2…(no debugging symbols  
found)…done.  
Loaded symbols for /lib/libnss\_files.so.2  
Core was generated by `nginx:'.  
Program terminated with signal 11, Segmentation fault.  
#0 0x0807d1fa in ?? ()  
(gdb) bt  
#0 0x0807d1fa in ?? ()  
#1 0x080854ac in ?? ()  
#2 0x0807d0c2 in ?? ()  
#3 0x08062f13 in ?? ()  
#4 0x08062a39 in ?? ()  
#5 0x0806a205 in ?? ()  
#6 0x080687c1 in ?? ()  
#7 0x0806a7cc in ?? ()  
#8 0x0806aee7 in ?? ()  
#9 0x0804cea8 in ?? ()  
#10 0xb74afdb6 in \_\_libc\_start\_main () from /lib/libc.so.6  
#11 0x0804bc21 in ?? ()  
(gdb) bt full  
#0 0x0807d1fa in ?? ()  
No symbol table info available.  
#1 0x080854ac in ?? ()  
No symbol table info available.  
#2 0x0807d0c2 in ?? ()  
No symbol table info available.  
#3 0x08062f13 in ?? ()  
No symbol table info available.  
#4 0x08062a39 in ?? ()  
No symbol table info available.  
#5 0x0806a205 in ?? ()  
No symbol table info available.  
#6 0x080687c1 in ?? ()  
No symbol table info available.  
#7 0x0806a7cc in ?? ()  
No symbol table info available.  
#8 0x0806aee7 in ?? ()  
No symbol table info available.  
#9 0x0804cea8 in ?? ()  
No symbol table info available.  
#10 0xb74afdb6 in \_\_libc\_start\_main () from /lib/libc.so.6  
No symbol table info available.  
#11 0x0804bc21 in ?? ()  
No symbol table info available.  
(gdb) quit

# error.log

2011/05/14 10:14:35 [warn] 18354#0: \*1707 a client request body is  
buffered to a temporary file /var/lib/nginx/body/0000000001 while  
sending request to upstream, client: [CLIENT IP ADDRESS], server:  
[example.com](http://example.com), request: “POST /login/csrf-token-refresh HTTP/1.1”,  
upstream: “fastcgi://unix:/var/run/php-fpm.sock:”, host: “[example.com](http://example.com)”,  
referrer: “[http://example.com/threads/THREADNAME.9709/](http://example.com/threads/THREADNAME.9709/)”  
2011/05/14 10:14:35 [info] 18354#0: \*1707 client closed prematurely  
connection while sending request to upstream, client: [CLIENT IP  
ADDRESS], server: [example.com](http://example.com), request: “POST /login/csrf-token-refresh  
HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php-fpm.sock:”, host:  
“[example.com](http://example.com)”, referrer: “[http://example.com/threads/THREADNAME.9709/](http://example.com/threads/THREADNAME.9709/)”  
2011/05/14 10:14:35 [notice] 18353#0: signal 17 (SIGCHLD) received  
2011/05/14 10:14:35 [alert] 18353#0: worker process 18354 exited on  
signal 11 (core dumped)  
2011/05/14 10:14:35 [notice] 18353#0: start worker process 14632  
2011/05/14 10:14:35 [notice] 18353#0: signal 29 (SIGIO) received  
2011/05/14 10:14:35 [notice] 14632#0: sched\_setaffinity(0x0000000A)

Posted at Nginx Forum:  
[http://forum.nginx.org/read.php?2,198003,198003#msg-198003](http://forum.nginx.org/read.php?2,198003,198003#msg-198003)
