# Nginx 1.0.4 crashes

**URL:** <https://www.ruby-forum.com/t/nginx-1-0-4-crashes/209472>\
**Category:** NGINX\
**Created:** [July 14, 2011, 6:07pm UTC](https://www.ruby-forum.com/t/nginx-1-0-4-crashes/209472 "2011-07-14T18:07:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [July 14, 2011, 6:07pm UTC](https://www.ruby-forum.com/t/nginx-1-0-4-crashes/209472/1 "2011-07-14T18:07:45Z")

</div>

Hi, I’m experiencing some random crashes. My server is Ubuntu 10.04,  
with glibc 2.11.1-0ubuntu7.8. Here is an excerpt from the log file:

\*\*\* glibc detected \*\*\* nginx: worker process: double free or corruption  
(!prev): 0x00000000009f9ad0 \*\*\*  
======= Backtrace: =========  
/lib/libc.so.6(+0x775b6)[0x7fde690ab5b6]  
/lib/libc.so.6(cfree+0x73)[0x7fde690b1e83]  
nginx: worker process(ngx\_destroy\_pool+0x10c)[0x41829c]  
nginx: worker process[0x4441ac]  
nginx: worker process[0x44441b]  
nginx: worker process[0x44662d]  
nginx: worker process[0x4556a4]  
nginx: worker process[0x455bbd]  
nginx: worker process[0x436424]  
nginx: worker process(ngx\_process\_events\_and\_timers+0x5e)[0x42d54e]  
nginx: worker process[0x434ad5]  
nginx: worker process(ngx\_spawn\_process+0x194)[0x432de4]  
nginx: worker process[0x433f12]  
nginx: worker process(ngx\_master\_process\_cycle+0x1b4)[0x435034]  
nginx: worker process(main+0x947)[0x417517]  
/lib/libc.so.6(\_\_libc\_start\_main+0xfd)[0x7fde69052c4d]  
nginx: worker process[0x415d09]  
[…]  
[alert] 17175#0: worker process 17180 exited on signal 6 (core dumped)

After loading dumped core with gdb & doing “bt” I get this:

(gdb) bt  
#0 0x00007fde69067a75 in raise () from /lib/libc.so.6  
#1 0x00007fde6906b5c0 in abort () from /lib/libc.so.6  
#2 0x00007fde690a14fb in ?? () from /lib/libc.so.6  
#3 0x00007fde690ab5b6 in ?? () from /lib/libc.so.6  
#4 0x00007fde690af6d8 in ?? () from /lib/libc.so.6  
#5 0x00007fde690b058e in malloc () from /lib/libc.so.6  
#6 0x00007fde690b18f9 in posix\_memalign () from /lib/libc.so.6  
#7 0x0000000000430b3c in ngx\_memalign ()  
#8 0x000000000041837c in ngx\_create\_pool ()  
#9 0x000000000042e8f0 in ngx\_event\_accept ()  
#10 0x000000000042dd84 in ngx\_event\_process\_posted ()  
#11 0x000000000042d57c in ngx\_process\_events\_and\_timers ()  
#12 0x0000000000434ad5 in ?? ()  
#13 0x0000000000432de4 in ngx\_spawn\_process ()  
#14 0x00000000004354f6 in ngx\_master\_process\_cycle ()  
#15 0x0000000000417517 in main ()

More info about my nginx version:  
nginx -V  
nginx: nginx version: nginx/1.0.4  
nginx: TLS SNI support enabled  
nginx: configure arguments: --prefix=/etc/nginx  
–conf-path=/etc/nginx/nginx.conf  
–error-log-path=/var/log/nginx/error.log  
–http-client-body-temp-path=/var/lib/nginx/body  
–http-fastcgi-temp-path=/var/lib/nginx/fastcgi  
–http-log-path=/var/log/nginx/access.log  
–http-proxy-temp-path=/var/lib/nginx/proxy  
–http-scgi-temp-path=/var/lib/nginx/scgi  
–http-uwsgi-temp-path=/var/lib/nginx/uwsgi  
–lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid  
–with-debug --with-http\_addition\_module --with-http\_dav\_module  
–with-http\_flv\_module --with-http\_geoip\_module  
–with-http\_gzip\_static\_module --with-http\_image\_filter\_module  
–with-http\_perl\_module --with-http\_random\_index\_module  
–with-http\_realip\_module --with-http\_secure\_link\_module  
–with-http\_stub\_status\_module --with-http\_ssl\_module  
–with-http\_sub\_module --with-http\_xslt\_module --with-ipv6  
–with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl  
–with-mail --with-mail\_ssl\_module  
–add-module=/build/buildd/nginx-1.0.4/debian/modules/nginx-development-kit  
–add-module=/build/buildd/nginx-1.0.4/debian/modules/nginx-upstream-fair  
–add-module=/build/buildd/nginx-1.0.4/debian/modules/nginx-echo  
–add-module=/build/buildd/nginx-1.0.4/debian/modules/nginx-lua  
–add-module=/build/buildd/nginx-1.0.4/debian/modules/nginx-http-push  
–add-module=/build/buildd/nginx-1.0.4/debian/modules/nginx-upload-progress  
–add-module=/build/buildd/nginx-1.0.4/debian/modules/nginx-secure-download

The biggest problem is that the server process is still alive, but it no  
longer handles connections.  
It’s necessary to restart it manually to make it work again. I thought  
nginx had master/worker  
architecture to prevent such cases - a worker would die, but the rest  
should remain safe.

Anyway - is there any way to fix it? What can cause it?

Posted at Nginx Forum:

> **[nginx 1.0.4 crashes](https://forum.nginx.org/read.php?2,212400,212400#msg-212400)**
>
> Hi, I'm experiencing some random crashes. My server is Ubuntu 10.04, with glibc 2.11.1-0ubuntu7.8. Here is an excerpt from the log file: \*\*\* glibc detected \*\*\* nginx: worker process: double free or corruption (!prev): 0x00000000009f9ad0 \*\*\* =======...
